From 4d42574c54210022bec7e765739f5495b285145a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 27 Apr 2022 13:39:11 +0200 Subject: [PATCH] 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 --- source3/libads/sasl.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.11.4.GIT