-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Can't login with LDAP users even if the wizard says, that he found users #12059
Comments
Is the displayname set? |
Where can I set this? |
Found it. Advanced tab. Yes. Is set as |
Can you export your LDAP config using OCC? |
@LukasReschke Of course |
|
How to FIX this:Thx @LukasReschke - I need to set the I changed it to |
@MorrisJobke, see my comments on this issue: owncloud/enterprise#344. Want to open a new issue for "LDAP Wizard should warn when displayName is not valid"? @carlaschroder, please make sure the documentation suggests to verify that the displayName attribute is set correctly when the users page is not displaying ldap users. |
@MorrisJobke @craigpg Pull Requests to fix the 500 error is here #11789 and pull request to auto-detect display name attribute is here #11837 They desperately look for testers and reviewers 😸 |
Fixed with PRs mentioned above. |
I tried to setup LDAP users in ownCloud.
LDAP wizard:
First tab: Base-DN:
ou=mitarbeiter,ou=user,dc=SUB,dc=DOMAIN,dc=de
user filter: I selected one object class and then in the left buttom the user count of 10 appeared.(It's the correct value)
login filter: Tried following: the checkmark beside (LDAP user name), CN and SN separately (all the same - also all other attributes are detected correct)
group filter: all object classes are listed (I took one and it determines in the left buttom the correct number of 1 group)
The wizard says: All okay - green dot.
Then I switched to the user management: Just my ownCloud admin user (created at setup is listed) and the count for the "Everybody" group was 11 (correct - 1 ownCloud user and 10 in LDAP). But just the ownCloud one is listed. On every open of the user management following error appers in the log:
Once I want to login with a user it results in a white page with following error message:
This is fixed with #12058
After the above patch it simply says:
So I checked the value of
$dn
incore/apps/user_ldap/user_ldap.php
Line 68 in 6288257
Which was resolved to
cn=mjob,ou=mitarbeiter,ou=user,dc=SUB,dc=DOMAIN,dc=de
. I tried to look this up in our LDAP webinterface (not the ownCloud one - the one of our LDAP instance) and it resolves correctly to one user and it worked as intended.I then looked up the trace and it took the
else
branch inget()
of the user manager:core/apps/user_ldap/lib/user/manager.php
Line 154 in 6288257
$uid
was an empty string or null).Afterwards it took
core/apps/user_ldap/lib/user/manager.php
Line 160 in 6288257
$dn
was also an empty string or null.Any hints? What else should I try? cc @blizzz @PVince81
FYI: My first steps with LDAP ... kind of bad experience, but I really liked the wizard! It helped a lot! I will write down my experience with the wizard in another issue ;)
The text was updated successfully, but these errors were encountered: