Discussion Locked

LDIFDE utility - needs help please

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

To : Whom can help me

This is the content of my user.ldf file

dn:CN=James Smith,OU=System,DC=school,DC=local,DC=my
changetype:add
cn:James Smith
objectclass:user
samAccountName:James
givenNames:James
sn:Smith

I use it with the LDIFDE windows 2000 server utility. I would like to add a user in the school domain but i got an error after i execute this command

"ldifde -i -f user.ldf com-avlsvr-01"

the error is
"Connecting to "com-avlsvr-01"
Logging in as current user using SSPI
Importing directory from file "user.ldf"
Error occured during initialization
File operation failure
0 entries modified successfully.
An error has occurred in the program"

Hope that you guyz can advice me to check where is it the possibility of this error happens? Appreciate very much. Thank you.

10 replies

by azizhakim

Viewing you ldf file if it written without typo errors here is my thought
1)the DN value has to be accurate in the hierachy where you want the object in AD
eg cn=username,cn=users (users container),dc=fqdn,dc=fqdn Extention
2)GivenNames attribute has to change to singular
GivenName (ALL ONE WORD)
Should work there after
I have Included one successful example from my ldf

by azizhakim

Sorry Sent it off too early here is my sample ldf file.
NB Notice DN value and GivenName attribute

dn:CN=Michael Test,CN=Users,DC=topgun,DC=net
changetype:add
cn:Michael Test
objectclass:user
samAccountName:MTest
GivenName:Michael
sn:Test
l:SF
st:california
postalCode:00000
Hope it helps

by emmaroslinda.edrus

Aziz, Thanks for your help but still cannot

I edited back the file and here is the edited one but still came out the same error.

dn:CN=James Smith,OU=System,DC=school,DC=local,DC=my
changetype:add
cn:James Smith
objectclass:user
samAccountName:James
GivenName:James
sn:Smith

I wonder this ldf file can it be save anywhere? so when it is executed it automatically can find it? because i try to save it in c:\winnt still come out the error.

My server name is com-avlsvr-01
My domain name is school.local.my
My OU under that domain is system

So is there any other things wrong? Is the syntax a case sensitive?

Hope that anyone can help me. Thank You.

by azizhakim

ldifde utility is case insensitive.Ldifde can be placed anywhere on HDD.The -f switch is the path to file eg -f c:\user.ldf.My second suggestion is modify the file to point to another OU because System is pre created by windows and you cannot create users in that partition.it is used for frs dfs repl,policies etc.Test the identical ldf file with a test user in users container and IT SHOULD BE SUCCESSFUL.NB users container has CN value not OU value.
Do you have any users in that container.
That is what I have come up with Good luck

by voldar

Hi there,

I propose u to use a .txt file like this one:

DN: CN=James Smith,OU=System,DC=school,DC=local,DC=my
objectclass: user
samAccountName: James
userPrincipalName: James@school.local.my
displayName: James Smith
userAccountControl: 512

by voldar

Have you tried to use the ldifde command without typing the server name? I mean, being at the server console - type: ldifde -i -f users.txt/users.ldf command.
Because now, as I reconsider your question, I see that is not an error from the users.txt/users.ldf file, it's an error of permissions. Erros messages from users.txt/users.ldf file allways specify the line where they occure.

This discussion is closed to new replies.