diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-07-08 00:40:57 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-07-08 00:40:57 +0000 |
commit | 8dc39c1112487a7c98cd48ebe9742af07fd3e1c6 (patch) | |
tree | 99c9fa900ca0913e209c82d17deb9ab4cc1f0372 /source3/include | |
parent | d29d29e4a2ecee741bdb3d37be77aeeab48f185f (diff) | |
download | samba-8dc39c1112487a7c98cd48ebe9742af07fd3e1c6.tar.gz samba-8dc39c1112487a7c98cd48ebe9742af07fd3e1c6.tar.bz2 samba-8dc39c1112487a7c98cd48ebe9742af07fd3e1c6.zip |
(this should have been part of the previous commit)
Add a function to display 'sid types' as strings - makes rpcclient outptut
and DEBUG() logs much eaiser to understand.
Move the enum for SID types to smb.h, becouse is really isn't LSA specific any
more.
Andrew Bartlett
(This used to be commit fc9739861104df4ddc93efab3275275307e4fbb9)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/rpc_lsa.h | 13 | ||||
-rw-r--r-- | source3/include/smb.h | 14 |
2 files changed, 14 insertions, 13 deletions
diff --git a/source3/include/rpc_lsa.h b/source3/include/rpc_lsa.h index ceb0e17d5c..8e42ac7d2c 100644 --- a/source3/include/rpc_lsa.h +++ b/source3/include/rpc_lsa.h @@ -25,19 +25,6 @@ #include "rpc_misc.h" -enum SID_NAME_USE -{ - SID_NAME_USE_NONE = 0,/* NOTUSED */ - SID_NAME_USER = 1, /* user */ - SID_NAME_DOM_GRP = 2, /* domain group */ - SID_NAME_DOMAIN = 3, /* domain: don't know what this is */ - SID_NAME_ALIAS = 4, /* local group */ - SID_NAME_WKN_GRP = 5, /* well-known group */ - SID_NAME_DELETED = 6, /* deleted account: needed for c2 rating */ - SID_NAME_INVALID = 7, /* invalid account */ - SID_NAME_UNKNOWN = 8 /* oops. */ -}; - /* Opcodes available on PIPE_LSARPC */ #define LSA_CLOSE 0x00 diff --git a/source3/include/smb.h b/source3/include/smb.h index b095c3d8fa..a67101ff09 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -248,6 +248,20 @@ typedef uint32 WERROR; #define MAXSUBAUTHS 15 /* max sub authorities in a SID */ #endif +/* SID Types */ +enum SID_NAME_USE +{ + SID_NAME_USE_NONE = 0,/* NOTUSED */ + SID_NAME_USER = 1, /* user */ + SID_NAME_DOM_GRP = 2, /* domain group */ + SID_NAME_DOMAIN = 3, /* domain: don't know what this is */ + SID_NAME_ALIAS = 4, /* local group */ + SID_NAME_WKN_GRP = 5, /* well-known group */ + SID_NAME_DELETED = 6, /* deleted account: needed for c2 rating */ + SID_NAME_INVALID = 7, /* invalid account */ + SID_NAME_UNKNOWN = 8 /* oops. */ +}; + /** * @brief Security Identifier * |