OpenLDAP: Difference between revisions

From CSLLabWiki
Jump to navigation Jump to search
(Created page with '== (Force) Changing a Password == * 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 -x')
 
 
Line 1: Line 1:
== (Force) Changing a Password ==
== (Force) Changing a Password ==
* 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 -x
* 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 ==
*ldapsearch -x -D "cn=ldapadmin,dc=cs,dc=transy,dc=edu" -w 'passwordhere' | awk '/uidNumber: / {print $2}' | tail -n 1

Latest revision as of 17:02, 28 March 2016

(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