Re: Can't authenticate using LDAP/AD
Thanks for the reply, still having some trouble though. Whenever I try to use CN=whatever in the authenticated user box I get [LDAP ERROR][49] Invalid Credentials whether I'm using userPrincipleName or sAMAccountName as the Login Attribute. I'm not real clear on the differences between them, I'm just going off what others have posted. Of course I have no idea what my CN= should be. I tried CN=ADReq, CN=Service Accounts as you suggested and I tried using the username CN=scrm, but I don't know if this is supposed to be some predefined service account or one I'm supposed to setup, doesn't seem to work either way. I understand what DC and OU are, don't understand CN at all.
As of right now it seems to me to be contacting the LDAP server okay since I am no longer getting an LDAP ERROR, just not authenticating the user. But then again this is all new to me so I can't be sure. Here are my new settings and the log file, any other suggestions?
I'm also not sure if I should be entering username or username@sentry.local in the sugarcrm login prompt.
Server: SENTRYSERVER.sentry.local
Port Number: 389
User DN: DC=sentry,DC=local
User Filter:
Bind Attribute: userPrincipleName
Login Attribute: userPrincipleName
Authentication User Name: scrm@sentry.local
Authentication Password: ******
Auto Create Users: Yes
01/07/10 10:31:02 [2040][-none-][FATAL] SECURITY: ldapauth: failed LDAP bind (login) by scrm, could not construct bind_user
01/07/10 10:31:02 [2040][-none-][FATAL] SECURITY: User authentication for scrm failed
01/07/10 10:31:02 [2040][-none-][FATAL] SECURITY: User authentication for scrm failed
01/07/10 10:31:02 [2040][-none-][FATAL] FAILED LOGIN:attempts[1] - scrm
I'm also locked out of the local accounts because when I imported my users it stripped out the passwords and I can no longer edit them manually through user management and the forgot/reset password feature sends me $contact_user_user_hash as the password rather than the actual password.
Last edited by bstonehill; 2010-01-07 at 03:28 PM.
Sugar Version 5.1.0a
PHP 5.2.5
MySQL 5.0.37
Bookmarks