summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcli/netlogon.c10
-rw-r--r--libcli/netlogon.h3
2 files changed, 12 insertions, 1 deletions
diff --git a/libcli/netlogon.c b/libcli/netlogon.c
index d9b01964af..882456824e 100644
--- a/libcli/netlogon.c
+++ b/libcli/netlogon.c
@@ -194,7 +194,17 @@ NTSTATUS push_nbt_netlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
data, mem_ctx,
&response->data.samlogon);
break;
+ case NETLOGON_RESPONSE2:
+ ndr_err = ndr_push_struct_blob(data, mem_ctx,
+ &response->data.response2,
+ (ndr_push_flags_fn_t)ndr_push_nbt_netlogon_response2);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ return ndr_map_error2ntstatus(ndr_err);
+ }
+ status = NT_STATUS_OK;
+ break;
}
+
return status;
}
diff --git a/libcli/netlogon.h b/libcli/netlogon.h
index 6ca3de3366..3e626ed40d 100644
--- a/libcli/netlogon.h
+++ b/libcli/netlogon.h
@@ -42,10 +42,11 @@ struct netlogon_samlogon_response
struct nbt_netlogon_response
{
- enum {NETLOGON_GET_PDC, NETLOGON_SAMLOGON} response_type;
+ enum {NETLOGON_GET_PDC, NETLOGON_SAMLOGON, NETLOGON_RESPONSE2} response_type;
union {
struct nbt_netlogon_response_from_pdc get_pdc;
struct netlogon_samlogon_response samlogon;
+ struct nbt_netlogon_response2 response2;
} data;
};