1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

need to be able to connect to a domain member as a local account; don't always map to the domain name

(This used to be commit 20b6e64da2669e5dfc7265cae331ec9c89aa02dc)
This commit is contained in:
Gerald Carter 2003-08-08 05:11:11 +00:00
parent 2a091c4e89
commit 56bb027696

View File

@ -216,8 +216,8 @@ NTSTATUS make_user_info_map(auth_usersupplied_info **user_info,
client_domain, smb_name, wksta_name));
/* don't allow "" as a domain, fixes a Win9X bug
where it doens't supply a domain for logon script
'net use' commands.*/
where it doens't supply a domain for logon script
'net use' commands. */
if ( *client_domain )
domain = client_domain;
@ -227,7 +227,7 @@ NTSTATUS make_user_info_map(auth_usersupplied_info **user_info,
/* do what win2k does. Always map unknown domains to our own
and let the "passdb backend" handle unknown users. */
if ( !is_trusted_domain(domain) )
if ( !is_trusted_domain(domain) && !strequal(domain, get_global_sam_name()) )
domain = get_default_sam_name();
/* we know that it is a trusted domain (and we are allowing them) or it is our domain */