[Date Prev][Date Next] [Chronological] [Thread] [Top]

openldap, pam_ldap, accounts



Hello !

    I am really really newbie with LDAP. Anyways I succeeded to install
OpenLDAP, pam_ldap and succeeded to add account entries to LDAP. I can
find entries from LDAP with ldapsearch. I used migrate perl scripts as
help when adding login information to LDAP. I also compiled sshd with
pam support. I also verified that sshd is searchig pam and ldap
information from system syslogs (I am using RedHat 6.1). Now when
logging to machine this kind of error message will appear to syslog.

Dec  2 15:10:07 localhost login: pam_ldap: ldap_simple_bind_s Invalid
credentials

    What might be the problem or what should I check for finding the
possible problem ?

/etc/pam.d/sshd, looks like this
#%PAM-1.0
auth       required     /lib/security/pam_nologin.so
auth       sufficient   /lib/security/pam_ldap.so
auth       required     /lib/security/pam_unix_auth.so try_first_pass
account    sufficient   /lib/security/pam_ldap.so
account    required     /lib/security/pam_unix_acct.so
password   required     /lib/security/pam_cracklib.so
password   sufficient   /lib/security/pam_ldap.so
password   required     /lib/security/pam_pwdb.so use_first_pass
session    required     /lib/security/pam_unix_session.so


/etc/pam.d/login, looks like this
#%PAM-1.0
auth       required /lib/security/pam_securetty.so
auth       required     /lib/security/pam_nologin.so
auth       sufficient /lib/security/pam_ldap.so
auth       required /lib/security/pam_unix_auth.so try_first_pass
account    sufficient /lib/security/pam_ldap.so
account    required /lib/security/pam_unix_acct.so
password   required /lib/security/pam_cracklib.so
password   required /lib/security/pam_ldap.so
password   required     /lib/security/pam_pwdb.so use_first_pass
session    required /lib/security/pam_unix_session.so

    Thank you very much,
                                            Mika Saari