diff options
author | Günther Deschner <gd@samba.org> | 2013-12-20 17:23:22 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-01-07 16:59:39 +0100 |
commit | f1685427ed26da39e3d4ad5be7406c61d7cd1179 (patch) | |
tree | 65d5fe9f00a36dcb683eee00c2b143cc1ccd2b8a | |
parent | 88a0c401fce6fb3cde13b532a5a9972f40876421 (diff) | |
download | samba-f1685427ed26da39e3d4ad5be7406c61d7cd1179.tar.gz |
libgpo: when running in verbose mode, printout the parsed PReg file.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | librpc/idl/preg.idl | 2 | ||||
-rw-r--r-- | source3/libgpo/gpext/registry.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/librpc/idl/preg.idl b/librpc/idl/preg.idl index 6738f614b41..6a98a823cd1 100644 --- a/librpc/idl/preg.idl +++ b/librpc/idl/preg.idl @@ -17,7 +17,7 @@ import "misc.idl"; ] interface preg { - typedef [public] struct { + typedef [public,flag(NDR_PAHEX)] struct { [charset(DOS),value("["),noprint] uint8 _opening_bracket[2]; nstring keyname; [charset(DOS),value(";"),noprint] uint8 _sep1[2]; diff --git a/source3/libgpo/gpext/registry.c b/source3/libgpo/gpext/registry.c index ad511a527da..1700eabd464 100644 --- a/source3/libgpo/gpext/registry.c +++ b/source3/libgpo/gpext/registry.c @@ -175,6 +175,10 @@ static NTSTATUS reg_parse_registry(TALLOC_CTX *mem_ctx, goto out; } + if (flags & GPO_INFO_FLAG_VERBOSE) { + NDR_PRINT_DEBUG(preg_file, &r); + } + if (!strequal(r.header.signature, "PReg")) { status = NT_STATUS_INVALID_PARAMETER; goto out; |