1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

libcli/netlogon: add NETLOGON_RESPONSE2 to push_nbt_netlogon_response().

Guenther
This commit is contained in:
Günther Deschner 2010-09-07 22:41:44 +02:00
parent c82bcef16d
commit daa948df2b
2 changed files with 12 additions and 1 deletions

View File

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

View File

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