diff options
author | Günther Deschner <gd@samba.org> | 2010-09-07 22:41:44 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-09-09 23:07:10 +0200 |
commit | daa948df2bf23f15bcdb4df170306ef71d952e7c (patch) | |
tree | 7a8d06103ffaaf85147392ccc6cdaafdbdcb3297 /libcli | |
parent | c82bcef16d386c846410dbe2e79f9fad619fc4ea (diff) | |
download | samba-daa948df2bf23f15bcdb4df170306ef71d952e7c.tar.gz samba-daa948df2bf23f15bcdb4df170306ef71d952e7c.tar.bz2 samba-daa948df2bf23f15bcdb4df170306ef71d952e7c.zip |
libcli/netlogon: add NETLOGON_RESPONSE2 to push_nbt_netlogon_response().
Guenther
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/netlogon.c | 10 | ||||
-rw-r--r-- | libcli/netlogon.h | 3 |
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; }; |