s4-smbtorture: fix test_LogonUasLogon.
authorGünther Deschner <gd@samba.org>
Tue, 28 Oct 2008 14:18:53 +0000 (15:18 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 28 Oct 2008 22:40:44 +0000 (23:40 +0100)
Guenther

source3/librpc/idl/netlogon.idl
source4/librpc/idl/netlogon.idl
source4/torture/rpc/netlogon.c

index ea8319b6202f7cb98f2d63d8d942bf4a08a6979d..d6c3bd43747dfd392cdeff626e52a72f5e98c713 100644 (file)
@@ -46,7 +46,7 @@ interface netlogon
                [in,unique] [string,charset(UTF16)] uint16 *server_name,
                [in]   [string,charset(UTF16)] uint16 account_name[],
                [in]   [string,charset(UTF16)] uint16 workstation[],
                [in,unique] [string,charset(UTF16)] uint16 *server_name,
                [in]   [string,charset(UTF16)] uint16 account_name[],
                [in]   [string,charset(UTF16)] uint16 workstation[],
-               [out,ref]  netr_UasInfo *info
+               [out,ref]  netr_UasInfo **info
                );
 
 
                );
 
 
index f547ec7493639c4e5d4db8192bdbcebdac0f355b..b3ff5435c29d6ee703f5523fd7e645aa50ae0840 100644 (file)
@@ -46,7 +46,7 @@ interface netlogon
                [in,unique] [string,charset(UTF16)] uint16 *server_name,
                [in]   [string,charset(UTF16)] uint16 account_name[],
                [in]   [string,charset(UTF16)] uint16 workstation[],
                [in,unique] [string,charset(UTF16)] uint16 *server_name,
                [in]   [string,charset(UTF16)] uint16 account_name[],
                [in]   [string,charset(UTF16)] uint16 workstation[],
-               [out,ref]  netr_UasInfo *info
+               [out,ref]  netr_UasInfo **info
                );
 
 
                );
 
 
index c2e12ec01dbb1425f01d614185ba9a9e23ebea5e..19163e931a17ed4deb0f58f7f07e45e23415f3f7 100644 (file)
@@ -42,10 +42,12 @@ static bool test_LogonUasLogon(struct torture_context *tctx,
 {
        NTSTATUS status;
        struct netr_LogonUasLogon r;
 {
        NTSTATUS status;
        struct netr_LogonUasLogon r;
+       struct netr_UasInfo *info = NULL;
 
        r.in.server_name = NULL;
        r.in.account_name = cli_credentials_get_username(cmdline_credentials);
        r.in.workstation = TEST_MACHINE_NAME;
 
        r.in.server_name = NULL;
        r.in.account_name = cli_credentials_get_username(cmdline_credentials);
        r.in.workstation = TEST_MACHINE_NAME;
+       r.out.info = &info;
 
        status = dcerpc_netr_LogonUasLogon(p, tctx, &r);
        torture_assert_ntstatus_ok(tctx, status, "LogonUasLogon");
 
        status = dcerpc_netr_LogonUasLogon(p, tctx, &r);
        torture_assert_ntstatus_ok(tctx, status, "LogonUasLogon");