I'm trying to import the following LDIF file into an LDS Instance using LDIFDE.
dn: CN=SVCLDAPQuery,CN=Users,DC=testinstance,DC=ADAM
changetype: add
objectClass: user
userPrincipalName: SVCLDAPQuery
cn: Service Now LDAP Query
displayName: Service Now LDAP Query
userPassword: Passw0rd
I am performing the import with the following command:
ldifde -i -f SVCLDAPQuery.ldf -s localhost:10001
This command throws out the following errors:
Connecting to "localhost:10001"
Logging in as current user using SSPI
Importing directory from file "SVCLDAPQuery.ldf"
Loading entries.
Add error on entry starting on line 1: Invalid DN Syntax
The server side error is: 0x2081 Multiple values were specified for an attribute that can have only one value.
The extended server error is:
00002081: NameErr: DSID-03050C42, problem 2003 (BAD_ATT_SYNTAX), data 0, best match of:
'CN=SVCLDAPQuery,CN=Users,DC=testinstance,DC=ADAM'
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.
This occured because the "cn" attribute did not match the first part of the "distinguishedName" attribute. If we change this to:
dn: CN=SVCLDAPQuery,CN=Users,DC=testinstance,DC=ADAM
changetype: add
objectClass: user
userPrincipalName: SVCLDAPQuery
cn: SVCLDAPQuery
displayName: Service Now LDAP Query
userPassword: Passw0rd
The import will work correctly:
Please also see this problem as it is related:
http://clintboessen.blogspot.com/2011/06/0x2077-illegal-modify-operation-some.html
Subscribe to:
Post Comments (Atom)
I'm trying to import the following LDIF file but i am getting an error. the same as you get, but i typed it from the mcts book
ReplyDeletedn:CN=SERVER10,OU=Servers,DC=contoso,DC=com
changetype: add
objectClass: top
objectClass: Person
objectClass: organizationalPerson
objectClass: user
objectClass: computer
CN:SERVER10
userAccountControl:4096
sAMAccountName:SERVER10$
dn:CN=SERVER11,OU=Servers,DC=contoso,DC=com
changetype: add
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
objectClass: computer
CN:SERVER11
userAccountControl:4096
sAMAccountName:SERVER11$
The error is saying multiple values for the DN on line1. Multiple values are separated by the commas. What if you specify the DN with quotes, i.e
ReplyDeletedn:"CN=SERVER10,OU=Servers,DC=contoso,DC=com"
Let us know how you go.
Hello,
ReplyDeleteOk found the root cause, the command needs the distinguishedName attribute specified.
This will fail:
dn: CN=SERVER10,OU=Servers,DC=contoso,DC=com
changetype: add
objectClass: top
objectClass: Person
objectClass: organizationalPerson
objectClass: user
objectClass: computer
CN:SERVER10
userAccountControl:4096
sAMAccountName:SERVER10$
This will work:
dn: CN=SERVER10,OU=Servers,DC=contoso,DC=com
changetype: add
objectClass: top
objectClass: Person
objectClass: organizationalPerson
objectClass: user
objectClass: computer
CN:SERVER10
distinguishedName: CN=SERVER10,OU=Servers,DC=contoso,DC=com
userAccountControl:4096
sAMAccountName:SERVER10$
After being in relationship with George for five years,he broke up with me, I did everything possible to bring him back but all was in vain, I wanted him back so much because of the love I have for him, I begged him with everything, I made promises but he refused. I explained my problem to someone online and she suggested that I should contact a spell caster that could help me cast a spell to bring him back but I am the type that don't believed in spell, I had no choice than to try it, I meant a spell caster called DR Mako and I email him, and he told me there was no problem that everything will be okay before three days, that my ex will return to me before three days, he cast the spell and surprisingly in the second day, it was around 6pm. My ex called me, I was so surprised, I answered the call and all he said was that he was so sorry for everything that happened, that he wanted me to return to him, that he loves me so much. I was so happy and went to him, that was how we started living together happily again. Since then, I have made promise that anybody I know that have a relationship problem, I would be of help to such person by referring him or her to the only real and powerful spell caster who helped me with my own problem and who is different from all the fake ones out there. Anybody could need the help of the spell caster, his email: Makospelltemple@yahoo.com or call him :+2348108737816
ReplyDelete