Skip to content

Instantly share code, notes, and snippets.

/gist:602848

Created Sep 29, 2010
Embed
What would you like to do?
#!/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
You can’t perform that action at this time.