Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Register a shell function called ldapuser to search the University of Guelph's LDAP server for a record with the given username.
# Use as `ldapuser username` to lookup ldap record for "username"
function ldapuser {
ldapsearch -x -H ldap://directory.uoguelph.ca -b "ou=People,o=uoguelph.ca" "uid=$1"
}
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.