-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Authentication to Active Directory #875
Comments
I don't know AD and I have no access to one. If authentication works for some users and for others not: find the difference between these accounts. This query seems to fail: Normally it should returns all user attributes for synching. Afterwards the group sync should be executed. But in your failing example another query is executed to find the users DN. |
Maybe you are using the _ sign in passwords. This may cause an authentification error. |
The problem seems to be in interpreting the results of the search function of the LdapDriver class. When this function is called with parameters $filter = (objectClass=*) and $baseDn = 'CN=Name Surname,OU=COMPANY Users and Groups,DC=is,DC=company,DC=si' it's result is:
|
Hm, then it fails somewhere around here: Can you add something like EDIT: Better add the debug here: https://github.com/kevinpapst/kimai2/blob/master/src/Ldap/LdapManager.php#L67 and |
Would it be possible to create a configuration setting in user section for $filter used in |
Sure, I can add a new config for that. |
Can you try the branch in #877 with the new config key:
Please try it first WITHOUT the new config key, just to make sure the expected error still happens. And thanks for the investigation 👍 |
Thank you for doing a wonderful job. It works. I've tested both scenarios. |
Cool. Happy to see it working with AD. |
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. If you use Kimai on a daily basis, please consider donating to support further development of Kimai. |
Describe the bug
Some users can authenticate to Active Directory, some can not. They are all in the same OU. Domain Administrator (from a different OU than regular users) can authenticate, but other existing domain users can not. Newly created users (from the same OU than existing users) can authenticate. Also if I copy an existing user that can not authenticate to a new user the new user can authenticate. I checked LDAP messages with MS Message Analyzer on AD server and bind with user credentials is successful for all users, even the ones that can not authenticate.
Local.yaml
Logfile
authentication successful:
authentication fails:
Additional context
The text was updated successfully, but these errors were encountered: