diff options
author | Günther Deschner <gd@samba.org> | 2008-08-27 01:15:21 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-08-29 13:57:55 +0200 |
commit | bd450a7c3a0cd20a940ce631fdb2a7724c0cdd68 (patch) | |
tree | 514cde1f793dd27cc0010a70b823178ce03d07e6 /source3/lib/netapi | |
parent | fac81ffb42245d274e5f44cacf9e1d5b245f7516 (diff) | |
download | samba-bd450a7c3a0cd20a940ce631fdb2a7724c0cdd68.tar.gz samba-bd450a7c3a0cd20a940ce631fdb2a7724c0cdd68.tar.bz2 samba-bd450a7c3a0cd20a940ce631fdb2a7724c0cdd68.zip |
netapi: support level 1009 in NetUserSetInfo.
Guenther
(This used to be commit 3a6c784284c8eb7e2b05afa6db16b27ee26ff352)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/user.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c index 6737012ed0..70bb353317 100644 --- a/source3/lib/netapi/user.c +++ b/source3/lib/netapi/user.c @@ -116,6 +116,7 @@ static NTSTATUS construct_USER_INFO_X(uint32_t level, struct USER_INFO_2 *u2 = NULL; struct USER_INFO_1003 *u1003 = NULL; struct USER_INFO_1007 *u1007 = NULL; + struct USER_INFO_1009 *u1009 = NULL; struct USER_INFO_1011 *u1011 = NULL; if (!buffer || !uX) { @@ -175,6 +176,10 @@ static NTSTATUS construct_USER_INFO_X(uint32_t level, u1007 = (struct USER_INFO_1007 *)buffer; uX->usriX_comment = u1007->usri1007_comment; break; + case 1009: + u1009 = (struct USER_INFO_1009 *)buffer; + uX->usriX_script_path = u1009->usri1009_script_path; + break; case 1011: u1011 = (struct USER_INFO_1011 *)buffer; uX->usriX_full_name = u1011->usri1011_full_name; @@ -1313,6 +1318,7 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx, user_mask = SAMR_USER_ACCESS_SET_PASSWORD; break; case 1007: + case 1009: case 1011: user_mask = SAMR_USER_ACCESS_SET_ATTRIBUTES; break; |