Active Directory – How to know the Base DN and Bind DN of a user

Following steps can be used to know the Base DN and Bind DN of a user

Open the command prompt  on winodws2003 AD server and type”dsquery user”

C:\>dsquery user
“CN=Administrator,CN=Users,DC=wad,DC=com”
“CN=Guest,CN=Users,DC=wad,DC=com”
“CN=SUPPORT_388945a0,CN=Users,DC=wad,DC=com”
“CN=krbtgt,CN=Users,DC=wad,DC=com”
“CN=root,CN=Users,DC=wad,DC=com”
“CN=IUSR_WICHEU-TOL55S55,CN=Users,DC=wad,DC=com”
“CN=IWAM_WICHEU-TOL55S55,CN=Users,DC=wad,DC=com”
“CN=vdi1,CN=Users,DC=wad,DC=com”

For a specific user, you can type ”dsquery user -name xxx*”

C:\>dsquery user -name vd*
“CN=vdi1,CN=Users,DC=wad,DC=com”

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