summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools/cmdline.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-10 12:53:07 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-10 13:23:38 +1100
commita3e089db19384221c65996b158b7fa3aaf512792 (patch)
tree2bf7355b70964227e2257215657a8ba4ed15f382 /source4/lib/ldb/tools/cmdline.c
parentd5091a1dd9cf669817355bb932249e5337e664b1 (diff)
downloadsamba-a3e089db19384221c65996b158b7fa3aaf512792.tar.gz
samba-a3e089db19384221c65996b158b7fa3aaf512792.tar.bz2
samba-a3e089db19384221c65996b158b7fa3aaf512792.zip
s4-ldb: display security descriptors with correct SDL for known SIDs
This makes it much easier to compare SDs
Diffstat (limited to 'source4/lib/ldb/tools/cmdline.c')
-rw-r--r--source4/lib/ldb/tools/cmdline.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/ldb/tools/cmdline.c b/source4/lib/ldb/tools/cmdline.c
index 39a460763c..44ae23b26c 100644
--- a/source4/lib/ldb/tools/cmdline.c
+++ b/source4/lib/ldb/tools/cmdline.c
@@ -33,6 +33,7 @@
#include "auth/auth.h"
#include "ldb_wrap.h"
#include "param/param.h"
+#include "dsdb/common/proto.h"
#endif
static struct ldb_cmdline options; /* needs to be static for older compilers */
@@ -321,6 +322,11 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb,
goto failed;
}
+#if (_SAMBA_BUILD_ >= 4)
+ /* get the domain SID into the cache for SDDL processing */
+ samdb_domain_sid(ldb);
+#endif
+
return ret;
failed: