netlogon_creds_cli: Print netlogon_creds_CredentialState
authorVolker Lendecke <vl@samba.org>
Sun, 10 Sep 2017 17:11:21 +0000 (19:11 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 25 Sep 2017 07:43:12 +0000 (09:43 +0200)
Add some debugging for the tdb records

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/auth/netlogon_creds_cli.c

index 7a6c630b78c36df9fb23b1616eb13be3e28c95c6..178d9c88b92029ee33aa3c602b4d7c5a03c8febc 100644 (file)
@@ -495,6 +495,10 @@ static void netlogon_creds_cli_fetch_parser(TDB_DATA key, TDB_DATA data,
                return;
        }
 
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_DEBUG(netlogon_creds_CredentialState, state->creds);
+       }
+
        tmp_flags = state->creds->negotiate_flags;
        tmp_flags &= state->required_flags;
        if (tmp_flags != state->required_flags) {
@@ -596,6 +600,10 @@ NTSTATUS netlogon_creds_cli_store(struct netlogon_creds_cli_context *context,
                return NT_STATUS_INVALID_PAGE_PROTECTION;
        }
 
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_DEBUG(netlogon_creds_CredentialState, creds);
+       }
+
        ndr_err = ndr_push_struct_blob(&blob, creds, creds,
                (ndr_push_flags_fn_t)ndr_push_netlogon_creds_CredentialState);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {