General discussion

Locked

LDIFDE utility - needs help please

By emmaroslinda.edrus ·
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.

This conversation is currently closed to new comments.

10 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by azizhakim In reply to LDIFDE utility - needs he ...

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

Collapse -

by azizhakim In reply to

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

Collapse -

by emmaroslinda.edrus In reply to

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.

Collapse -

by azizhakim In reply to LDIFDE utility - needs he ...

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

Collapse -

by emmaroslinda.edrus In reply to

if i changed the OU to abc system , would it be any problem for it?

Collapse -

by voldar In reply to LDIFDE utility - needs he ...

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

Collapse -

by emmaroslinda.edrus In reply to

vladolar, i followed ur e.g also still cannot

Collapse -

by voldar In reply to LDIFDE utility - needs he ...

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.

Collapse -

by emmaroslinda.edrus In reply to

thanks vladolar, ur ideas have made my trying successfull.

Collapse -

by emmaroslinda.edrus In reply to LDIFDE utility - needs he ...

This question was closed by the author

Back to Windows Forum
10 total posts (Page 1 of 1)  

Related Discussions

Related Forums