diff options
author | Jeremy Allison <jra@samba.org> | 2000-12-12 02:36:14 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-12-12 02:36:14 +0000 |
commit | 276364e2a4cee00f4521845347a0b0a371f6b0e6 (patch) | |
tree | 08a424f61710d1ccdff20279ebbf07beb4e773f6 /source3/smbd/uid.c | |
parent | 57fcae402b8a9971c938ce069862285151728987 (diff) | |
download | samba-276364e2a4cee00f4521845347a0b0a371f6b0e6.tar.gz samba-276364e2a4cee00f4521845347a0b0a371f6b0e6.tar.bz2 samba-276364e2a4cee00f4521845347a0b0a371f6b0e6.zip |
Removed the special casing of SIDs in se_access_check. This is now done (correctly)
when the NT_USER_TOKEN is *created*.
Jeremy.
(This used to be commit 27d72ed1cf8ece2bede812341279ba5a7262ace4)
Diffstat (limited to 'source3/smbd/uid.c')
-rw-r--r-- | source3/smbd/uid.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 008765cde1..25cadb51b0 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -148,6 +148,8 @@ BOOL become_user(connection_struct *conn, uint16 vuid) */ if((group_c = *lp_force_group(snum))) { + BOOL is_guest = False; + if(group_c == '+') { /* @@ -173,7 +175,10 @@ BOOL become_user(connection_struct *conn, uint16 vuid) * re-create it. */ - token = create_nt_token(uid, gid, current_user.ngroups, current_user.groups); + if (vuser && vuser->guest) + is_guest = True; + + token = create_nt_token(uid, gid, current_user.ngroups, current_user.groups, is_guest); must_free_token = True; } |