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,useraccountcontrolerror target container doesn't exist.
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."
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"
csvde -f output.csv -r "(samaccountname=administrator)" -l samaccountname
Windows Server > Management
Comments
Post a Comment