commit a8ec21a56cfb60e0fb8d354586a39b909c4eaddc Author: Daniel Kobras Date: Fri Jul 13 16:31:47 2012 +0200 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. diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 69d5c65..7febcbf 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -221,7 +221,8 @@ NTSTATUS make_user_info_map(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();