Solved

Work out a users distinguished name

Posted on 2006-11-08
2
337 Views
Last Modified: 2010-04-13
I know this may seem like an easy task but can you tell how I can work out a users distinguished name e.g. cn= etc.

Many thanks.

Scott
0
Comment
Question by:sharrison78
2 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 125 total points
ID: 17899519
A quick way is to use the first script from this page:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/oct04/hey1021.mspx

To do it manually, locate the user in Active Directory Users and Computers.  The distinguished name consists of the username (cn=joesmith), any organizational units (ou=sales department), any containers (cn=Users), and the domain name (dc=contoso,dc=com).  Containers are the folder objects in AD Users and Computers which don't have book symbols on them.  Parts of the name are separated by commas.

So if you have a user joesmith in the domain contoso.com who is in the Organizational Unit named Sales Department which is under another Organizational Unit named Cleveland then he would have the following distinguished name:
cn=joesmith,ou=sales department,ou=cleveland,dc=contoso,dc=com.

If the user janejones is just in the Users container then she would have the following distinguished name:
cn=janejones,cn=users,dc=contoso,dc=com.
0
 

Author Comment

by:sharrison78
ID: 17907388
Great, thank you very much!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now