I'm new to Drupal, and new to submitting issues, so I'm in the trenches learning as much as possible - as quickly as possible to get this issue resolved for a large project at work. Our project may or may not involve contractor help, but that's outside the scope of this particular issue.

I'm planning to roll out Drupal as our (intranet) WCMS for several hundred people on my office. One of the tasks I have is to integrate our test installation of Drupal with our Active Directory via LDAP. I have all the correct settings, so I think. They are as follows:
- Name = DrupalTestLDAP
- LDAP server = 10.17.104.151
- LDAP port = 3268
- Use Start-TLS = unchecked
- Store password in encrypted form = unchecked
- Base DNs = DC=ad,DC=SSA,DC=gov
- UserName attribute = cn
(I've also used sAMAccountName to no avail.)
- Email attribute = mail
- PHP to transform login name = (blank)
- PHP to filter users... = (blank)
- Advanced configuration
--- DN = CN=Whitten\, Wayne R.,OU=DCDISP,OU=DCRDP,OU=LAN Configs,DC=ba,DC=ad,DC=ssa,DC=gov
--- password = (my password)

Under advanced config the "Test" returns successful, so I know my DN and password combo is OK. I just don't know if the test includes the rest of settings.
I also know the settings are correct based upon the fact that they work for another application which integrates with AD via LDAP.

My problem is when I try to log in to the Drupal site (http://localhost/drupal) with my AD account and get "unrecognized username or password". This happens no matter which username attribute I use, be it cn or sAMAccountName. I've read other blogs which mention issues and preferences with both, but neither works, and I'm not even sure they're applicable to the issue. I've been locked out of my account after trying several times with different settings which leads me to believe that something isn't getting passed correctly between Drupal and AD. The log shows "Anonymous" as the "User" - which should not be the case, and "login attempt failed for [my sAMAccountName]" for the "Message". (This occurs after trying the attribute sAMAccountName. Same thing happens when trying my cn instead. The only difference is my cn gets added to the "Message" instead of my sAMAccountName.) I don't understand the results nor the operations.

Other helpful info:
- Drupal 6.14
- WAMP 2.0
- remoting to my test server using my AD account, test server is using Windows server and VMware (for virtual hosting)

Any help with this issue would be appreciated.

Wayne

Comments

cgmonroe’s picture

Status: Active » Closed (fixed)

Clearing out old support requests - reopen if problem still exists in newest code