diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/password.c | 4 |
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 |