I am trying to authenticate a user from an application running on a client of the SME 8 server. The user is a member of the Users group in SME. The client machine is a CentOS 5 installed for testing although I have confirmed the following behavior on a Mac OS X client as well.
This works when the admin password is entered:
ldapsearch -x -h ldap.mydomain.com -p 389 -b dc=ldap,dc=mydomain,dc=com "(uid=mark)" cn sn displayName
However using the admin password in the client app is not wise.
This fails when run on the client machine or run on the SME server console:
ldapwhoami -n -v -h ldap.mydomain.com -p 389 -D "ou=Users,uid=mark,dc=mydomain,dc=com" -w markspwd -x;
The output is...
ldap_initialize( ldap://ldap.mydomain.com:389 )
ldap_bind: Invalid credentials (49)
I have verified the password. I don't see what is missing.
Any help and suggestions greatly appreciated.