ldappasswd -x -D cn=manager,o=SNCFT,c=TN -w yourmanagerpassword uid=$login,ou=People,o=SNCFT,c=TN -s $password Chen Min a écrit : > Hi, > I want to know the answer too. Have you gotten any idea? > > Thanks > > Min > > > -----Original Message----- > > From: pam-list-admin@redhat.com [mailto:pam-list-admin@redhat.com]On > > Behalf Of Maarten Buiter > > Sent: Thursday, October 24, 2002 6:03 AM > > To: pam-list@redhat.com > > Subject: PAM + LDAP passwd changes > > > > > > Hello, > > > > When I, as root, change the password of another user in the /etc/passwd > > file like > > > > [root@star /]#passwd anotheruser > > > > the password program immediately allows me to enter a new password. > > > > Now, I have this user in an LDAP-based directory. As root, I can > > modify his > > password, but the passwd-program first asks me to enter this > > user's current > > (LDAP) password before it lets me make any changes, which is very > > unpleasant > > in the case of somebody forgetting his/her password. > > > > Does anybody know how I should modify the /etc/pam.d/passwd file > > to overcome > > this unwanted situation? The current contents are displayed at the > > bottom of this message. > > > > Thanks in advance > > > > Maarten Buiter > > > > #%PAM-1.0 > > auth sufficient /lib/security/pam_ldap.so > > auth required /lib/security/pam_unix_auth.so use_first_pass > > > > account sufficient /lib/security/pam_ldap.so > > account required /lib/security/pam_unix_acct.so > > > > password required /lib/security/pam_cracklib.so retry=3 > > password sufficient /lib/security/pam_ldap.so > > password required /lib/security/pam_pwdb.so try_first_pass > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Pam-list@redhat.com > > https://listman.redhat.com/mailman/listinfo/pam-list > > > > _______________________________________________ > > Pam-list@redhat.com > https://listman.redhat.com/mailman/listinfo/pam-list (See attached file: smime.p7s)
Attachment:
=?iso-8859-1?Q?smime.p7s?=
Description: Binary data