From a95ccc27790cb8275f44df76fa6dc33a6a17c12e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 11 Dec 2000 19:24:59 +0000 Subject: Adding in debug for SD's. Jeremy. (This used to be commit a19f936b644fedc4c59ada5f12172abed9894910) --- source3/printing/nt_printing.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source3/printing') diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index b3b942d2ed..2ad2e564ec 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -2889,6 +2889,23 @@ BOOL nt_printing_getsec(char *printername, SEC_DESC_BUF **secdesc_ctr) } } + if (DEBUGLEVEL >= 10) { + SEC_ACL *acl = (*secdesc_ctr)->sec->dacl; + int i; + + DEBUG(10, ("secdesc_ctr for %s has %d aces:\n", + printername, acl->num_aces)); + + for (i = 0; i < acl->num_aces; i++) { + fstring sid_str; + + sid_to_string(sid_str, &acl->ace[i].sid); + + DEBUG(10, ("%s 0x%08x\n", sid_str, + acl->ace[i].info.mask)); + } + } + prs_mem_free(&ps); talloc_destroy(mem_ctx); return True; -- cgit