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

Re:AW: Unknown error and Object Not Found



Yeah I guess that would do it. I idiotically missed the most obvious
reason.

     Thanks folks :)

     ____________________Reply Separator____________________
     Subject:  AW: Unknown error and Object Not Found
     Author:   owner-openldap-software@OpenLDAP.org
     Date:          4/12/2001 10:45 AM




> #
> # 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