Author: mimir
Date: 2006-08-21 21:03:28 +0000 (Mon, 21 Aug 2006)
New Revision: 17671

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17671

Log:
Update the tests according to changes in libnet context.


rafal


Modified:
   branches/SAMBA_4_0/source/torture/libnet/domain.c
   branches/SAMBA_4_0/source/torture/libnet/libnet_user.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/libnet/domain.c
===================================================================
--- branches/SAMBA_4_0/source/torture/libnet/domain.c   2006-08-21 20:52:14 UTC 
(rev 17670)
+++ branches/SAMBA_4_0/source/torture/libnet/domain.c   2006-08-21 21:03:28 UTC 
(rev 17671)
@@ -88,7 +88,7 @@
        net_ctx = libnet_context_init(evt_ctx);
 
        status = torture_rpc_connection(mem_ctx, 
-                                       &net_ctx->samr_pipe,
+                                       &net_ctx->samr.pipe,
                                        &dcerpc_table_samr);
        
        if (!NT_STATUS_IS_OK(status)) {
@@ -105,7 +105,7 @@
                goto done;
        }
 
-       if (!test_cleanup(net_ctx->samr_pipe, mem_ctx, &h)) {
+       if (!test_cleanup(net_ctx->samr.pipe, mem_ctx, &h)) {
                ret = False;
                goto done;
        }

Modified: branches/SAMBA_4_0/source/torture/libnet/libnet_user.c
===================================================================
--- branches/SAMBA_4_0/source/torture/libnet/libnet_user.c      2006-08-21 
20:52:14 UTC (rev 17670)
+++ branches/SAMBA_4_0/source/torture/libnet/libnet_user.c      2006-08-21 
21:03:28 UTC (rev 17671)
@@ -227,7 +227,7 @@
                return False;
        }
 
-       if (!test_cleanup(ctx->samr_pipe, mem_ctx, &ctx->domain.handle, 
TEST_USERNAME)) {
+       if (!test_cleanup(ctx->samr.pipe, mem_ctx, &ctx->samr.handle, 
TEST_USERNAME)) {
                printf("cleanup failed\n");
                return False;
        }
@@ -313,7 +313,6 @@
                      comment, logon_script, profile_path, acct_expiry, 
allow_password_change,
                      force_password_change, last_logon, last_logoff, 
last_password_change };
        const int num_fields = 14;
-
        const char* logon_scripts[] = { "start_login.cmd", "login.bat", 
"start.cmd" };
        const char* home_dirs[] = { "\\\\srv\\home", "\\\\homesrv\\home\\user", 
"\\\\pdcsrv\\domain" };
        const char* home_drives[] = { "H:", "z:", "I:", "J:", "n:" };
@@ -486,11 +485,13 @@
        }
 
        ZERO_STRUCT(req);
+       req.in.domain_name = lp_workgroup();
        req.in.user_name = TEST_USERNAME;
-       req.in.domain_name = lp_workgroup();
-
+       
        printf("Testing change of a single field\n");
        set_test_changes(mem_ctx, &req, 1);
+       
+       req.in.account_name = "newlibnetuser";
 
        status = libnet_ModifyUser(ctx, mem_ctx, &req);
        if (!NT_STATUS_IS_OK(status)) {
@@ -498,7 +499,7 @@
                return False;
        }
 
-       if (!test_cleanup(ctx->samr_pipe, mem_ctx, &ctx->domain.handle, 
TEST_USERNAME)) {
+       if (!test_cleanup(ctx->samr.pipe, mem_ctx, &ctx->samr.handle, 
TEST_USERNAME)) {
                printf("cleanup failed\n");
                return False;
        }

Reply via email to