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

LDAP and MySQL - No database selected



Hi Friends,
 
     I am trying to configure LDAP with MySQL 5.0 as backend. I am using Connector/ODBC 3.51 and LDAP 2.3.32 built from sources.
While starting slapd I get following error -
 
===============================================
backsql_load_schema_map(): oc_query "SELECT id,name,keytbl,keycol,create_proc,delete_proc,expect_return FROM ldap_oc_mappings"
backsql_load_schema_map(): error executing oc_query:
Return code: -1
   nativeErrCode=1046 SQLengineState=3D000 msg="[MySQL][ODBC 3.51 Driver][mysqld-5.0.27-standard]No database selected"
==>backsql_free_db_conn()
===============================================

My odbc.ini file has all the details and I can see in slapd log that its getting dbname before connective to MySQL server. slapd.conf has dbname = test.
 
        Thanks in advance!
--
Cheers,
Rajan