svn commit: samba r17449 - in branches/SAMBA_4_0/source/torture/libnet: .

mimir at samba.org mimir at samba.org
Mon Aug 7 20:30:59 GMT 2006


Author: mimir
Date: 2006-08-07 20:30:58 +0000 (Mon, 07 Aug 2006)
New Revision: 17449

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

Log:
Add another field to the test before expanding the whole test
to more complex form.


rafal


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


Changeset:
Modified: branches/SAMBA_4_0/source/torture/libnet/libnet_user.c
===================================================================
--- branches/SAMBA_4_0/source/torture/libnet/libnet_user.c	2006-08-07 20:29:18 UTC (rev 17448)
+++ branches/SAMBA_4_0/source/torture/libnet/libnet_user.c	2006-08-07 20:30:58 UTC (rev 17449)
@@ -296,6 +296,7 @@
 {
 	NTSTATUS status;
 	const char *binding;
+	struct dcerpc_binding *bind;
 	struct dcerpc_pipe *p;
 	TALLOC_CTX *prep_mem_ctx, *mem_ctx;
 	struct policy_handle h;
@@ -303,6 +304,7 @@
 	const char *name = TEST_USERNAME;
 	struct libnet_context *ctx;
 	struct libnet_ModifyUser req;
+	struct timeval allow_pass_chg;
 	BOOL ret = True;
 
 	prep_mem_ctx = talloc_init("prepare test_deleteuser");
@@ -331,10 +333,21 @@
 
 	mem_ctx = talloc_init("test_modifyuser");
 
+	status = dcerpc_parse_binding(mem_ctx, binding, &bind);
+	if (!NT_STATUS_IS_OK(status)) {
+		ret = False;
+		goto done;
+	}
+
 	ZERO_STRUCT(req);
 	req.in.user_name = TEST_USERNAME;
 	req.in.domain_name = lp_workgroup();
 	req.in.account_name = TEST_CHANGEDUSERNAME;
+	req.in.logon_script = "start_login.cmd";
+	
+	if (gettimeofday(&allow_pass_chg, NULL) == 0) {
+		req.in.allow_password_change = &allow_pass_chg;
+	}
 
 	status = libnet_ModifyUser(ctx, mem_ctx, &req);
 	if (!NT_STATUS_IS_OK(status)) {



More information about the samba-cvs mailing list