Hi all,

I'm trying to use ldap + mysql , but i've got some errors ...

backsql_open_db_handle(): SQLConnect() to database "openldap" failed

backsql_db_open(): connection failed, exiting
backend_startup_one: bi_db_open failed! (1)


My slapd.conf

database sql
suffix "dc=visky,dc=vn"
rootdn "cn=admin,dc=visky,dc=vn"
rootpw 123456
dbname openldap
dbuser root
dbpasswd 123
subtree_cond "ldap_entries.dn LIKE CONCAT('%',?)"
insentry_query "INSERT INTO ldap_entries (dn,oc_map_id,parent,keyval)
VALUES (?,?,?,?)"

/etc/odbc.ini

MySQL = MySQL connection

[MySQL]
DSN = ldap
Description = MySQL connection
Driver = MySQL
Database = ldap
Server = localhost
Port = 3306
Socket =
User = root
Password = 123

/etc/odbcinst.ini

Description = MySQL driver
Driver = /usr/lib/odbc/libmyodbc.so
Setup = /usr/lib/odbc/libodbcmyS.so
CPTimeout =
CPReuse =