1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-07 00:58:40 +03:00

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>
This commit is contained in:
Günther Deschner 2013-12-20 17:23:22 +01:00 committed by Andreas Schneider
parent 88a0c401fc
commit f1685427ed
2 changed files with 5 additions and 1 deletions

View File

@ -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];

View File

@ -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;