How to get the AD LDAP DN name from an user

Some times we need to have the full distinguished LDAP name for an Active directory user.

There are at least two ways to accomplish this goal:

1st) Running the command dsquery user -name ADUSERNAME where ADUSERNAME is the name of the user on the AD

2nd) Running the command ldifde -f users.txt where all LDAP data from AD is dumped into the file named users.txt

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s