Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1489
  • Last Modified:

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

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
Rinnt
Asked:
Rinnt
  • 2
1 Solution
 
oBdACommented:
dsadd user "CN=newbie,ou=Admin,ou=Sales,ou=CorpRoot,dc=fiction,dc=com"
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
oBda, sorry, you where faster...
0
 
TASINetworkCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now