Import users to Active Directory


hi all,

am trying lot import users list active directory. unfortunately coulden´t make it. red many microsofts articles related issue doesn´t work. demonestrate how .csv file looks is, see below...

 this csv file, second raw user want import ad.

objectclass,samaccountname,dn,givenname,sn,useraccountcontrol
user,psmith,"cn=peter smith,cn=users,dc=mypc,dc=local,dc=nu",peter,smith,514

and when run ldifde -i -f students.csv

the result below...

connecting "mypc.mypc.local.nu"
logging in current user using sspi
importing directory file "students.csv"
loading entries.
there syntax error in input file
failed on line 1.  last token starts 'o'.
0 entries modified successfully.
an error has occurred in program
no log files written.  in order generate log file, please
specify log file path via -j option.


can 1 understand cause problem?

/m

objectclass,samaccountname,dn,givenname,sn,useraccountcontrol
user,psmith,"cn=peter smith,cn=users,dc=mypc,dc=local,dc=nu",peter,smith,514

...

add error on line 2: no such object
the server side error "directory object not found."
error target container doesn't exist.
i see 2 possibly reasons:
  • incorrect domain-dn. domain dc=mypc,dc=local,dc=nu ?
    mypc sounds computer object in domain dc=local,dc=nu
    if so, dn in csv-file nead changed to
    "cn=peter smith,cn=users,dc=local,dc=nu"
  • users ou (organizational unit) instead of container (cn).
    if so, change dn in csv-file to
    "cn=peter smith,ou=users,dc=mypc,dc=local,dc=nu"
users default container (cn), problem propably first option have specified incorrect domain-dn. make sure correct dn, use following command export a user.
csvde -f output.csv -r "(samaccountname=administrator)" -l samaccountname


Windows Server  >  Management



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL