LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-16-2003, 01:07 PM   #1
davealex
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.-

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:
top
person
organizationalPerson
InetOrgPerson
add sn:
david_winter
add cn:
david_winter
add uid:
a006334
add userpassword:
{crypt}utXSBZ/9Tkip6

adding new entry "cn=david_winter"
ldap_add: No such obect
 
Old 10-16-2003, 03:19 PM   #2
GAVollink
Member
 
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.
 
  


Reply


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 06:57 PM
Problem importing LDIF file into OpenLDAP database cboxall Linux - Newbie 1 06-17-2005 09:51 AM
admin.ldif for ldap berrance Linux - Networking 1 03-06-2005 05: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 04:14 PM
Can anyone import latex formulas into open office? shy Linux - Software 1 10-30-2004 03:55 AM


All times are GMT -5. The time now is 01:38 PM.

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