summaryrefslogtreecommitdiff
path: root/source3/libgpo
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-12-20 17:23:22 +0100
committerAndreas Schneider <asn@samba.org>2014-01-07 16:59:39 +0100
commitf1685427ed26da39e3d4ad5be7406c61d7cd1179 (patch)
tree65d5fe9f00a36dcb683eee00c2b143cc1ccd2b8a /source3/libgpo
parent88a0c401fce6fb3cde13b532a5a9972f40876421 (diff)
downloadsamba-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>
Diffstat (limited to 'source3/libgpo')
-rw-r--r--source3/libgpo/gpext/registry.c4
1 files changed, 4 insertions, 0 deletions
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;