summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-03-16 18:31:09 +0000
committerJeremy Allison <jra@samba.org>1998-03-16 18:31:09 +0000
commit90cdd717f8352a3b3eacdc154dfb1f9ff2fabeaf (patch)
treefbbca9fdce3bb4a102ed65117216086b07656f7b /source3/smbd/password.c
parentc4855a8e028914281f179bd3bce8fc7cb249eaf7 (diff)
downloadsamba-90cdd717f8352a3b3eacdc154dfb1f9ff2fabeaf.tar.gz
samba-90cdd717f8352a3b3eacdc154dfb1f9ff2fabeaf.tar.bz2
samba-90cdd717f8352a3b3eacdc154dfb1f9ff2fabeaf.zip
includes.h: Addition of NetBSD 1.3 fix, fix for HPUX 9.x, 10.x zombie
problem. password.c: Fix for Thursby to stop Dave clients failing in share mode security (this was their bug - they were interpreting the uid field in share mode which is explicitly denied by the spec but it's easier for us to fix it than them :-). Jeremy. (This used to be commit 39372d9e20803d32c0c5b87226a72b007978baad)
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r--source3/smbd/password.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 212d931e87..c0e89100ea 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -243,6 +243,10 @@ uint16 register_vuid(int uid,int gid, char *name,BOOL guest)
user_struct *vuser;
struct passwd *pwfile; /* for getting real name from passwd file */
+ /* Ensure no vuid gets registered in share level security. */
+ if(lp_security() == SEC_SHARE)
+ return UID_FIELD_INVALID;
+
#if 0
/*
* After observing MS-Exchange services writing to a Samba share