summaryrefslogtreecommitdiff
path: root/source3/rpcclient/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpcclient/display.c')
-rw-r--r--source3/rpcclient/display.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/source3/rpcclient/display.c b/source3/rpcclient/display.c
index a2248920cd..5f63b02c76 100644
--- a/source3/rpcclient/display.c
+++ b/source3/rpcclient/display.c
@@ -867,6 +867,50 @@ void display_name(FILE *out_hnd, enum action_type action,
/****************************************************************************
+ display alias rid info
+ ****************************************************************************/
+void display_alias_rid_info(FILE *out_hnd, enum action_type action,
+ DOM_SID *sid,
+ uint32 num_rids, uint32 *rid)
+{
+ switch (action)
+ {
+ case ACTION_HEADER:
+ {
+ fstring sid_str;
+ sid_to_string(sid_str, sid);
+ if (num_rids == 0)
+ {
+ fprintf(out_hnd, "\tNo Aliases: Sid %s\n", sid_str);
+ }
+ else
+ {
+ fprintf(out_hnd, "\tAlias Info: Sid %s\n", sid_str);
+ fprintf(out_hnd, "\t----------\n");
+ }
+ break;
+ }
+ case ACTION_ENUMERATE:
+ {
+ int i;
+
+ for (i = 0; i < num_rids; i++)
+ {
+ fprintf(out_hnd, "\tAlias RID: %8x\n", rid[i]);
+ }
+
+ break;
+ }
+ case ACTION_FOOTER:
+ {
+ fprintf(out_hnd, "\n");
+ break;
+ }
+ }
+}
+
+
+/****************************************************************************
display group rid info
****************************************************************************/
void display_group_rid_info(FILE *out_hnd, enum action_type action,