Skip to content

Instantly share code, notes, and snippets.

@nipunthathsara
Created April 21, 2020 11:46
Show Gist options
  • Save nipunthathsara/21379e8627de19dbd1c931e6db6eb5a8 to your computer and use it in GitHub Desktop.
Save nipunthathsara/21379e8627de19dbd1c931e6db6eb5a8 to your computer and use it in GitHub Desktop.
LDAP Search samples
// Check if xyz.com tenant admin exists in the LDAP server.
ldapsearch -H ldap://localhost:10389 -x -D "uid=admin,ou=system" -W -b "ou=users,ou=xyz.com,dc=wso2,dc=org" "(&(objectClass=person)(uid=xyzadmin))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment