summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-03-13 01:51:01 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-03-13 01:51:01 +0000
commit9802310b2aa919964f4f312cd99349d02cc12afc (patch)
tree7adfeb145e27e6b3149dd893ecf986120a21652f
parentdac047366a534994e40952ddfcdb491c2fd4d1e5 (diff)
downloadsamba-9802310b2aa919964f4f312cd99349d02cc12afc.tar.gz
samba-9802310b2aa919964f4f312cd99349d02cc12afc.tar.bz2
samba-9802310b2aa919964f4f312cd99349d02cc12afc.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 (This used to be commit f81882fc9510aadd7d1db77753b307800ab50f9b)
-rw-r--r--source3/auth/auth_util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index a4dea39d2d..587273d9b6 100644
--- a/source3/auth/auth_util.c
+++ b/source3/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