git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e8a31
)
s4/ldb: allow prefixMap to be shown as NDR
author
Andrew Tridgell
<tridge@samba.org>
Tue, 8 Sep 2009 12:02:59 +0000
(22:02 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 8 Sep 2009 12:02:59 +0000
(22:02 +1000)
source4/lib/ldb-samba/ldif_handlers.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb-samba/ldif_handlers.c
b/source4/lib/ldb-samba/ldif_handlers.c
index 6927576ca6abaaab77ef008ea503e127f6389fcc..57f0533df6b1926a7516f83410e7f39bb412e489 100644
(file)
--- 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;