diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-07-17 11:24:54 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-07-17 11:24:54 +0000 |
commit | 9ec9df5fe42cebca8db5cdb01a0dbfc563c815fc (patch) | |
tree | 20f8f7610e91a5e787ab19a071373f64cfeff703 /source3/include | |
parent | 0fe05982cd571d0172d59e0559348d79eea81239 (diff) | |
download | samba-9ec9df5fe42cebca8db5cdb01a0dbfc563c815fc.tar.gz samba-9ec9df5fe42cebca8db5cdb01a0dbfc563c815fc.tar.bz2 samba-9ec9df5fe42cebca8db5cdb01a0dbfc563c815fc.zip |
Disconnect an idle LDAP connection after 150 seconds.
Not strictly a bugfix, but it should considerably reduce the load we
put on LDAP servers given that at least nss_ldap on Linux keeps a
connection open.
And it should also stress our reconnect-code a bit more ;-)
Thanks to metze for this!
Volker
(This used to be commit e68d8eabeb9c64dc45d057619f9b3dd0cd507444)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/smbldap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h index 589d01aa6d..826fc3c55a 100644 --- a/source3/include/smbldap.h +++ b/source3/include/smbldap.h @@ -132,6 +132,9 @@ struct smbldap_state { char *bind_secret; unsigned int num_failures; + + time_t last_use; + smb_event_id_t event_id; }; #endif /* HAVE_LDAP */ |