Jump to content

Recommended Posts

Posted

Hello! I am in the process of building a new domain for my district and I'm trying to import bulk users using csvde (which is new to me). I keep getting a DN syntax error but I can't find what's wrong. I did a dsquery to look up the DN of users I've created manually and followed that. Below is the csv I'm trying to use, the csvde error log, and a line from dsquery. I'm about to pull my hair out! Thanks in advance!

 

csv:

DN,gn,sn,sAMAcount,displayName,password,userPrincipalName,homeFolder,description,objectclass

"CN=Bulk Test,OU=Test,DC=eastguernsey,DC=eguernsey,DC=k12,DC=oh,DC=us",Bulk,Test,bulk.test,Bulk Test,12345,[email protected],\\eg2008dc1\bulk.test\;h:,test,user

 

error log:

 

Connecting to "(null)"

Logging in as current user using SSPI

Importing directory from file "testuploadbulk.csv"

Loading entries

2: "CN=Bulk Test,OU=Test,DC=eastguernsey,DC=eguernsey,DC=k12,DC=oh,DC=us"

Attribute 0) gn: Bulk

Attribute 1) sn: Test

Attribute 2) sAMAcount: bulk.test

Attribute 3) displayName: Bulk Test

Attribute 4) password: 12345

Attribute 5) userPrincipalName: [email protected]

Attribute 6) homeFolder: \eg2008dc1bulk.test;h:

Attribute 7) description: test

Attribute 8) objectclass: user

 

Add error on line 2: Invalid DN Syntax

The server side error is "The parameter is incorrect."

0 entries modified successfully.

An error has occurred in the program

 

 

dsquery line:

 

"CN=test,OU=Test,DC=eastguernsey,DC=eguernsey,DC=k12,DC=oh,DC=us"

Posted

You have a space here (see red text) it may cause a problem.

2: "CN=Bulk Test,OU=Test,DC=eastguernsey,DC=eguernsey,DC=k12,D C=oh,DC=us"

Posted (edited)

Its saying Invalid Syntax and that to me means there is a character out of place or being miss-used but I cant see where. :-/

 

Again on the 3rd line there is a space, I'm not sure if that makes a difference ether.

Test,12345,[email protected].oh .us,\\eg2008dc1\bulk.test\;h:,test,user

Edited by Gaz
Posted (edited)
Its saying Invalid Syntax and that to me means there is a character out of place or being miss-used but I cant see where. :-/

 

Again on the 3rd line there is a space, I'm not sure if that makes a difference ether.

Test,12345,[email protected].oh .us,\\eg2008dc1\bulk.test\;h:,test,user

 

The last part of that, shouldn't it be enclosed in quotes for the unc path or something along those lines ie :

 

Test,12345,[email protected].oh .us,"\\eg2008dc1\bulk.test\",h:,test,user

 

Changed the ; to a , at the end after the end quote mark

 

Just guessing btw - normally whenever I do unc type paths I have to enclose it in quotes

Edited by mac_shinobi

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...