s4-auth: disable sam_ignoredomain by default
authorAndrew Tridgell <tridge@samba.org>
Thu, 29 Sep 2011 07:47:10 +0000 (17:47 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 Dec 2015 02:56:48 +0000 (15:56 +1300)
this changes s4 auth to use the sam method for DCs, relying on the
expanded CrackNames support in map_user_info() to work out the right
domain name to use

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth.c

index 1d1bc5eb8565bcc8bd86b2a8c65370a4bf33fb15..701880418434e662748828448f226f68c5bbedf1 100644 (file)
@@ -597,12 +597,10 @@ const char **auth_methods_from_lp(TALLOC_CTX *mem_ctx, struct loadparm_context *
                auth_methods = str_list_make(mem_ctx, "anonymous sam_ignoredomain", NULL);
                break;
        case ROLE_DOMAIN_MEMBER:
-               auth_methods = str_list_make(mem_ctx, "anonymous sam winbind", NULL);
-               break;
        case ROLE_DOMAIN_BDC:
        case ROLE_DOMAIN_PDC:
        case ROLE_ACTIVE_DIRECTORY_DC:
-               auth_methods = str_list_make(mem_ctx, "anonymous sam_ignoredomain winbind", NULL);
+               auth_methods = str_list_make(mem_ctx, "anonymous sam winbind sam_ignoredomain", NULL);
                break;
        }
        return discard_const_p(const char *, auth_methods);