LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-26-2012, 01:28 PM   #1
lunocio
LQ Newbie
 
Registered: Apr 2012
Location: vietnam
Distribution: centos
Posts: 10

Rep: Reputation: 0
Question [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.
 
Old 05-26-2012, 01:39 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
@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.
Old 05-26-2012, 01:43 PM   #3
lunocio
LQ Newbie
 
Registered: Apr 2012
Location: vietnam
Distribution: centos
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anomie View Post
@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 ?
 
Old 05-26-2012, 06:12 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
  


Reply

Tags
ldap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LDAP- Intiital file import Failed unibox Linux - Server 11 02-15-2012 02:37 AM
Can samba passwd file import into LDAP ? niraj.kumar Linux - Server 4 12-02-2008 08:12 PM
How can i import my smbpasswd file into LDAP ?? niraj.kumar Linux - Newbie 1 11-29-2008 12:14 PM
How can i import my smbpasswd file into LDAP ?? niraj.kumar Linux - Server 0 11-29-2008 10:28 AM
New to Open LDAP. Trying to import an LDIF file. davealex Linux - Networking 1 10-16-2003 03:19 PM


All times are GMT -5. The time now is 09:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration