diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-03-13 01:51:01 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-03-13 01:51:01 +0000 |
commit | f81882fc9510aadd7d1db77753b307800ab50f9b (patch) | |
tree | d142a0705532f65ce52443f5524875fceebecf8c | |
parent | bcf38961a7786c5cf1eb7568b87c19712c3ea9cc (diff) | |
download | samba-f81882fc9510aadd7d1db77753b307800ab50f9b.tar.gz samba-f81882fc9510aadd7d1db77753b307800ab50f9b.tar.xz samba-f81882fc9510aadd7d1db77753b307800ab50f9b.zip |
Ensure we never use "" as a domain name (Win9X apparently does this for 'net use' duirng login).
Picked up from a post to a TNG list by Volker.
Andrew Bartlett
-rw-r--r-- | source/auth/auth_util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c index a4dea39d2df..587273d9b6d 100644 --- a/source/auth/auth_util.c +++ b/source/auth/auth_util.c @@ -196,12 +196,17 @@ BOOL make_user_info_map(auth_usersupplied_info **user_info, fstrcpy(internal_username, smb_name); map_username(internal_username); - if (lp_allow_trusted_domains()) { + if (lp_allow_trusted_domains() && *client_domain) { + /* the client could have given us a workstation name or other crap for the workgroup - we really need a way of telling if this domain name is one of our trusted domain names + Also don't allow "" as a domain, fixes a Win9X bug + where it doens't supply a domain for logon script + 'net use' commands. + The way I do it here is by checking if the fully qualified username exists. This is rather reliant on winbind, but until we have a better method this |