--- source3/auth/auth.c.orig 2018-03-23 07:48:00.363731946 -0600 +++ source3/auth/auth.c 2018-03-23 07:49:24.803887197 -0600 @@ -124,6 +124,7 @@ if (!lp_allow_trusted_domains() && !(strequal("", domain) || strequal(lp_workgroup(), domain) || + strequal(lp_realm(), domain) || is_myname(domain))) { DEBUG(1, ("check_domain_match: Attempt to connect as user %s from domain %s denied.\n", user, domain)); return False;