From d811ea17bb3a487b8bdcd2f9aa8dc4ba5cb2ab01 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 9 Dec 2005 23:43:02 +0000 Subject: r12158: added ldif handlers for the ntSecurityDescriptor attribute, so when displaying security descriptors in ldbsearch or ldbedit you can see the SDDL version. This also allows us to specify security descriptors in our setup/*.ldif files in SDDL format, which is much more convenient than the NDR binary format! (This used to be commit 8185731c1846412c1b3366824cdb3d05b2d50b73) --- source4/torture/local/sddl.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/torture/local') diff --git a/source4/torture/local/sddl.c b/source4/torture/local/sddl.c index 8d5874d878..01f4d839d9 100644 --- a/source4/torture/local/sddl.c +++ b/source4/torture/local/sddl.c @@ -57,6 +57,13 @@ static BOOL test_sddl(TALLOC_CTX *mem_ctx, const char *sddl) return False; } +#if 0 + /* flags don't have a canonical order ... */ + if (strcmp(sddl, sddl2) != 0) { + printf("Failed sddl equality test\norig: %s\n new: %s\n", sddl, sddl2); + } +#endif + if (DEBUGLVL(2)) { NDR_PRINT_DEBUG(security_descriptor, sd); } -- cgit