Fix bug #9039 'map untrusted to domain' treats WORKSTATION as bogus domain.
authorDaniel Kobras <d.kobras@science-computing.de>
Sat, 23 Feb 2013 00:24:26 +0000 (16:24 -0800)
committerMichael Adam <obnox@samba.org>
Wed, 27 Feb 2013 23:10:48 +0000 (00:10 +0100)
s3: never try to map global SAM name

Do not treat the global SAM name as a BOGUS domain, and exempt
local users from mapping, instead. This change reinstates the
exact mapping behaviour of Samba 3.2 if parameter 'map untrusted
to domain' is set.

Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/auth/auth_util.c

index 1367186a55e3f04031183fc90bf4c00028036a90..ceaa7064d5908d19347f696ee013c0b9a34a5d77 100644 (file)
@@ -125,7 +125,8 @@ NTSTATUS make_user_info_map(struct auth_usersupplied_info **user_info,
         * This also deals with the client passing in a "" domain */
 
        if (!is_trusted_domain(domain) &&
-           !strequal(domain, my_sam_name()))
+           !strequal(domain, my_sam_name()) &&
+           !strequal(domain, get_global_sam_name()))
        {
                if (lp_map_untrusted_to_domain())
                        domain = my_sam_name();