Skip to content

Instantly share code, notes, and snippets.

@TylerBrock
Created March 25, 2014 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TylerBrock/9754612 to your computer and use it in GitHub Desktop.
Save TylerBrock/9754612 to your computer and use it in GitHub Desktop.
LDAP Cheat Sheet
# Bind as Manager and add a user as spcified in the ldif file test
ldapadd -x -W -D cn=Manager,dc=blah,dc=xxx -a -f test
# Bind as "Driver Team" and search for everything in dc=blah,dc=xxx
ldapsearch -x -D cn="Driver Team",ou=Users,dc=blah,dc=xxx -W -b dc=blah,dc=xxx
# Set the password for "Drivers-Team"
ldappasswd -x -D cn="Drivers-Team",ou=Users,dc=blah,dc=xxx -W -S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment