s4-netlogon: merge netr_AccountDeltas from s3 idl.
authorGünther Deschner <gd@samba.org>
Tue, 28 Oct 2008 01:34:02 +0000 (02:34 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 29 Oct 2008 07:57:28 +0000 (08:57 +0100)
Guenther

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

index 87ddd4704cb70aea9c2d8c34ff09abac40275e98..5ceab4afafc29a3061c703870fd8a2da139d1f91 100644 (file)
@@ -767,15 +767,15 @@ interface netlogon
                [in,unique] [string,charset(UTF16)] uint16 *logon_server,
                [in]     [string,charset(UTF16)] uint16 computername[],
                [in]     netr_Authenticator credential,
-               [in,out] netr_Authenticator return_authenticator,
+               [in,out,ref] netr_Authenticator *return_authenticator,
                [in]     netr_UAS_INFO_0 uas,
                [in]     uint32 count,
                [in]     uint32 level,
                [in]     uint32 buffersize,
-               [out,subcontext(4)] netr_AccountBuffer buffer,
-               [out]    uint32 count_returned,
-               [out]    uint32 total_entries,
-               [out]    netr_UAS_INFO_0 recordid
+               [out,ref,subcontext(4)] netr_AccountBuffer *buffer,
+               [out,ref]    uint32 *count_returned,
+               [out,ref]    uint32 *total_entries,
+               [out,ref]    netr_UAS_INFO_0 *recordid
                );
 
 
index 6580761aec11a73c12204e54ce9d3faf5341987e..5eeae67a04858e051238c8f61f7f76229ac19301 100644 (file)
@@ -816,18 +816,31 @@ static bool test_AccountDeltas(struct torture_context *tctx,
        struct netr_AccountDeltas r;
        struct creds_CredentialState *creds;
 
+       struct netr_AccountBuffer buffer;
+       uint32_t count_returned = 0;
+       uint32_t total_entries = 0;
+       struct netr_UAS_INFO_0 recordid;
+       struct netr_Authenticator return_authenticator;
+
        if (!test_SetupCredentials(p, tctx, machine_credentials, &creds)) {
                return false;
        }
 
+       ZERO_STRUCT(return_authenticator);
+
        r.in.logon_server = talloc_asprintf(tctx, "\\\\%s", dcerpc_server_name(p));
        r.in.computername = TEST_MACHINE_NAME;
-       ZERO_STRUCT(r.in.return_authenticator);
+       r.in.return_authenticator = &return_authenticator;
        creds_client_authenticator(creds, &r.in.credential);
        ZERO_STRUCT(r.in.uas);
        r.in.count=10;
        r.in.level=0;
        r.in.buffersize=100;
+       r.out.buffer = &buffer;
+       r.out.count_returned = &count_returned;
+       r.out.total_entries = &total_entries;
+       r.out.recordid = &recordid;
+       r.out.return_authenticator = &return_authenticator;
 
        /* w2k3 returns "NOT IMPLEMENTED" for this call */
        status = dcerpc_netr_AccountDeltas(p, tctx, &r);