LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   [resolve] LDAP- Intiital file import Failed (http://www.linuxquestions.org/questions/linux-server-73/%5Bresolve%5D-ldap-intiital-file-import-failed-947002/)

lunocio 05-26-2012 01:28 PM

[resolve] LDAP- Intiital file import Failed
 
i have error below :

Quote:

ldapadd -c -x -D "cn=Manager,dc=ngocson,dc=com" -W -f /etc/openldap/ngocson.ldif
Enter LDAP Password:
adding new entry "dc=ngocson,dc=com"
ldapadd: Already exists (68)

adding new entry "ou=People, dc=ngocson, dc=com"
ldapadd: Already exists (68)

adding new entry "cn=testuser, ou=People, dc=ngocson, dc=com"
ldapadd: Already exists (68)
my ldif : ngocson.ldif

Quote:

dn: dc=ngocson,dc=com
dc: ngocson
o: NgocSon Com
description: Root LDAP entry for ipmac.lab
objectClass: dcObject
objectClass: organization

dn: ou=People, dc=ngocson, dc=com
ou: People
description: All the people in our domain
objectClass: organizationalUnit

dn: cn=testuser, ou=People, dc=ngocson, dc=com
cn: testuser
objectClass: organizationalRole
please help me.thank.

PS: i am not very well english.

anomie 05-26-2012 01:39 PM

@lunocio: please carefully read the error message:
Code:

ldapadd: Already exists (68)
The dn you are attempting to add is already in the directory. (You can confirm with slapcat.)

lunocio 05-26-2012 01:43 PM

Quote:

Originally Posted by anomie (Post 4688287)
@lunocio: please carefully read the error message:
Code:

ldapadd: Already exists (68)
The dn you are attempting to add is already in the directory. (You can confirm with slapcat.)

thank anomie.
so now, i can not use ldapadd command ?

anomie 05-26-2012 06:12 PM

Specifically, you cannot add a dn that already exists in the directory. (Each dn should be unique.)

Ask yourself: "why am I running this ldapadd command?" All three objects are already there.


All times are GMT -5. The time now is 04:33 AM.