OpenLDAP

From CSLLabWiki
Revision as of 17:02, 28 March 2016 by Admin (talk | contribs) (→‎(Force) Changing a Password)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

(Force) Changing a Password[edit]

  • ldappasswd -h babbage.cs.transy.edu -D "cn=ldapadmin,dc=cs,dc=transy,dc=edu" -S "uid=USERNAME,ou=users,dc=cs,dc=transy,dc=edu" -w 'passwordhere' -x

Finding the Highest UID[edit]

  • ldapsearch -x -D "cn=ldapadmin,dc=cs,dc=transy,dc=edu" -w 'passwordhere' | awk '/uidNumber: / {print $2}' | tail -n 1