summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-10-25 20:48:25 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-10-25 20:48:25 +0000
commit134c804497c24891fd7d75c07086cab131e91af9 (patch)
treebe93a9601c9914f971e3a3658a1036c1fc8fddc4
parentddc18f418382755106cadf91110e1bc5e6223346 (diff)
downloadsamba-134c804497c24891fd7d75c07086cab131e91af9.tar.gz
samba-134c804497c24891fd7d75c07086cab131e91af9.tar.bz2
samba-134c804497c24891fd7d75c07086cab131e91af9.zip
Added definitions for vuid offset and invalid user smb_uid.
Added vuid to connections struct. jra@cygnus.com (This used to be commit 555f6cda319559ebcb0b566f7f4042cf6a734e01)
-rw-r--r--source3/include/smb.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index af6e24c4ab..f499459f98 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -319,8 +319,6 @@ typedef struct
{
int service;
BOOL force_user;
- int uid; /* uid of user who *opened* this connection */
- int gid; /* gid of user who *opened* this connection */
struct uid_cache uid_cache;
void *dirptr;
BOOL open;
@@ -332,6 +330,9 @@ typedef struct
char *connectpath;
char *origpath;
char *user; /* name of user who *opened* this connection */
+ int uid; /* uid of user who *opened* this connection */
+ int gid; /* gid of user who *opened* this connection */
+ uint16 vuid; /* vuid of user who *opened* this connection, or UID_FIELD_INVALID */
/* following groups stuff added by ih */
/* This groups info is valid for the user that *opened* the connection */
int ngroups;
@@ -823,5 +824,13 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
#define ROUNDUP(x,g) (((x)+((g)-1))&~((g)-1))
+/*
+ * Global value meaing that the smb_uid field should be
+ * ingored (in share level security and protocol level == CORE)
+ */
+
+#define UID_FIELD_INVALID 0
+#define VUID_OFFSET 100 /* Amount to bias returned vuid numbers */
+
#endif
/* _SMB_H */