-   Linux - Networking (
-   -   New to Open LDAP. Trying to import an LDIF file. (

davealex 10-16-2003 01:07 PM

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

GAVollink 10-16-2003 03:19 PM

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.

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