-
Notifications
You must be signed in to change notification settings - Fork 2.1k
LDAP: do not attempt to process user records without display name, fi… #20804
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
Conversation
|
By analyzing the blame information on this pull request, we identified @LukasReschke, @esakol and @MorrisJobke to be potential reviewers |
05580af to
9487cb9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such tests with side effects make me shiver so much as users can also request them via web 🙊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be packed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately. We do. Everything that you put into the tests folder will be packaged. One exception being the one in the root folder 👯 🚀 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put it this way: at least Apache users should be safe, right. With the .htaccess in front. Anyway, I see this rather as issue in the packaging script than here.
@blizzz if you want me to help testing this I'll need more details how to configure this 😄 |
|
CC @MorrisJobke |
Have at least one user in your LDAP where the "displayname" attribute is not set. Use an auto-created user filter. |
|
My steps:
It seems to work as expected. HOWEVER, I'm not able to reproduce the original issue with these steps. I'm not getting the @blizzz you mentioned auto-created filter, are you sure I shouldn't change it to make sure it fetches the users ? Which filter value should I use ? (LDAP noob) |
|
@blizzz in the original post you said "configured in a way, that a user without displayname would get fetched", this seems to imply additional steps in the wizard. Can you give me some details, what value should I enter where ? Thanks. |
|
It should work exactly like this. Maybe you have had some results from LDAP cache? defaults to 10min. |
|
I was affected by this bug. Anyway, I was able to fix it but I think a lot of people may wait for it. This bug leads to some big issues (like disabling a share created from the admin to a LDAP group, having the shared folder removed from all the users' devices). To tell more about my problem: |
|
@blizzz I set the TTL to 60 seconds. This is on master 88c4cba in my attempt to reproduce the original issue. |
9487cb9 to
1ed6132
Compare
|
Just to inform you that this indeed fixes my issue on OC 8.2.2 on Ubuntu 14.04. |
|
This fix should be in 8.2.2! It fixes my issue but now I got a Error in my log. |
|
@musaa32 can you elaborate? It's don't really understand your statement, sorry. This fix here is not merged yet. @lckarssen thanks for testing :) |
|
@scollin I understand you applied this patch as well and it works for you? Then we'd have two successful tests 🚀 |
Maybe that does not really delete the attribute but just sets it to an empty value? Never tried with that, but I might remember it was not so easypeasy to fundamentally kill it. But I may mix something up. |
|
@blizzz No sorry, I didn't test the patch as I don't have a real test version (only the production one), I "fixed" the problem by adding the displayName field to my problematic LDAP user. But if it is required for the fix to be merged, I can create a test version. |
This would be wonderful :) |
|
https://patch-diff.githubusercontent.com/raw/owncloud/core/pull/20804.patch |
|
Two people tested it, counting as 👍 The code looks good 👍 |
…layname LDAP: do not attempt to process user records without display name, fi…
|
Backport does not exist, label info is wrong. Ref #22541 (comment) |
|
Backport to stable8.2: #24498 |
|
9.0.2 is also affected ... i try to enable the LDAP Plugin, and the connection works like a charm, but Server configuration {"reqId":"pyWOMjO18YY986CW+L1B","remoteAddr":"5.147.253.110","app":"PHP","message":"Call to a member function processAttributes() on a non-object at /srv/webapps/rb-owncloud/production/releases/1/public/apps/user_ldap/lib/access.php#733","level":3,"time":"2016-05-19T15:57:31+00:00","method":"POST","url":"/","user":"--"} Just user_ldap mysql oc_ldap_user_mapping xxx = our domain stuff, firstname and lastname are your anon data BaseDN Test works like a charm and retrives 70 entries But login crashes with the error message in the log show above. Any ideas? |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
…xes fatal error
Steps to reproduce
Expected behaviour
All valid users appear
Actual behaviour
Page appears to be loading but nothing happens, Log says
Call to a member function processAttributes() on a non-object at \/var\/www\/owncloud\/apps\/user_ldap\/lib\/access.php#717Fix comes with integration test.
8.2 is affected and requires a backport. Please confirm @karlitschek
Please test and review @owncloud/ldap @GreenArchon @pierrejochem @phil-davis @dirkahrnke