pam_ldap fails but ldappasswd works

View: New views
1 Messages — Rating Filter:   Alert me  

pam_ldap fails but ldappasswd works

by Kent Tong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

pam_ldap fails to authenticate a user (trying to login with ssh). auth.log says:

Oct 14 05:36:24 hoadms004 sshd[5734]: Invalid user abraham from 127.0.0.1
Oct 14 05:36:24 hoadms004 sshd[5734]: Failed none for invalid user abraham from
127.0.0.1 port 55946 ssh2
Oct 14 05:36:28 hoadms004 sshd[5734]: pam_ldap: error trying to bind as user "uid=abraham,ou=people,dc=cpttm,dc=org,dc=mo" (Invalid credentials)

However, I can use ldappasswd to change that user's password while binding as
that user:

ldappasswd  -x -D "uid=abraham,ou=people,dc=cpttm,dc=org,dc=mo" -W
-H ldaps://ldap1.cpttm/ -A -S "uid=abraham,ou=people,dc=cpttm,dc=org,dc=mo"

ldapsearch also works fine:

ldapsearch  -x -D "uid=abraham,ou=people,dc=cpttm,dc=org,dc=mo" -W
-H ldaps://ldap1.cpttm/

any idea?
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA