I'm using ubuntu 14.04 and OpenLDAP-2.4.40. I have synchronized Active Directory users in OpenLDAP using LSC utility. Now I want to do the authentications on the OpenLDAP part and will use the AD password using Pass-Trough authentication with SASL.
To do this I have followed this blog. After performing all the steps mentioned in this blog, I have fired the below command in command line to fetch user details:
ldapsearch -x -H ldap://ldap.example.com -D uid=Administrator,CN=Users,DC=example,DC=com -w password -b CN=Users,DC=example,DC=com
but after that I am getting:
ldap_bind: Invalid credentials (49)
even though credentials are correct. There are no logs in the log file to debug the issue.