libcli/netlogon: add NETLOGON_RESPONSE2 to push_nbt_netlogon_response().
authorGünther Deschner <gd@samba.org>
Tue, 7 Sep 2010 20:41:44 +0000 (22:41 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 9 Sep 2010 21:07:10 +0000 (23:07 +0200)
Guenther

libcli/netlogon.c
libcli/netlogon.h

index d9b01964af130413c658dda5110e838d7cf5c1f2..882456824eaccad8c42fb1d7a61a60c56e3788ad 100644 (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;
 }
 
index 6ca3de3366ea35ddc1d950577957981b8fa49aa8..3e626ed40dc1760b7abed8c70d7ad1c21be47ab4 100644 (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;
 };