From b49c371762bf9c2ccd8d1da070e27d3f14cc347c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 21 Mar 2017 08:32:27 +0100 Subject: [PATCH] auth4: remove unused USER_INFO_LOCAL_SAM_ONLY/AUTH_METHOD_LOCAL_SAM handling BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/auth/ntlm/auth.c | 5 ----- source4/auth/ntlm/auth_sam.c | 2 -- 2 files changed, 7 deletions(-) diff --git a/source4/auth/ntlm/auth.c b/source4/auth/ntlm/auth.c index 5d3fbef5636..1b7faee3dbc 100644 --- a/source4/auth/ntlm/auth.c +++ b/source4/auth/ntlm/auth.c @@ -361,11 +361,6 @@ static void auth_check_password_async_trigger(struct tevent_context *ev, for (method=state->auth_ctx->methods; method; method = method->next) { - if (state->user_info->flags & USER_INFO_LOCAL_SAM_ONLY - && !(method->ops->flags & AUTH_METHOD_LOCAL_SAM)) { - continue; - } - /* we fill in state->method here so debug messages in the callers know which method failed */ state->method = method; diff --git a/source4/auth/ntlm/auth_sam.c b/source4/auth/ntlm/auth_sam.c index d3f90196125..391492a898f 100644 --- a/source4/auth/ntlm/auth_sam.c +++ b/source4/auth/ntlm/auth_sam.c @@ -705,7 +705,6 @@ static const struct auth_operations sam_ignoredomain_ops = { .want_check = authsam_ignoredomain_want_check, .check_password = authsam_check_password_internals, .get_user_info_dc_principal = authsam_get_user_info_dc_principal_wrapper, - .flags = AUTH_METHOD_LOCAL_SAM }; static const struct auth_operations sam_ops = { @@ -713,7 +712,6 @@ static const struct auth_operations sam_ops = { .want_check = authsam_want_check, .check_password = authsam_check_password_internals, .get_user_info_dc_principal = authsam_get_user_info_dc_principal_wrapper, - .flags = AUTH_METHOD_LOCAL_SAM }; _PUBLIC_ NTSTATUS auth4_sam_init(void); -- 2.34.1