auth4: remove unused USER_INFO_LOCAL_SAM_ONLY/AUTH_METHOD_LOCAL_SAM handling
authorStefan Metzmacher <metze@samba.org>
Tue, 21 Mar 2017 07:32:27 +0000 (08:32 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Mar 2017 10:57:10 +0000 (11:57 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth.c
source4/auth/ntlm/auth_sam.c

index 5d3fbef5636ef04c686916d4061a917773b70aa7..1b7faee3dbcb9fd41203ad77c1716ea7c9c8911e 100644 (file)
@@ -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;
index d3f9019612592782fd718bb5da33711d84c5d705..391492a898f0bbe200f1643f2b6f3351e1ee2239 100644 (file)
@@ -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);