From: Stefan Metzmacher Date: Wed, 27 Apr 2022 11:39:11 +0000 (+0200) Subject: s3:libads: let ads_sasl_spnego_bind() reset krb5_state at the end X-Git-Tag: tdb-1.4.11~781 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d42574c54210022bec7e765739f5495b285145a;p=thirdparty%2Fsamba.git s3:libads: let ads_sasl_spnego_bind() reset krb5_state at the end In future we'll pass in creds from the caller, so we better restore the original krb5_state at the end of ads_sasl_spnego_bind(). Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source3/libads/sasl.c b/source3/libads/sasl.c index 1b4e8471477..989f970598d 100644 --- a/source3/libads/sasl.c +++ b/source3/libads/sasl.c @@ -751,6 +751,7 @@ done: ads_errstr(status))); } ads_free_service_principal(&p); + cli_credentials_set_kerberos_state(creds, krb5_state, CRED_SPECIFIED); TALLOC_FREE(frame); return status; }