header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
cannot resolve directory object for the given identity
Last Post 31 Dec 2009 01:12 PM by john. 2 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
johnUser is Offline
New Member
New Member
Posts:3
Avatar

--
31 Dec 2009 12:47 PM
    when i type this command
    import-csv c:\import\onlyusers.csv | %{ new-qaduser -ParentContainer 'OU=Users,DC=dablock,DC=org' -name $_.name -samAccountName $_.samaccountname -UserPrincipalName $_.userprincipalname -FirstNam
    e $_.cn -LastName $_.sn -DisplayName $_.givenname -UserPassword $_.Password }

    i get the following error
    New-QADUser : Cannot resolve directory object for the given identity: 'OU=Users,DC=dablock,DC=org'.
    At line:1 char:52
    + import-csv c:\import\onlyusers.csv | %{ new-qaduser  <<<< -ParentContainer 'OU=Users,DC=dablock,DC=org' -name $_.name
     -samAccountName $_.samaccountname -UserPrincipalName $_.userprincipalname -FirstName $_.cn -LastName $_.sn -DisplayNam
    e $_.givenname -UserPassword $_.Password }

    the i try Get-QADObject technical -Type OrganizationalUnit and i get no return.  anyone have any ideas?  the ou does exist as it is an out of the box AD install.
    TIA
    cameronoveUser is Offline
    Basic Member
    Basic Member
    Posts:332
    Avatar

    --
    31 Dec 2009 01:05 PM
    Well if you are referring to the default Users container that ships with AD then it's not an OU. It just a container.

    cn=users,dc=dablock,dc=org

    would be the appropriate DN.
    johnUser is Offline
    New Member
    New Member
    Posts:3
    Avatar

    --
    31 Dec 2009 01:12 PM
    wow that was easy, thanks
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer