regtree... sddl
authorStefan Metzmacher <metze@samba.org>
Wed, 6 Mar 2013 08:37:19 +0000 (09:37 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 30 Apr 2013 06:49:08 +0000 (08:49 +0200)
source4/lib/registry/tools/regtree.c

index 40570dd778a108842f882d22e41c7c224944a8cf..11e8dad6c5d053c80f75a1929438b4da5347d21c 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
@@ -95,6 +96,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);
 }