Tuesday, April 12, 2011

Find full distinguished LDAP name for an Active directory user

For an application I was setting up it required full distinguished LDAP name for an Active directory user to assign permissions. The way to find this is -
One. Running the command dsquery user -name ADUSERNAME where ADUSERNAME is the name of the user on the AD
Two. Running the command ldifde -f users.txt where all LDAP data from AD is dumped into the file named users.txt