summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-08-27 01:40:46 +0200
committerGünther Deschner <gd@samba.org>2008-08-29 13:57:56 +0200
commitdaf162ce0cb6ee1d6bb859918ad2a90bf2a51f13 (patch)
treed3cabb1f7b0cefdf29d6d597f6426e9dcdd45199 /source3/lib/netapi
parent3029122f5e20671de5c440962c2a3aee3f661674 (diff)
downloadsamba-daf162ce0cb6ee1d6bb859918ad2a90bf2a51f13.tar.gz
samba-daf162ce0cb6ee1d6bb859918ad2a90bf2a51f13.tar.bz2
samba-daf162ce0cb6ee1d6bb859918ad2a90bf2a51f13.zip
netapi: support level 1006 in NetUserSetInfo.
Guenther (This used to be commit 9c5ea4e8e8deb0a2be5f894fb5de96f0dea48120)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/user.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index b7581957c4..35e4d7a9a9 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -118,6 +118,7 @@ static NTSTATUS construct_USER_INFO_X(uint32_t level,
struct USER_INFO_1 *u1 = NULL;
struct USER_INFO_2 *u2 = NULL;
struct USER_INFO_1003 *u1003 = NULL;
+ struct USER_INFO_1006 *u1006 = NULL;
struct USER_INFO_1007 *u1007 = NULL;
struct USER_INFO_1009 *u1009 = NULL;
struct USER_INFO_1011 *u1011 = NULL;
@@ -176,6 +177,10 @@ static NTSTATUS construct_USER_INFO_X(uint32_t level,
u1003 = (struct USER_INFO_1003 *)buffer;
uX->usriX_password = u1003->usri1003_password;
break;
+ case 1006:
+ u1006 = (struct USER_INFO_1006 *)buffer;
+ uX->usriX_home_dir = u1006->usri1006_home_dir;
+ break;
case 1007:
u1007 = (struct USER_INFO_1007 *)buffer;
uX->usriX_comment = u1007->usri1007_comment;
@@ -1327,6 +1332,7 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx,
case 1003:
user_mask = SAMR_USER_ACCESS_SET_PASSWORD;
break;
+ case 1006:
case 1007:
case 1009:
case 1011: