mirror of
https://github.com/samba-team/samba.git
synced 2025-11-12 04:23:49 +03:00
r21240: Fix longstanding Bug #4009.
For the winbind cached ADS LDAP connection handling (ads_cached_connection()) we were (incorrectly) assuming that the service ticket lifetime equaled the tgt lifetime. For setups where the service ticket just lives 10 minutes, we were leaving hundreds of LDAP connections in CLOSE_WAIT state, until we fail to service entirely with "Too many open files". Also sequence_number() in winbindd_ads.c needs to delete the cached LDAP connection after the ads_do_search_retry() has failed to submit the search request (although the bind succeeded (returning an expired service ticket that we cannot delete from the memory cred cache - this will get fixed later)). Guenther
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e7e44554bf
commit
7e1a84b722
@@ -1424,7 +1424,7 @@ static BOOL manage_client_krb5_init(SPNEGO_DATA spnego)
|
||||
spnego.negTokenInit.mechListMIC.length);
|
||||
principal[spnego.negTokenInit.mechListMIC.length] = '\0';
|
||||
|
||||
retval = cli_krb5_get_ticket(principal, 0, &tkt, &session_key_krb5, 0, NULL);
|
||||
retval = cli_krb5_get_ticket(principal, 0, &tkt, &session_key_krb5, 0, NULL, NULL);
|
||||
|
||||
if (retval) {
|
||||
|
||||
@@ -1446,7 +1446,7 @@ static BOOL manage_client_krb5_init(SPNEGO_DATA spnego)
|
||||
return False;
|
||||
}
|
||||
|
||||
retval = cli_krb5_get_ticket(principal, 0, &tkt, &session_key_krb5, 0, NULL);
|
||||
retval = cli_krb5_get_ticket(principal, 0, &tkt, &session_key_krb5, 0, NULL, NULL);
|
||||
|
||||
if (retval) {
|
||||
DEBUG(10, ("Kinit suceeded, but getting a ticket failed: %s\n", error_message(retval)));
|
||||
|
||||
Reference in New Issue
Block a user