moodle/auth/cas
iarenaza b74316986b Cache LDAP connections: MDL-18130 Properly handle open LDAP connections.
Both CAS and LDAP auth plugins open new connections to the LDAP server
to get the user account details. While this is the desired behaviour
for regular logins (we probably don't have an already open connection
to the LDAP server), this is a ressource hog when we are doing user
synchronization, as the closed connections remain in the TCP_WAIT
state for a while before the server can reuse them. If we are syncing
a lot of users, we can make the server run out of available TCP
ressources.

So we cache the connection the first time we establish it and return
the same connection handle everytime, unless we've closed all the
'open' connections, or the auth object is destroyed.

In addition to that, there were a few missing calls to ldap_close().
2009-02-15 15:33:21 +00:00
..
CAS auth/cas MDL-17121 Upgraded to latest version which is LGPL 2008-11-07 02:00:27 +00:00
auth.php Cache LDAP connections: MDL-18130 Properly handle open LDAP connections. 2009-02-15 15:33:21 +00:00
cas_form.html *** empty log message *** 2007-07-17 11:49:06 +00:00
cas_ldap_sync_users.php *** empty log message *** 2007-07-17 11:49:06 +00:00
config.html *** empty log message *** 2007-07-17 11:49:06 +00:00
languages.php Fix MDL-11632: Multiple files with emtpy lines outside PHP open/close tags 2007-10-10 21:09:18 +00:00
README-CAS *** empty log message *** 2007-07-09 08:41:30 +00:00