LDAP Service Fails to Reconnect to the SQL Server Store Due to Sessions That Are Invalidated by a Router (264765)
The information in this article applies to:
- Microsoft Site Server 3.0
This article was previously published under Q264765 SYMPTOMS
If a firewall determines that a session has become inactive, it can discard the LDAP communications to the SQL Server computer when it is configured to do so. Due to unsuccessful attempts to connect, the LDAP server then logs error messages repeatedly in the event log.
The following error message (message ID 20) is logged as a result of the attempt to perform the connection to the database server:
Unable to connect to DB server with connect string
The LDAP server expects to be able to connect to the database server. In many cases involving a temporary network issue, the reconnect will work. However, in this case, the session between the LDAP server and SQL Server has been invalidated.
CAUSE
If the network configuration includes routers that are configured to invalidate inactive sessions, the LDAP server is not able to reconnect to the SQL Server data store. As a result, the session must remain regularly active.
RESOLUTION
To prevent a networking device, such as a router, from invalidating a session, you can disable ODBC connection pooling. This ensures that a TCP session is established when database connection requests are performed.
To disable ODBC connection pooling, perform the following steps:
- In Control Panel, double-click Settings.
- Select ODBC Data Sources.
- Click the Connection Pooling tab.
- Select the SQL Server ODBC Driver from the list.
- Double-click SQL Server to set the Connection Pooling attributes.
- Select Don't pool connections to this driver.
When you do this, the LDAP service performs the operations required to establish a session when a connection operation is performed. This results in a TCP handshake operation that is performed between the LDAP and SQL Server computers. A session is established, and as a result, if there has been no activity between the LDAP and SQL Server computers for some time, a new session is established when a connection request is made. This is a valid new session that the firewall configured should recognize.
Modification Type: | Major | Last Reviewed: | 2/22/2001 |
---|
Keywords: | kbprb KB264765 |
---|
|