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"
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!