Skip to content

Instantly share code, notes, and snippets.

@astaykov
Created November 29, 2019 10:01
Show Gist options
  • Save astaykov/fd1c97fcc076ec3178fa09a7352b1281 to your computer and use it in GitHub Desktop.
Save astaykov/fd1c97fcc076ec3178fa09a7352b1281 to your computer and use it in GitHub Desktop.
LDAP queries
// basically gets all data about organization
ldapsearch -x -h fqdn.of.the.domain -D "upn" -w "password" -b 'dc=idcxp,dc=site'
// get data about single user object
// make sure you get the DN correct
ldapsearch -x -h fqdn.of.the.domain -D "upn" -w "password" -b 'CN=bdm-user bdmou,OU=AADDC Users,DC=idcxp,DC=site'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment