summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb_server.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-07-14 12:44:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:36 -0500
commit5779a7da9aecb7329eb47e93000dc8b9de96d9ae (patch)
treefbd35fe57d724e4219adf61f86ffe68a0a9657bf /source4/smb_server/smb_server.h
parentf607197054436a8195e3d0a695fe31574b418059 (diff)
downloadsamba-5779a7da9aecb7329eb47e93000dc8b9de96d9ae.tar.gz
samba-5779a7da9aecb7329eb47e93000dc8b9de96d9ae.tar.bz2
samba-5779a7da9aecb7329eb47e93000dc8b9de96d9ae.zip
r1499: combine struct user_struct and struct smbsrv_user
to a struct smbsrv_session that the same as cli_session for the client we need a gensec_security pointer there (spnego support will follow) prefix some related functions with smbsrv_ metze (This used to be commit f276378157bb9994c4c91ce46150a510de5c33f8)
Diffstat (limited to 'source4/smb_server/smb_server.h')
-rw-r--r--source4/smb_server/smb_server.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/source4/smb_server/smb_server.h b/source4/smb_server/smb_server.h
index e7b0ecfb02..2eb87f09a3 100644
--- a/source4/smb_server/smb_server.h
+++ b/source4/smb_server/smb_server.h
@@ -29,14 +29,20 @@
*/
/* the current user context for a request */
-struct smbsrv_user {
+struct smbsrv_session {
+ struct smbsrv_session *prev, *next;
+
+ struct smbsrv_connection *smb_conn;
+
/* the vuid is used to specify the security context for this
request. Note that this may not be the same vuid as we
received on the wire (for example, for share mode or guest
access) */
uint16_t vuid;
- struct user_struct *vuser;
+ struct gensec_security *gensec_ctx;
+
+ struct auth_session_info *session_info;
};
@@ -89,8 +95,8 @@ struct smbsrv_request {
/* conn is only set for operations that have a valid TID */
struct smbsrv_tcon *tcon;
- /* the user context is derived from the vuid plus smb.conf options */
- struct smbsrv_user *user_ctx;
+ /* the session context is derived from the vuid */
+ struct smbsrv_session *session;
/* a set of flags to control usage of the request. See REQ_CONTROL_* */
unsigned control_flags;
@@ -295,14 +301,11 @@ struct smbsrv_connection {
/* context associated with currently valid session setups */
struct {
- /* users from session setup */
- char *session_users; /* was a pstring */
-
- /* this holds info on user ids that are already validated for this VC */
- struct user_struct *validated_users;
- int next_vuid; /* initialise to VUID_OFFSET */
+ /* this holds info on session vuids that are already validated for this VC */
+ struct smbsrv_session *session_list;
+ uint16_t next_vuid; /* initialise to VUID_OFFSET */
int num_validated_vuids;
- } users;
+ } sessions;
/* this holds long term state specific to the printing subsystem */
struct {