Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-16-2003, 02:07 PM   #1
LQ Newbie
Registered: Sep 2003
Distribution: RedHat 9
Posts: 2

Rep: Reputation: 0
New to Open LDAP. Trying to import an LDIF file.

Unable to import an LDIF file via ldapadd command. Using RedHat v9 with Open LDAP. I have LDAP installed but do not fully understand the structure of an LDIF file and what's needed in slapd.conf. Below is what I want to import and part of my slapd.conf.-


suffix "dc=akr.mycompany,dc=com"
rootdn "cn=root,dc=akr.mycompany,dc=com"

My Test.ldif file-

dn: cn=david_winter
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
sn: david_winter
cn: david_winter
uid: a006334
userpassword: {crypt}utXSBZ/9Tkip6

When I run the ldapadd command I get this response and error:

add objectclass:
add sn:
add cn:
add uid:
add userpassword:

adding new entry "cn=david_winter"
ldap_add: No such obect
Old 10-16-2003, 04:19 PM   #2
Registered: Apr 2002
Location: St. Paul, Minnesota
Distribution: UbuntuStudio, Ubuntu
Posts: 357

Rep: Reputation: 31
Your ldap root at least must be part of your "dn"

dn: cn=david_winter,dc=akr.mycompany,dc=com

There may be other issues such as missing required fields as well.


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
openldap ldif file problem iluvatar Linux - Software 3 07-31-2005 07:57 PM
Problem importing LDIF file into OpenLDAP database cboxall Linux - Newbie 1 06-17-2005 10:51 AM
admin.ldif for ldap berrance Linux - Networking 1 03-06-2005 06:32 AM
Why can't I import sound or video to an open office file, on Fedora core 2? rockgod9309 Linux - Software 1 11-30-2004 05:14 PM
Can anyone import latex formulas into open office? shy Linux - Software 1 10-30-2004 04:55 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:47 AM.

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