Reset passwordretrycount for all users


Revision as of 21:46, 17 September 2007 by Hutch (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Quick steps to reset passwordretrycount for all users in the LDAP passwd database:

$ ldaplist passwd | grep -v '^$' | while read LINE ; do /bin/echo "$LINE\nchangetype: modify\nreplace: passwordretrycount\npasswordretrycount: 0\n" >> /tmp/reset_passwordretrycount.ldif ; done
$ ldapmodify -h LDAP_server -D "cn=Directory Manager" -w BIND_password -f /tmp/reset_passwordretrycount.ldif
Personal tools