regtree... sddl
authorStefan Metzmacher <metze@samba.org>
Wed, 6 Mar 2013 08:37:19 +0000 (09:37 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Oct 2016 12:52:16 +0000 (14:52 +0200)
source4/lib/registry/tools/regtree.c

index 56f38e7d4bace04294e65a2b2667a02cb63ae650..3bcc659b31b34e3794a0ba10c8d5f32a57fba026 100644 (file)
@@ -24,6 +24,7 @@
 #include "lib/events/events.h"
 #include "lib/cmdline/popt_common.h"
 #include "param/param.h"
+#include "../libcli/security/security.h"
 
 /**
  * Print a registry key recursively
@@ -96,6 +97,7 @@ static void print_tree(unsigned int level, struct registry_key *p,
        if (!W_ERROR_IS_OK(reg_get_sec_desc(mem_ctx, p, &sec_desc))) {
                DEBUG(0, ("Error getting security descriptor\n"));
        }
+       printf("sddl: %s\n", sddl_encode(mem_ctx, sec_desc, NULL));
        talloc_free(mem_ctx);
 }