[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha7-2341-gfbe85c7
Günther Deschner
gd at samba.org
Tue Jun 16 23:31:44 GMT 2009
The branch, master has been updated
via fbe85c70ef0aed6ff3c20585ae1f001c0417665c (commit)
from bdd214b38c9c97550cf8122f75c6a14e0b0397d0 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit fbe85c70ef0aed6ff3c20585ae1f001c0417665c
Author: Günther Deschner <gd at samba.org>
Date: Wed Jun 17 01:30:22 2009 +0200
s4-smbtorture: add test for NetUserSetInfo level 0 (user rename).
Guenther
-----------------------------------------------------------------------
Summary of changes:
source4/torture/libnetapi/libnetapi_user.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source4/torture/libnetapi/libnetapi_user.c b/source4/torture/libnetapi/libnetapi_user.c
index 7269988..2731cbd 100644
--- a/source4/torture/libnetapi/libnetapi_user.c
+++ b/source4/torture/libnetapi/libnetapi_user.c
@@ -349,6 +349,7 @@ bool torture_libnetapi_user(struct torture_context *tctx)
uint32_t getgr_levels[] = { 0, 1 };
int i;
+ struct USER_INFO_0 u0;
struct USER_INFO_1007 u1007;
uint32_t parm_err = 0;
@@ -430,11 +431,21 @@ bool torture_libnetapi_user(struct torture_context *tctx)
}
}
+ torture_comment(tctx, "testing NetUserSetInfo level 0\n");
+
+ u0.usri0_name = TORTURE_TEST_USER2;
+
+ status = NetUserSetInfo(hostname, TORTURE_TEST_USER, 0, (uint8_t *)&u0, &parm_err);
+ if (status) {
+ NETAPI_STATUS(tctx, ctx, status, "NetUserSetInfo");
+ goto out;
+ }
+
/* delete */
torture_comment(tctx, "testing NetUserDel\n");
- status = NetUserDel(hostname, TORTURE_TEST_USER);
+ status = NetUserDel(hostname, TORTURE_TEST_USER2);
if (status) {
NETAPI_STATUS(tctx, ctx, status, "NetUserDel");
goto out;
@@ -442,7 +453,7 @@ bool torture_libnetapi_user(struct torture_context *tctx)
/* should not exist anymore */
- status = NetUserGetInfo(hostname, TORTURE_TEST_USER, 0, &buffer);
+ status = NetUserGetInfo(hostname, TORTURE_TEST_USER2, 0, &buffer);
if (status == 0) {
NETAPI_STATUS(tctx, ctx, status, "NetUserGetInfo");
status = -1;
--
Samba Shared Repository
More information about the samba-cvs
mailing list