Am struggling to get Drupal 5.9 to authenticate against OpenLDAP. Am running both on the same test machine. Get "Unknown user or password" errors. Here is my config:
server: localhost
port: 389
TLS: no
base dn: cn=techs,dc=mydomain,dc=com
Username attribute: sn
Non-anonymous search: cn=admin,dc=mydomain,dc=com
I've tried the ldaptest.php script and successfully retrieved entries from the LDAP server. I'm also successfully connecting and browsing the server with JXplorer.
One question: the entries I'm trying to authenticate are of objectclass person, with password stored (in plain text) in the userPassword attribute. Is that where ldapauth is looking? Also, the sn username attribute doesn't define the rdn, but I've tried the rdn attribute with no better luck.
Have been thrashing all day. Have read various posts by others who've similarly thrashed. Have tried all the tips, including making sure I don't have any trailing whitespace, etc.
Comments
Comment #1
outinsun commentedNever mind. I am a blithering idiot. When I changed user passwords in JXplorer, I clicked OK in the password dialog, but then forgot to click Submit in the main window, so the changes never took effect. Tried againd and did it right this time, and everything works just fine. Good news is that I can attest that integrating Drupal with OpenLDAP is trivial, as long as you have a few brain cells left to spare :-).
Comment #2
outinsun commented