On Thu, 19 Jul 2012, Karntol Dernsef wrote:
I am fighting with openldap for some time now and I can't get it to work.
I started clean. I've followed this tutorial, and everything works fine.
I used followed the example and only changed dc=company,dc=com into dc=mycompany,dc=org.
...
dn: o=mycompany.org
Which is it you want: dc=mycompany,dc=org or o=mycompany.org ?
But when I want to import, I get this:
[root@CentOS-01 cn=config]# ldapadd -W -D cn=admin,dc=mycompany,dc=org -v -x -f /tmp/mycompanyorg.ldif
So the LDIF uses o=mycompany.org but your LDAP directory contains dc=mycompany,dc=org?
...
So, a friend who helped me said I had to create the company first, and that I should use dc=company,dc=org instead of o=company.org.
I had to create the company first in the LDAP he said, so he passed me this file:
# usergroups.ldif # # dn: dc=mycompany,dc=org dc: company
...
[root@CentOS-01 cn=config]# ldapadd -W -D cn=admin,dc=mycompany,dc=org -v -x -f /tmp/usergroup.ldif ldap_initialize( <DEFAULT> )
...
adding new entry "dc=mycompany,dc=org" ldap_add: Naming violation (64) additional info: value of single-valued naming attribute 'dc' conflicts with value present in entry
So it's a problem with the dc attribute; let's look at that data again:
dn: dc=mycompany,dc=org dc: company
So, is it "mycompany" or "company"?!?
Philip Guenther