summaryrefslogtreecommitdiff
path: root/source4/lib/ldb-samba
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-samba
parentd5091a1dd9cf669817355bb932249e5337e664b1 (diff)
downloadsamba-a3e089db19384221c65996b158b7fa3aaf512792.tar.gz
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-samba')
-rw-r--r--source4/lib/ldb-samba/ldif_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb-samba/ldif_handlers.c b/source4/lib/ldb-samba/ldif_handlers.c
index 10a733382aa..88888bf0a74 100644
--- a/source4/lib/ldb-samba/ldif_handlers.c
+++ b/source4/lib/ldb-samba/ldif_handlers.c
@@ -406,7 +406,7 @@ static int ldif_write_ntSecurityDescriptor(struct ldb_context *ldb, void *mem_ct
talloc_free(sd);
return -1;
}
- out->data = (uint8_t *)sddl_encode(mem_ctx, sd, NULL);
+ out->data = (uint8_t *)sddl_encode(mem_ctx, sd, samdb_domain_sid_cache_only(ldb));
talloc_free(sd);
if (out->data == NULL) {
return -1;