-
Notifications
You must be signed in to change notification settings - Fork 81
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 issue with external LDAP to Microsoft AD (Active Directory) #296
Comments
In my opinion, the changes will be:
|
Furthermore, according to this document, Microsoft Active Directory supports several possible ways to make an LDAP bind. Except for binding with DN (distinguished name), AD accepts binding with something like UPN (User Principal Name, looks like |
There's another issue found recently, the original code assumes that it can use |
As far as my understanding, the behavior of fiware-idm's "External Authentication (LDAP)" is using the
reader_dn
andreader_password
, with thesuffix
as the search base, and use a filter(uid=<user>)
to do an LDAP bind and search operation. (code: external_auth/authentication_driver_ldap.js, line 26)However, the DN of AD (Microsoft Active Directory) looks like
CN=guest,OU=example,DC=oa,DC=test,DC=com
, so the filter to this case(uid=guest)
won't match any user in AD. By manually changeconst filter = '(uid=' + username + ')';
toconst filter = '(cn=' + username + ')';
at external_auth/authentication_driver_ldap.js, line 26, the login with LDAP works.Maybe this issue can be fixed by making the filter able to be configured by config.js?
The text was updated successfully, but these errors were encountered: