Openldap log & "parent does not exist"

Mako Gabor makgab at freemail.hu
Mon Jan 5 11:18:36 UTC 2004


Hi!

How can I set the openldap log file? Where does it log?

What is the problem with this?:
ldapadd -f /etc/openldap/ldap.txt -D "cn=root,o=domain,c=hu" -x -W
Enter LDAP Password:
adding new entry "ou=People,o=domain,c=hu"
ldapadd: update failed: ou=People,o=domain,c=hu
ldap_add: No such object (32)
        additional info: parent does not exist

The ldap.txt file:
dn: ou=People,o=domain,c=hu
objectClass: top
objectClass: organizationalUnit
ou: People

dn: ou=Group,o=domain,c=hu
objectClass: top
objectClass: organizationalUnit
ou: Group

dn: cn=root,ou=People,o=domain,c=hu
objectClass: top
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
cn: root
uid: root
uidNumber: 1
gidNumber: 1
gecos: Root
loginShell: /bin/bash
homeDirectory: /root/
userPassword: secret

dn: cn=root,ou=Group,o=domain,c=hu
objectClass: top
objectClass: posixGroup
gidNumber: 1
cn: root
memberUid: root


The slapd.conf file:
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/nis.schema
include         /etc/openldap/schema/redhat/autofs.schema
allow bind_v2
pidfile /var/run/slapd.pid
database        ldbm
suffix          "o=sopron-ph,c=hu"
rootdn          "cn=root,o=sopron-ph,c=hu"
rootpw          secret
directory       /var/lib/ldap
index objectClass                       eq,pres
index ou,cn,mail,surname,givenname      eq,pres,sub
index uidNumber,gidNumber,loginShell    eq,pres
index uid,memberUid                     eq,pres,sub
index nisMapName,nisMapEntry            eq,pres,sub
loglevel 2048


Bye!
Gabor






More information about the fedora-devel-list mailing list