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

Error when starting slapd on boot



We have been running openldap 2.2.8  with back-sql and MSSQL for the last month or so.

Recently we rebooted our server and I noticed slapd didn't start, so I found a script and modified it to
start slapd on boot.  To test it I ran ./ldap start

Although it said <OK> slapd didn't start.  So I modified my script to start slapd with -d -1 for debugging.

I can see the following error when I run ./ldap start:


backsql_open_db_conn: SQLConnect() to database "GMTest" as user "sa" failed:
Return code: -1
Native error code: 0
SQL engine state: 08004
Message: [OpenLink][ODBC][Driver]Connection rejected by data source
backsql_get_db_conn(): could not get connection handle -- returning NULL
backsql_db_open(): connection failed, exiting
backend_startup: bi_db_open(0) failed! (1)
slapd shutdown: initiated
==>backsql_db_close()
<==backsql_db_close()
slapd shutdown: freeing system resources.
==>backsql_db_destroy()
==>backsql_free_db_env()
<==backsql_free_db_env()
==>destroy_schema_map()
<==destroy_schema_map()
<==backsql_db_destroy()
slapd stopped.
connections_destroy: nothing to destroy.
                                                           [FAILED]


I have ODBCINI and ODBCINSTINI in my environment, what am I missing here?

Thanks,
Mike