[Date Prev][Date Next] [Chronological] [Thread] [Top]

AW: Unknown error and Object Not Found



> #
> # See slapd.conf(5) for details on configuration options.
> # This file should NOT be world readable.
> #
> include       /usr/local/etc/openldap/schema/core.schema
> pidfile         /usr/local/var/slapd.pid
> argsfile       /usr/local/var/slapd.args
> 
> ##############################################################
> #########
> # ldbm database definitions
> ##############################################################
> #########
> 
> database        ldbm
> suffix              "dc=consultec, dc=com"
> rootdn            "cn=Manager, dc=consultec, dc=com"
> rootpw           secret
> directory        /usr/local/var/ldbm
> 
> 
> 
> This is the ldif I am adding:
> 
> dn: dc=consultec, dc=com
> dc: consultec
> o: consultec
> objectclass: organization
> objectclass: dcObject
> 
> dn: cn=Manager, dc=consultec, dc=com
> cn: Manager
> sn: Manager
> objectclass: person
> 
> 
> Here is the output of doing the ldapadd:
> 
> # ./ldapadd -x -f test.ldif -D "cn=Manager, dc=consultec, 
> dc=com" -w secret
> adding new entry "dc=consultec, dc=com"
> ldap_add: Unknown error
>         additional info: next_id add failed
> 
> ldif_record() = 80

"next_id add failed".. sounds like slapd can't create files in the db
directory.. make sure '/usr/local/var/ldbm' exists and slapd as _write_
access to it. (to create files..)

daniel