summaryrefslogtreecommitdiff
path: root/source3/smbd/service.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-03-04 14:10:41 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-03-04 14:10:41 +1100
commit8ee0cc24b8302097bccae7891cb6f9c0547a1815 (patch)
tree3fb0605641da1230b34912ac725ff2f09f51af8f /source3/smbd/service.c
parent52542e1affbaad3a29d913ced06f6c5ae0d7b4ad (diff)
parentef89c4bc0db2e9ba48f4dac1fd381e4cc6c8ca7d (diff)
downloadsamba-8ee0cc24b8302097bccae7891cb6f9c0547a1815.tar.gz
samba-8ee0cc24b8302097bccae7891cb6f9c0547a1815.tar.bz2
samba-8ee0cc24b8302097bccae7891cb6f9c0547a1815.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r--source3/smbd/service.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index dcdd69f997..eb16a2601e 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -833,6 +833,14 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser,
*pstatus = status;
return NULL;
}
+
+ /*
+ * We need to cache this gid, to use within
+ * change_to_user() separately from the conn->server_info
+ * struct. We only use conn->server_info directly if
+ * "force_user" was set.
+ */
+ conn->force_group_gid = conn->server_info->utok.gid;
}
conn->vuid = (vuser != NULL) ? vuser->vuid : UID_FIELD_INVALID;