OpenLDAP
(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 '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