diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-08 22:02:59 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-08 22:02:59 +1000 |
commit | 27ff8f4e73dd9f4579db965a03416b4cb001970a (patch) | |
tree | 6c8641772dee0d8a26bbdc0bd1df40a949060f68 /source4/lib/ldb-samba | |
parent | a8e8a3161164ec469d65d7489d2f71fdc288a131 (diff) | |
download | samba-27ff8f4e73dd9f4579db965a03416b4cb001970a.tar.gz samba-27ff8f4e73dd9f4579db965a03416b4cb001970a.tar.bz2 samba-27ff8f4e73dd9f4579db965a03416b4cb001970a.zip |
s4/ldb: allow prefixMap to be shown as NDR
Diffstat (limited to 'source4/lib/ldb-samba')
-rw-r--r-- | source4/lib/ldb-samba/ldif_handlers.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/ldb-samba/ldif_handlers.c b/source4/lib/ldb-samba/ldif_handlers.c index 6927576ca6..57f0533df6 100644 --- a/source4/lib/ldb-samba/ldif_handlers.c +++ b/source4/lib/ldb-samba/ldif_handlers.c @@ -595,6 +595,14 @@ static int ldif_write_prefixMap(struct ldb_context *ldb, void *mem_ctx, char *string; uint32_t i; + if (ldb_get_flags(ldb) & LDB_FLG_SHOW_BINARY) { + return ldif_write_NDR(ldb, mem_ctx, in, out, + sizeof(struct prefixMapBlob), + (ndr_pull_flags_fn_t)ndr_pull_prefixMapBlob, + (ndr_print_fn_t)ndr_print_prefixMapBlob); + + } + blob = talloc(mem_ctx, struct prefixMapBlob); if (blob == NULL) { return -1; |