diff options
author | James Peach <jpeach@samba.org> | 2007-03-06 00:54:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:25 -0500 |
commit | ba992d5ad7bc2e32b2b458d8d91ca450e97513c3 (patch) | |
tree | f06a771e45b02d3537c121f78c4da8e9653200d9 /source3/include | |
parent | f41de9314b300d5092cf0ecef201fbe520040b8b (diff) | |
download | samba-ba992d5ad7bc2e32b2b458d8d91ca450e97513c3.tar.gz samba-ba992d5ad7bc2e32b2b458d8d91ca450e97513c3.tar.bz2 samba-ba992d5ad7bc2e32b2b458d8d91ca450e97513c3.zip |
r21717: Support the SMB_QUERY_POSIX_WHOAMI info level on QueryFsInfo.
(This used to be commit 32c7281f90b042c9f01962c4661faaf979676711)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/trans2.h | 31 |
1 files changed, 31 insertions, 0 deletions
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 |