[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP-2.0.7: "ldap_add: No such object" -- PLEASE HELP!!!



David, Stephane. I have fixed what you have pointed out to me. No more "No
such object" error. However, this time I've received "ldap_add: already
exists" message. It is pasted below. Also I am attaching a modified version
of test.ldif file. As per David's instruction I removed c=US altogether. I
also tried and tested by removing 'o:' option as well as 'l:' option but I
am getting the same error about redundant entry. Again, Thank You guys for
helping me.
Alex

Enter LDAP Password:
add o:
        mycompany
add l:
        new york
add objectclass:
        organization
adding new entry "dc=mycompany, dc=com"
ldap_add: Already exists

ldif_record() = 68


Here is my test.ldif file:

dn: dc=mycompany, dc=com
o:mycompany
l:new york
objectclass: organization

dn: ou=IT, dc=mycompany, dc=com
ou: IT objectclass: organizationalunit

dn: ou=ACCOUNTING, dc=mycompany, dc=com
ou: ACCOUNTING
objectclass: organizationalunit

dn: ou=MANAGEMENT, dc=mycompany, dc=com
ou: MANAGEMENT
objectclass: organizationalunit

dn: ou=CLIENTS, dc=mycompany, dc=com
ou: CLIENTS
objectclass: organizationalunit

dn: ou=OFFICE, dc=mycompany, dc=com
ou: OFFICE
objectclass: organizationalunit

dn: ou=EMPLOYESS, dc=mycompany, dc=com
ou: EMPLOYEES
objectclass: organizationalunit

dn: cn=Mr.Peepers, ou=Friends, dc=mycompany, dc=com
cn: Mr.Peepers
sn: mycompany
mail: mrpeepers@mycompany.com
objectclass: person

dn: cn=Linus Torvalds, ou=Friends, dc=mycompany, dc=com
cn: Linus Torvalds
sn: Linus
mail: test@address.com
objectclass: person