From: Günther Deschner Date: Thu, 31 Jul 2008 19:09:00 +0000 (+0200) Subject: netapi: add NetUserModalsGet and NetUserModalsSet tests. X-Git-Tag: samba-3.3.0pre1~238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9c444a342968b539918c082b78af8640f8c87cd;p=thirdparty%2Fsamba.git netapi: add NetUserModalsGet and NetUserModalsSet tests. Guenther --- diff --git a/source/lib/netapi/tests/netuser.c b/source/lib/netapi/tests/netuser.c index ca2dc1a2f40..c50e3849510 100644 --- a/source/lib/netapi/tests/netuser.c +++ b/source/lib/netapi/tests/netuser.c @@ -152,6 +152,56 @@ NET_API_STATUS test_netuseradd(const char *hostname, return NetUserAdd(hostname, 1, (uint8_t *)&u1, &parm_err); } +static NET_API_STATUS test_netusermodals(struct libnetapi_ctx *ctx, + const char *hostname) +{ + NET_API_STATUS status; + struct USER_MODALS_INFO_0 *u0 = NULL; + struct USER_MODALS_INFO_0 *_u0 = NULL; + uint8_t *buffer = NULL; + uint32_t parm_err = 0; + uint32_t levels[] = { 0, 1, 2, 3 }; + int i = 0; + + for (i=0; i