LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-18-2010, 10:02 AM   #1
JALITE
LQ Newbie
 
Registered: Jul 2006
Posts: 13

Rep: Reputation: 1
Error when importing user to ldap


I am setting up a openldap server by following instruction from http://www.howtoforge.com/linux_open..._server_client, when importing domain ldif file, I received the following error:
# ldapadd -x -D "cn=Manager,dc=jacklan,dc=com" -W -f /etc/openldap/load_file/jacklan.com.ldif
Enter LDAP Password:
ldapadd: attributeDescription "dn": (possible missing newline after line 6 of entry "dc=jacklan,dc=com"?)
adding new entry "dc=jacklan,dc=com"
ldapadd: Type or value exists (20)
additional info: objectClass: value #1 provided more than once

domain ldif file 'jacklan.com.ldif
# vi /etc/openldap/load_file/jacklan.com.ldif
1 dn: dc=jacklan,dc=com
2 dc: jacklan
3 description: LDAP Domain Admin
4 objectClass: dcObject
5 objectClass: organizationalUnit
6 ou: rootobject
7 dn: ou=People, dc=jacklan,dc=com
8 ou: People
9 description: Users of jacklan
10 objectClass: organizationalUnit

slapd.conf file
# cat slapd.conf
database bdb
suffix "dc=jacklan,dc=com"
rootdn "cn=Manager,dc=jacklan,dc=com"
rootpw {SSHA}ferIBvelONB8bU0+3ukqtNUDYLCaIhaA

Any idea?
 
Old 09-18-2010, 10:38 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
domain ldif file 'jacklan.com.ldif
# vi /etc/openldap/load_file/jacklan.com.ldif
1 dn: dc=jacklan,dc=com
2 dc: jacklan
3 description: LDAP Domain Admin
4 objectClass: dcObject
5 objectClass: organizationalUnit
6 ou: rootobject
7 dn: ou=People, dc=jacklan,dc=com
8 ou: People
9 description: Users of jacklan
10 objectClass: organizationalUnit
You give 2 times the same objectClass. Remove the last one and try again

Regards
 
Old 09-18-2010, 10:51 AM   #3
JALITE
LQ Newbie
 
Registered: Jul 2006
Posts: 13

Original Poster
Rep: Reputation: 1
thanks for the prompt response.
modified the ldif file as below solved the problem:
Quote:
dn: dc=jacklan,dc=com
dc: jacklan
description: LDAP Domain Admin
objectClass: dcObject
objectClass: organization
o: jacklan, Inc.

dn: ou=People, dc=jacklan,dc=com
ou: People
description: Users of jacklan
objectClass: organizationalUnit
 
  


Reply



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
deleting a ldap object/user using ldapdelete is giving sasl error vasavib Linux - Newbie 3 12-04-2011 02:06 AM
LDAP configuration error, can't connect to LDAP server (-1) rdanielz Linux - Networking 3 06-01-2010 09:15 AM
Importing local user profiles to samba ifeatu Linux - Server 2 03-22-2010 12:19 AM
Importing Existing Address book in LDAP. pushpraj Linux - Networking 2 03-20-2007 11:57 PM
LDAP server not starting as user LDAP klnasveschuk Fedora 1 02-15-2007 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration