https://issues.apache.org/bugzilla/show_bug.cgi?id=47634
Summary: mod_ldap connection pool session keepalive not
implemented
Product: Apache httpd-2
Version: 2.2.11
Platform: PC
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: mod_ldap
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2009-08-04 02:12:48 PDT ---
We found that mod_ldap unable to work through firewalls, because ldap session
keepalive not implemented in it. There is not always possible to solve
keepalive on the server side, because of operation policies, too far from
client etc., but we need it because of ldap connection pooling.
So mod_ldap client keepalive should be implemented.
We patched the code (## line) to implement a workaround for the missing
functionality:
./modules/ldap/util_ldap.c:
static void uldap_connection_close(util_ldap_connection_t
*ldc)
{
/*
* QUESTION:
*
* Is it safe leaving bound connections floating around
between the
* different modules? Keeping the user bound is a
performance boost,
* but it is also a potential security problem - maybe.
*
* For now we unbind the user when we finish with a
connection, but
* we don't have to...
*/
uldap_connection_unbind(ldc); ## mod by RZS
/* mark our connection as available for reuse */
#if APR_HAS_THREADS
apr_thread_mutex_unlock(ldc->lock);
#endif
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]