fjal79
asked on
Unable to import user objects using CSVDE
I was doing one of the lab exercises found in the 70-290 MS press book on page 3-29 and received an error message after typing the information word for word. I had already created OU for employees.
DN,objectClass,sAMAccountN ame,sn,giv enName,use rPrincipal Name
"CN=Danielle Tiedt,OU=Employees,DC=cont oso,DC=com ",
user,dtiedt,Tiedt,Danielle ,danielle. tiedt@cont oso.com
"CN=Smith-Bates,OU=Employe es,DC=cons toso,DC=co m",
user,lsmithbates,Smith-Bat es,Lorrin, lorrin.smi thbates@co ntoso.com
I type this in at the command prompt: csvde -i -f c:\users.csv
This is the error message in command:
C:\Documents and Settings\Administrator>csv de -i -f c:\users.csv
Connecting to "(null)"
Logging in as current user using SSPI
Importing directory from file "c:\users.csv"
Loading entries.
Add error on line 2: Object Class Violation
The server side error is "The object class attribute must be specified."
0 entries modified successfully.
An error has occurred in the program
No log files were written. In order to generate a log file, please
specify the log file path via the -j option.
DN,objectClass,sAMAccountN
"CN=Danielle Tiedt,OU=Employees,DC=cont
user,dtiedt,Tiedt,Danielle
"CN=Smith-Bates,OU=Employe
user,lsmithbates,Smith-Bat
I type this in at the command prompt: csvde -i -f c:\users.csv
This is the error message in command:
C:\Documents and Settings\Administrator>csv
Connecting to "(null)"
Logging in as current user using SSPI
Importing directory from file "c:\users.csv"
Loading entries.
Add error on line 2: Object Class Violation
The server side error is "The object class attribute must be specified."
0 entries modified successfully.
An error has occurred in the program
No log files were written. In order to generate a log file, please
specify the log file path via the -j option.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Make sure you are providing correct user DN... Like I see different domains in both lines like:
"CN=Danielle Tiedt,OU=Employees,DC=cont oso,DC=com "
"CN=Smith-Bates,OU=Employe es,DC=cons toso,DC=co m"
is it contoso or constoso!!
"CN=Danielle Tiedt,OU=Employees,DC=cont
"CN=Smith-Bates,OU=Employe
is it contoso or constoso!!
farhankazi is correct.
I have been trying to reproduce the error in my test domain and there wasnt an issue. It was because I changed the domain names and avoided the typo...
I have been trying to reproduce the error in my test domain and there wasnt an issue. It was because I changed the domain names and avoided the typo...
ASKER
Thanks it was a typo. Tested good now.
ASKER
DN,objectClass,sAMAccountN
(I entered one line)
"CN=Smith-Bates,OU=Employe
This is the error message:
C:\Documents and Settings\Administrator>csv
Connecting to "(null)"
Logging in as current user using SSPI
Importing directory from file "c:\users.csv"
Loading entries.
Add error on line 2: Referral
The server side error is "A referral was returned from the server."
0 entries modified successfully.
An error has occurred in the program
No log files were written. In order to generate a log file, please
specify the log file path via the -j option.