Solved

Work out a users distinguished name

Posted on 2006-11-08
2
340 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

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 aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

861 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

23 Experts available now in Live!

Get 1:1 Help Now