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

Re: Error with ldbm



> ldapadd -x -h localhost -p 389 -D "cn=admin,dc=atc,dc=unican,dc=es" -f
> /usr/local/var/openldap-data/base.ldiff -W "
> "ldap_bind: Can't contact LDAP server (-1)"
> >>>>>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
>

You need to compile bdb before compiling openldap.  And then read the
openldap.org FAQ's about how to link against the correct BDB.  After
you do that, your tests should run.

slapd must be running before you can do ldapadd's.