Solved

Work out a users distinguished name

Posted on 2006-11-08
2
346 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

617 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