auth3: 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>
source3/auth/auth.c
source3/auth/auth_sam.c
source3/auth/auth_samba4.c

index 31313c76f77383daf260a39ed184ef2146f59d83..3d82f2b06cecb9d035f04d473a953d20ecb9b550 100644 (file)
@@ -223,11 +223,6 @@ NTSTATUS auth_check_ntlm_password(TALLOC_CTX *mem_ctx,
 
                auth_method_name = auth_method->name;
 
-               if (user_info->flags & USER_INFO_LOCAL_SAM_ONLY
-                   && !(auth_method->flags & AUTH_METHOD_LOCAL_SAM)) {
-                       continue;
-               }
-
                nt_status = auth_method->auth(auth_context,
                                              auth_method->private_data,
                                              talloc_tos(),
index c4100d5a4e1756c67fe7e357b4e88deae5454db2..5b53bca0e8e48dc8de98d3c4478c6f096fbaa85a 100644 (file)
@@ -121,8 +121,7 @@ static NTSTATUS auth_init_sam(struct auth_context *auth_context, const char *par
        }
        result->auth = auth_samstrict_auth;
        result->name = "sam";
-       result->flags = AUTH_METHOD_LOCAL_SAM;
-        *auth_method = result;
+       *auth_method = result;
        return NT_STATUS_OK;
 }
 
index 138c6cd4f0960674bd40c874f2c664c7c3025fed..4c83c2aa823b02decb73c858196470b1141a8fec 100644 (file)
@@ -379,7 +379,6 @@ static NTSTATUS auth_init_samba4(struct auth_context *auth_context,
        result->auth = check_samba4_security;
        result->prepare_gensec = prepare_gensec;
        result->make_auth4_context = make_auth4_context_s4;
-       result->flags = AUTH_METHOD_LOCAL_SAM;
 
        if (param && *param) {
                auth_context->forced_samba4_methods = talloc_strdup(result, param);