Hi, I'm quite new with LDAP so ....
i have created a new ou with this command: slapadd -l ./new-od.ldif without any errors
dn: ou=Recipients_Seny, ou=Recipients, ou=not_users, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: Recipients_Seny objectClass: top objectClass: organizationalUnit
when i add data i get this error: igor:~# ldapadd -c -x -S /var/log/sync-ldap/ldapadd-userinfo.log -D "cn=admin,dc=internal,dc=sodexh o,dc=be" -w xxx -h 127.0.0.1 -P 3 -f ./sos.ldif adding new entry "CN=SOSCATALOG,OU=Recipients_Seny,OU=Recipients,OU=not_users,OU=users_sxo,DC=intern al,DC=sodexho,DC=be" ldap_add: No such object (32) matched DN: ou=Recipients,ou=not_users,ou=users_sxo,dc=internal,dc=sodexho,dc=be
the ldif: dn: CN=SOSCATALOG,OU=Recipients_Seny,OU=Recipients,OU=not_users,OU=users_sxo,DC=internal,DC=sodexho,DC=be cn: SOSCATALOG displayName: SOSCATALOG mail: SOSCATALOG@sodexho-be.com givenName: SOSCATALOG objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: person sn: SOSCATALOG
what must be done to solve this?
TIA
gandalf istari wrote:
i have created a new ou with this command: slapadd -l ./new-od.ldif without any errors
Why didn't you use ldapadd for this single entry?
when i add data i get this error: igor:~# ldapadd -c -x -S /var/log/sync-ldap/ldapadd-userinfo.log -D "cn=admin,dc=internal,dc=sodexh o,dc=be" -w xxx -h 127.0.0.1 http://127.0.0.1 -P 3 -f ./sos.ldif adding new entry
"CN=SOSCATALOG,OU=Recipients_Seny,OU=Recipients,OU=not_users,OU=users_sxo,DC=intern
al,DC=sodexho,DC=be" ldap_add: No such object (32) matched DN: ou=Recipients,ou=not_users,ou=users_sxo,dc=internal,dc=sodexho,dc=be
Did you check with too ldapsearch whether the entry
OU=Recipients_Seny,OU=Recipients,OU=not_users,OU=users_sxo,DC=internal,DC=sodexho,DC=be
is really present?
Ciao, Michael.
Michael Ströder schreef:
gandalf istari wrote:
i have created a new ou with this command: slapadd -l ./new-od.ldif without any errors
Why didn't you use ldapadd for this single entry?
because its a part of a large script, and i have only here a problem.
when i add data i get this error: igor:~# ldapadd -c -x -S /var/log/sync-ldap/ldapadd-userinfo.log -D "cn=admin,dc=internal,dc=sodexh o,dc=be" -w xxx -h 127.0.0.1 http://127.0.0.1 -P 3 -f ./sos.ldif adding new entry
"CN=SOSCATALOG,OU=Recipients_Seny,OU=Recipients,OU=not_users,OU=users_sxo,DC=intern
al,DC=sodexho,DC=be" ldap_add: No such object (32) matched DN: ou=Recipients,ou=not_users,ou=users_sxo,dc=internal,dc=sodexho,dc=be
Did you check with too ldapsearch whether the entry
Yes, and ldap search don't find anything, but when i want to ad it again i get a error that it already exists!
OU=Recipients_Seny,OU=Recipients,OU=not_users,OU=users_sxo,DC=internal,DC=sodexho,DC=be
is really present?
Yes this entry is present
Ciao, Michael.
Thanks
Erestor Elensar wrote:
Michael Ströder schreef:
gandalf istari wrote:
i have created a new ou with this command: slapadd -l ./new-od.ldif without any errors
Why didn't you use ldapadd for this single entry?
because its a part of a large script, and i have only here a problem. [..]
"CN=SOSCATALOG,OU=Recipients_Seny,OU=Recipients,OU=not_users,OU=users_sxo,DC=intern
al,DC=sodexho,DC=be" ldap_add: No such object (32) matched DN: ou=Recipients,ou=not_users,ou=users_sxo,dc=internal,dc=sodexho,dc=be
Did you check with too ldapsearch whether the entry
Yes, and ldap search don't find anything, but when i want to ad it again i get a error that it already exists!
I suspect something's wrong with you "large script" using slapadd.
Ciao, Michael
Michael Ströder schreef:
Erestor Elensar wrote:
Michael Ströder schreef:
gandalf istari wrote:
i have created a new ou with this command: slapadd -l ./new-od.ldif without any errors
Why didn't you use ldapadd for this single entry?
because its a part of a large script, and i have only here a problem. [..]
"CN=SOSCATALOG,OU=Recipients_Seny,OU=Recipients,OU=not_users,OU=users_sxo,DC=intern
al,DC=sodexho,DC=be" ldap_add: No such object (32) matched DN: ou=Recipients,ou=not_users,ou=users_sxo,dc=internal,dc=sodexho,dc=be
Did you check with too ldapsearch whether the entry
Yes, and ldap search don't find anything, but when i want to ad it again i get a error that it already exists!
I suspect something's wrong with you "large script" using slapadd.
Here is the "large script" that we use.
Thanks
Ciao, Michael
dn: dc=internal,dc=sodexho,dc=be dc: internal objectClass: top objectClass: domain
dn: ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: users_sxo objectClass: top objectClass: organizationalUnit
dn: cn=admin, dc=internal,dc=sodexho,dc=be cn: admin userPassword: {SSHA}Xs4LW1Aj918zQI4Xt0Ys81hpZuuhD/Hd objectClass: simpleSecurityObject objectClass: organizationalRole
dn: cn=sxo-ldap-user, dc=internal,dc=sodexho,dc=be cn: sxo-ldap-user description: Sodexho addressbook user userPassword: {SSHA}6KUQpWtkuaMduOvqI+/qY6mFAUrkiX5k objectClass: simpleSecurityObject objectClass: organizationalRole
dn: ou=exploits, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: exploits objectClass: top objectClass: organizationalUnit
dn: ou=not_users, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: not_users objectClass: top objectClass: organizationalUnit
dn: ou=Recipients, ou=not_users, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: Recipients objectClass: top objectClass: organizationalUnit
dn: ou=Recipients_Seny, ou=Recipients, ou=not_users, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: Recipients_Seny objectClass: top objectClass: organizationalUnit
dn: ou=Recipients_Unit, ou=Recipients, ou=not_users, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: Recipients_Unit objectClass: top objectClass: organizationalUnit
dn: ou=Rec_Units_SDX, ou=Recipients_Unit, ou=Recipients, ou=not_users, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: Rec_Units_SDX objectClass: top objectClass: organizationalUnit
dn: ou=structure, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: structure objectClass: top objectClass: organizationalUnit
dn: ou=parc_seny, ou=structure, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: parc_seny objectClass: top objectClass: organizationalUnit
dn: ou=externes, ou=structure, ou=users_sxo, dc=internal,dc=sodexho,dc=be ou: externes objectClass: top objectClass: organizationalUnit
openldap-software@openldap.org