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

Re: [ldapadd] Database creation error



>
> Hi Dusty,
>
> >
> > I would recommend starting slapd in debug mode so you can read the debug
> > info from the actual server.
> > Kill slapd, and then start it with something like
> >
> > /usr/local/libexec/slapd -d1
> >
> > Run the ldapadd and check the debug info on the server side.
>
> Ok, the debug on the server side apparently says that i've a missing
> file about the db.
>
> Here is the debug :
>
> dn2entry_r: dn: "CN=ATELIER35,OU=ITI,O=ESIEA,C=FR"
> => dn2id( "CN=ATELIER35,OU=ITI,O=ESIEA,C=FR" )
> => ldbm_cache_open( "dn2id.dbb", 9, 600 )
> <= ldbm_cache_open NULL "dn2id.dbb" errno=2 reason="No such file or
> directory")
> <= dn2id could not open dn2id.dbb
> ber_get_next
> ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
> => dn2id( "CN=ATELIER35,OU=ITI,O=ESIEA,C=FR" )
> => ldbm_cache_open( "dn2id.dbb", 9, 600 )
> <= ldbm_cache_open NULL "dn2id.dbb" errno=2 reason="No such file or
> directory")
> <= dn2id could not open dn2id.dbb
> send_ldap_result: conn=0 op=1 p=2
> send_ldap_response: msgid=2 tag=105 err=1
> ber_flush: 14 bytes to sd 7
>
> Do i have to create this file ? In that case where should it be placed ?
>
> In my slapd.conf i've defined : directory       /var/db/openldap-data
>
> The openldap admin guide doesn't says anything about theses .dbb files,
> maybe i've missed a part..
>
> --
> Alexandre Ahmim-Richard
> passe@clope.net
> http://www.u-admin.org


What user do you run slapd under?  Probably the ldap user and group?  Is
the /var/db/openldap-data directory owned by that user and group?  Try
chown ldap:ldap /var/db/openldap-data and then start slapd.