Skip to content

Instantly share code, notes, and snippets.

Created September 29, 2010 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/602848 to your computer and use it in GitHub Desktop.
Save anonymous/602848 to your computer and use it in GitHub Desktop.
#!/bin/bash
search=$1
[ -z "${search}" ] && search="(objectclass=*)"
ldapsearch -LxH ${LDAP_SERVER} -b "${LDAP_BASEDN}" -D "${LDAP_BINDDN}" \
-w ${LDAP_PASSWORD} -s sub "${search}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment