Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update User_LDAP.php #13755

Closed
wants to merge 1 commit into from
Closed

Update User_LDAP.php #13755

wants to merge 1 commit into from

Conversation

sretika
Copy link

@sretika sretika commented Jan 22, 2019

userManager->getAttributes() could be returning empty values, which will give no result when used for searching. This patch will simply drop empty values in the $attrs before using it for searching.

@rullzer rullzer requested a review from blizzz January 23, 2019 09:30
@rullzer rullzer added 3. to review Waiting for reviews feature: ldap labels Jan 23, 2019
@rullzer rullzer added this to the Nextcloud 16 milestone Jan 23, 2019
@violoncelloCH
Copy link
Member

DCO is failing because the commit is not signed-off
@sretika2 could you please sign your commit? - see https://github.com/nextcloud/server/blob/master/.github/CONTRIBUTING.md#sign-your-work
can be done with git commit --amend -s for the last commit and then git push -f to push the changed commit back to github...

userManager->getAttributes() could be returning empty values, which will give no result when used for searching. This patch will simply drop empty values in the $attrs before using it for searching.

Signed-off-by: Samuel Retika <m_samuel_l@hotmail.com>
@sretika
Copy link
Author

sretika commented Jan 23, 2019

Sure thing. Done.

@blizzz
Copy link
Member

blizzz commented Jan 24, 2019

@sretika2 it should not return empty attributes, cf. https://github.com/nextcloud/server/blob/master/apps/user_ldap/lib/User/Manager.php#L200-L205

@MorrisJobke MorrisJobke mentioned this pull request Mar 4, 2019
45 tasks
@MorrisJobke MorrisJobke removed this from the Nextcloud 16 milestone Mar 6, 2019
@MorrisJobke MorrisJobke added this to the Nextcloud 17 milestone Mar 20, 2019
@MorrisJobke MorrisJobke mentioned this pull request Jul 15, 2019
28 tasks
@MorrisJobke
Copy link
Member

As there is no feedback since a while I will close this ticket. If this is still a problem please feel free to reopen and explain what is happening in detail. Maybe together with some debug logs with the variable values.

@MorrisJobke MorrisJobke removed this from the Nextcloud 17 milestone Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants