I'm trying to make Drupal work with ActiveDirectory just for authentication. I'm using Lightweight Directory Access Protocol.
I always get this message:
Warning: ldap_search(): Search: No such object in LdapServer->search() (line 257 of D:\wwwroot\drupal\sites\all\modules\ldap\ldap_servers\LdapServer.class.php).
Test sandbox-edu LDAP Server Configuration Binding with DN for non-anonymous search (firstname.lastname@example.org). Using password entered in form.
Successfully bound to server
Failed to find test user userone by searching on sAMAccountName = user one.
No such object
Here are the settings of the Server Properties:
sid = SANDBOX_EDU name = sandbox-edu status = 1 type = ad address = LDAP://10.100.100.2 port = 389 tls = 0 bind_method = 1 basedn = Array binddn = email@example.com user_dn_expression = cn=%username,%basedn user_attr = sAMAccountName mail_attr = ldap_to_drupal_user = testing_drupal_username = userone
Can anyone who were able to get this module working with ActiveDirectory show us a sample of the setting?
If there's any other way other than using this module, please also recommend. I really need Drupal to work with ActiveDirectory for authentication because we have many students here.