I think I have the LDAP modules setup correctly, but I receive the message "Sorry. Unrecognized username or password." when I try to log in. If I check the logs, it simply says that the login attempt failed: %error.

Is there somewhere I can look to get a better idea of what's not working?

Comments

miggs’s picture

ok,

After a lot of work and looking around I finally got it going. I thought I would post my process as it may help someone else having similar issues. I never was able to get more information out of the logs or the error message, which was unfortunate. After a lot of poking around, I found that it was the SSL that was giving me an error. When I setup LDAP to go through port 389 it worked just fine.

So, I did some searching into why I couldn't connect through 636 and here's what I found.

1. Under LDAP server, you can't just put your server name. If you want to connect through SSL, you have to put "ldaps://servername" and also set the port to 636

2. I was trying to connect to a ldap server with a self-signed certtificate. This was giving me an error even when I had the settings correct in drupal. After doing some poking around, I found that if I added the line "TLS_REQCERT never" to my ldap.conf file it would remedy this issue. This file was located at /etc/openldap/ldap.conf (depending on your OS). I rebooted apache and it worked right away.

Hopefully this was helpful. Cheers

eriktoyra’s picture

Status: Active » Closed (fixed)

Closing this report as the original author seems to have found the solution.