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

Re: OpenLDAP and MySQL



Ah HA! Thank you.

backsql_open_db_conn(4294967295): SQLConnect() to database "example" failed.
Return code: -1
Native error code: 0
SQL engine state: IM002
Message: [iODBC][Driver Manager]Data source name not found and no default driver specified. Driver could not be loaded
backsql_get_db_conn(): could not get connection handle -- returning NULL
backsql_db_open(): connection failed, exiting
backend_startup_one: bi_db_open failed! (1)


I guess this isnt using the /etc/openldap/slapd.conf then. Just to confirm, would this test script be using tests/testrun/slapd.1.conf ?

Thanks again!

Aaron Richton wrote:
SLAPD_USE_SQL=mysql make sql
[...and then...]
>>>>> ./scripts/sql-test000-read failed (exit 1)

Fantastic! See http://www.openldap.org/faq/data/cache/1089.html

In particular, I'd try

SLAPD_USE_SQL='mysql' SLAPD_DEBUG='-1' make sql

wait for the apparently inevitable "failed", then look at the slapd.1.log
and/or ldapsearch.out and/or anything else that seems relevant.

Take the nastiest sounding messages -- sometimes these are the last few
messages -- and you can report back with them if the resolution isn't
obvious.