Solved

Work out a users distinguished name

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

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…
Invest in your employees with these five simple steps to improve employee engagement and retention.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

734 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