From ba992d5ad7bc2e32b2b458d8d91ca450e97513c3 Mon Sep 17 00:00:00 2001 From: James Peach Date: Tue, 6 Mar 2007 00:54:05 +0000 Subject: r21717: Support the SMB_QUERY_POSIX_WHOAMI info level on QueryFsInfo. (This used to be commit 32c7281f90b042c9f01962c4661faaf979676711) --- source3/include/trans2.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'source3/include') diff --git a/source3/include/trans2.h b/source3/include/trans2.h index 89227c39d9..c6d98c7ed3 100644 --- a/source3/include/trans2.h +++ b/source3/include/trans2.h @@ -579,6 +579,37 @@ number of entries sent will be zero. */ +#define SMB_QUERY_POSIX_WHOAMI 0x202 + +enum smb_whoami_flags { + SMB_WHOAMI_GUEST = 0x1 /* Logged in as (or squashed to) guest */ +}; + +/* Mask of which WHOAMI bits are valid. This should make it easier for clients + * to cope with servers that have different sets of WHOAMI flags (as more get + * added). + */ +#define SMB_WHOAMI_MASK 0x00000001 + +/* + SMBWhoami - Query the user mapping performed by the server for the + connected tree. This is a subcommand of the TRANS2_QFSINFO. + + Returns: + 4 bytes unsigned - mapping flags (smb_whoami_flags) + 4 bytes unsigned - flags mask + + 8 bytes unsigned - primary UID + 8 bytes unsigned - primary GID + 4 bytes unsigned - number of supplementary GIDs + 4 bytes unsigned - number of SIDs + 4 bytes unsigned - SID list byte count + 4 bytes - pad / reserved (must be zero) + + 8 bytes unsigned[] - list of GIDs (may be empty) + DOM_SID[] - list of SIDs (may be empty) +*/ + /* The query/set info levels for POSIX ACLs. */ #define SMB_QUERY_POSIX_ACL 0x204 #define SMB_SET_POSIX_ACL 0x204 -- cgit