Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-26-2012, 01:28 PM
|
#1
|
LQ Newbie
Registered: Apr 2012
Location: vietnam
Distribution: centos
Posts: 10
Rep:
|
[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.
|
|
|
05-26-2012, 01:39 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep:
|
@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.)
|
|
1 members found this post helpful.
|
05-26-2012, 01:43 PM
|
#3
|
LQ Newbie
Registered: Apr 2012
Location: vietnam
Distribution: centos
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by anomie
@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 ?
|
|
|
05-26-2012, 06:12 PM
|
#4
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep:
|
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 10:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|