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

Problem with slapd





Hi all,

I have installed the "sfio library" and compil Openldap with this library.

An extract of the Makefile :
...

# For manual pages
# MANCOMPRESS=@MANCOMPRESS@
# MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
MANCOMPRESS=$(CAT)
MANCOMPRESSSUFFIX=

INCLUDEDIR= $(top_srcdir)/include
LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
LDAP_LIBADIR= $(top_builddir)/libraries
LDAP_LIBPATH= -L$(LDAP_LIBADIR)

LUTIL_LIBS =
LDIF_LIBS =
LDBM_LIBS =  -ldb
LTHREAD_LIBS =   -lrt

LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
LDAP_LIBLDIF_DEPEND = $(LDAP_LIBDIR)/libldif/libldif.a
LDAP_LIBLUTIL_DEPEND = $(LDAP_LIBDIR)/liblutil/liblutil.a

LDAP_LIBAVL_DEPEND = $(LDAP_LIBDIR)/libavl/libavl.a
LDAP_LIBLDBM_DEPEND = $(LDAP_LIBDIR)/libldbm/libldbm.a
LDAP_LIBLTHREAD_DEPEND = $(LDAP_LIBDIR)/libldap_r/libldap_r.la

LDAP_LIBDEPEND = $(LDAP_LIBLDAP_DEPEND) $(LDAP_LIBLBER_DEPEND) \
        $(LDAP_LIBLDIF_DEPEND) $(LDAP_LIBLUTIL_DEPEND)
SLAPD_LIBDEPEND = $(LDAP_LIBDEPEND) $(LDAP_LIBAVL_DEPEND) \
        $(LDAP_LIBLDBM_DEPEND) $(LDAP_LIBLTHREAD_DEPEND)

WRAP_LIBS =
# AutoConfig generated
AC_CC   = gcc
AC_CFLAGS = -g -O2
AC_DEFS =  # -DHAVE_CONFIG_H
AC_LDFLAGS =
AC_LIBS = -lresolv -lgen -lnsl -lsocket -lpthread -lsfio

KRB4_LIBS =
KRB5_LIBS =
KRB_LIBS =
SASL_LIBS =
TLS_LIBS =
AUTH_LIBS =
SECURITY_LIBS = $(SASL_LIBS) $(KRB_LIBS) $(TLS_LIBS) $(AUTH_LIBS)

MODULES_CPPFLAGS =
MODULES_LDFLAGS =
MODULES_LIBS =
TERMCAP_LIBS = -ltermcap
LINK_BINS_DYNAMIC = no

...




The installation was a success but when i start slapd with
$ slapd -d -1
this message occurs :



...

slapd startup: initiated.
slapd starting
daemon: added 6r
daemon: select: listen=6 active_threads=0 tvp=NULL

...


And When I make a 'ldapadd'in the database  'slapd' is stopped and this message occurs :


....
daemon: activity on 1 descriptors
daemon: new connection on 7
daemon: conn=0 fd=7 connection from IP=127.0.0.1:32808 (IP=0.0.0.0:389) a
daemon: added 7r
daemon: activity on:
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 7r
daemon: read activity on 7
connection_get(7)
connection_get(7): got connid=0
connection_read(7): checking for input on id=0
ber_get_next
sockbuf_read: want=1, got=1
         0
sockbuf_read: want=1, got=1
         )
sockbuf_read: want=41, got=41
        02 01 01  `  $ 02 01 03 04 17  c  n  =  a  d  m
         i  n  ,  o  =  a  l  c  a  t  e  l  ,  c  =  f
         r 80 06  s  e  c  r  e  t
ber_get_next: tag 0x30 len 41 contents:
ber_dump: buf 0x1853b8, ptr 0x1853b8, end 0x1853e1
        02 01 01  `  $ 02 01 03 04 17  c  n  =  a  d  m
         i  n  ,  o  =  a  l  c  a  t  e  l  ,  c  =  f
         r 80 06  s  e  c  r  e  t
ber_get_next
sockbuf_read: want=1 error=Resource temporarily unavailable
ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({iat) ber:
ber_dump: buf 0x1853b8, ptr 0x1853bb, end 0x1853e1
         `  $ 02 01 03 04 17  c  n  =  a  d  m  i  n  ,
         o  =  a  l  c  a  t  e  l  ,  c  =  f  r 80 06
         s  e  c  r  e  t
ber_scanf fmt (o}) ber:
ber_dump: buf 0x1853b8, ptr 0x1853d9, end 0x1853e1
        80 06  s  e  c  r  e  t
do_bind: version=3 dn="cn=admin,o=alcatel,c=fr" method=128
conn=0 op=0 BIND dn="CN=ADMIN,O=ALCATEL,C=FR" method=128
==> ldbm_back_bind: dn: cn=admin,o=alcatel,c=fr
dn2entry_r: dn: "CN=ADMIN,O=ALCATEL,C=FR"
=> dn2id( "CN=ADMIN,O=ALCATEL,C=FR" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.dbb", 7, 600 )
dbcache.c:160: failed assertion `li->li_dbcache[i].dbc_maxindirect < 256'
Fin anormale - L'image mimoire a iti vidie dans le fichier core.
....


I use a BerkeleyDB database and openldap 2.0.4

Any information would be greatly appreciated.

Thanks in advance

Benoit