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

Re: dn2id could not open dn2id.gdbm



Make sure your database directory exists and slapd can write to it.

At 02:01 PM 2001-09-24, Sundaram Ramasamy wrote:

>Hello,
>
>Today I installed openldap in my windows 2000 machine with Cygwin.
>
>I was able to run the ldap server. But while adding new entry, its giving
>following error message on server side.
>
>deferring operation
><= dn2id could not open dn2id.gdbm
>ber_flush: 14 bytes to sd 508
><= dn2id could not open dn2id.gdbm
>ber_flush: 14 bytes to sd 508
><= dn2id could not open dn2id.gdbm
>ber_flush: 14 bytes to sd 508
><= dn2id could not open dn2id.gdbm
>ber_flush: 14 bytes to sd 508
>
>==========================================================================
>
>my sldap.conf file  look like this:
>
># $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20 23:32:43
>kurt Exp $
>#
># See slapd.conf(5) for details on configuration options.
># This file should NOT be world readable.
>#
>#include                /usr/local/etc/openldap/schema/core.schema
>include         schema/core.schema
>
># Define global ACLs to disable default read access.
>
># Do not enable referrals until AFTER you have a working directory
># service AND an understanding of referrals.
>#referral       ldap://root.openldap.org
>
>pidfile         /usr/local/var/slapd.pid
>argsfile        /usr/local/var/slapd.args
>
># Load dynamic backend modules:
># modulepath    /usr/local/libexec/openldap
># moduleload    back_ldap.la
># moduleload    back_ldbm.la
># moduleload    back_passwd.la
># moduleload    back_shell.la
>
>#######################################################################
># ldbm database definitions
>#######################################################################
>
>database        ldbm
>suffix          "dc=percipia,dc=com"
>#suffix         "o=My Organization Name,c=US"
>rootdn          "cn=Manager,dc=percipia,dc=com"
>#rootdn         "cn=Manager,o=My Organization Name,c=US"
># Cleartext passwords, especially for the rootdn, should
># be avoid.  See slappasswd(8) and slapd.conf(5) for details.
># Use of strong authentication encouraged.
>rootpw          secret
># The database directory MUST exist prior to running slapd AND
># should only be accessible by the slapd/tools. Mode 700 recommended.
>directory       /usr/local/var/openldap-ldbm
># Indices to maintain
>#index  objectClass     pres,eq
>index cn,sn,uid pres,eq,sub
>index objectclass eq
>
>==========================================================================
>
>
>
>command used to add new entry
>
>$ldapadd -x -D "cn=Manager,dc=percipia,dc=com" -W -f example.ldif
>
>==========================================================================
>
>example.ldif file content
>
>dn: dc=percipia,dc=com TURN)
>objectclass: dcObject
>objectclass: organization
>o: Percipia Inc.
>dc: percipia
>
>dn: cn=Manager,dc=percipia,dc=com
>objectclass: organizationalRole
>cn: Manager
>
>
>Any idea how to fix this error.
>
>Thanks
>SR