diff options
author | Günther Deschner <gd@samba.org> | 2008-08-27 11:55:57 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-08-29 13:57:58 +0200 |
commit | d304d17f2e21abdeb4adac15870026a6c3f86249 (patch) | |
tree | 8c7b0a211c09bfcda435b9143d4e25a0b6a5373c /source3/lib | |
parent | 3967936a4b38252ee9821608da637bb309479201 (diff) | |
download | samba-d304d17f2e21abdeb4adac15870026a6c3f86249.tar.gz samba-d304d17f2e21abdeb4adac15870026a6c3f86249.tar.bz2 samba-d304d17f2e21abdeb4adac15870026a6c3f86249.zip |
netapi: fix NetUserSetInfo return code for currently unsupported levels.
Guenther
(This used to be commit 10bd55d68a91b76e82c3ba1d113729f97830a46a)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/netapi/user.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c index 78a95fd10b..25871563ce 100644 --- a/source3/lib/netapi/user.c +++ b/source3/lib/netapi/user.c @@ -1388,9 +1388,22 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx, user_mask = SAMR_USER_ACCESS_SET_ATTRIBUTES | SAMR_USER_ACCESS_GET_GROUPS; break; - default: + case 1: + case 2: + case 3: + case 4: + case 21: + case 22: + case 1005: + case 1008: + case 1010: + case 1017: + case 1020: werr = WERR_NOT_SUPPORTED; goto done; + default: + werr = WERR_UNKNOWN_LEVEL; + goto done; } werr = libnetapi_open_pipe(ctx, r->in.server_name, |