diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-02-10 11:31:23 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-02-10 11:31:23 +0000 |
commit | 6c66e42d2ccf025f57e652f7ae689f8a3c2ada59 (patch) | |
tree | 56c892e5817256759b9470f7186fbb74c6601430 /source3/include | |
parent | baff308f169dc90449f55d207627135a44d14bbd (diff) | |
download | samba-6c66e42d2ccf025f57e652f7ae689f8a3c2ada59.tar.gz samba-6c66e42d2ccf025f57e652f7ae689f8a3c2ada59.tar.bz2 samba-6c66e42d2ccf025f57e652f7ae689f8a3c2ada59.zip |
added the 'lsaenumacctwithright' command to rpcclient. This allows you
to lookup what SIDs have a particular privilege (that is how
privileges are stored).
(This used to be commit 3ddb5fb0dd33992b7db54a661752551a3fefc0b4)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/rpc_lsa.h | 18 | ||||
-rw-r--r-- | source3/include/rpc_misc.h | 16 |
2 files changed, 33 insertions, 1 deletions
diff --git a/source3/include/rpc_lsa.h b/source3/include/rpc_lsa.h index fc6cbeb6cd..c091e73321 100644 --- a/source3/include/rpc_lsa.h +++ b/source3/include/rpc_lsa.h @@ -553,7 +553,6 @@ typedef struct DOM_SID2 sid; uint32 removeall; UNISTR2_ARRAY rights; - uint32 count; } LSA_Q_REMOVE_ACCT_RIGHTS; /* LSA_R_REMOVE_ACCT_RIGHTS - LSA remove account rights */ @@ -562,6 +561,23 @@ typedef struct NTSTATUS status; } LSA_R_REMOVE_ACCT_RIGHTS; +/* LSA_Q_ENUM_ACCT_WITH_RIGHT - LSA enum accounts with right */ +typedef struct +{ + POLICY_HND pol; + STRHDR right_hdr; + UNISTR2 right; +} LSA_Q_ENUM_ACCT_WITH_RIGHT; + +/* LSA_R_ENUM_ACCT_WITH_RIGHT - LSA enum accounts with right */ +typedef struct +{ + uint32 count; + SID_ARRAY sids; + NTSTATUS status; +} LSA_R_ENUM_ACCT_WITH_RIGHT; + + /* LSA_Q_PRIV_GET_DISPNAME - LSA get privilege display name */ typedef struct lsa_q_priv_get_dispname { diff --git a/source3/include/rpc_misc.h b/source3/include/rpc_misc.h index 7710489435..06ad760c58 100644 --- a/source3/include/rpc_misc.h +++ b/source3/include/rpc_misc.h @@ -227,6 +227,22 @@ typedef struct UNISTR2_ARRAY_EL *strings; } UNISTR2_ARRAY; + +/* an element in a sid array */ +typedef struct +{ + uint32 ref_id; + DOM_SID2 sid; +} SID_ARRAY_EL; + +/* an array of sids */ +typedef struct +{ + uint32 ref_id; + uint32 count; + SID_ARRAY_EL *sids; +} SID_ARRAY; + /* DOM_RID2 - domain RID structure for ntlsa pipe */ typedef struct domrid2_info { |