Solved

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

Posted on 2004-08-20
4
1,429 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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