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

Error with ldbm



Hey¡¡
I'm trying to make my final proyect for finish the university. I'm installin a server with a PDC (openldap+samba-tng...)and I found an error, everything works like in the howtos i reading but when i try to add an entry in the "base" i get an error, i use the next command:


ldapadd -x -h localhost -p 389 -D "cn=admin,dc=atc,dc=unican,dc=es" -f /usr/local/var/openldap-data/base.ldiff -W "

This ask me the pass and i put "secret" like in the slapd.conf the consecuence is this:


"ldap_bind: Can't contact LDAP server (-1)"

I searched in google and one guy told me that try to do a "make test", and i got the next error:

Starting test002-populate ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Using ldapadd to populate the database...
ldapadd failed (1)!
./scripts/test002-populate failed (exit 1)
make[2]: *** [hdb-yes] Error 1
make[2]: Leaving directory `/usr/src/openldap/openldap-2.3.20/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/usr/src/openldap/openldap-2.3.20/tests'
make: *** [test] Error 2

I think is aproblem of berkeley db, but i dont know how to fix it, I made the configure of openldap with the next parameters:

./configure --enable-debug --enable-syslog --enable-proctitle --enable-cache --enable-referrals --enable-local --with-readline --with-threads --disable-cleartext --disable-rlookups --enable-dynamic --enable-dnssrv --enable-ldap --enable-ldbm --disable-bdb --enable-passwd --enable-shell --enable-slurpd --enable-shared --enable-kpasswd --with-cyrus-sasl --with-tls --enable-crypt --enable-spasswd --enable-debug --enable-slurpd

Someone can help me ?
thanks