Solved

dsadd: adding users in nested OUs, what would be the DN?

Posted on 2004-08-20
4
1,422 Views
Last Modified: 2008-02-01
For the life of me I cannot figure this out...  Lets say I want to add a user in the OU CorpRoot>Sales>Admin.  Perhaps I am just unfamiliar with the usage of DNs (has been a while), but I can't seem to get this to work.  Normally, if I wanted to add a user just to CorpRoot it would be:

dsadd user "CN=newbie,ou=CorpRoot,dc=fiction,dc=com"

But what if I want to add a user or other object to an  OU deeper than CorpRoot?
0
Comment
Question by:Rinnt
  • 2
4 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 50 total points
ID: 11850985
dsadd user "CN=newbie,ou=Admin,ou=Sales,ou=CorpRoot,dc=fiction,dc=com"
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 11851082
it's the same as for the dc parts: read from right to left:

dsadd user "CN=newbie,ou=Voyager,ou=StarTrek,ou=CorpRoot,dc=fiction,dc=com"

Cheers
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 11851083
oBda, sorry, you where faster...
0
 
LVL 2

Expert Comment

by:TASINetwork
ID: 11851845
Actually, if you want it to be in an OU, then it should be OU=newbie,.................
If you create a container, then you can't assign GPO's, etc.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

8 Experts available now in Live!

Get 1:1 Help Now