From: Günther Deschner Date: Wed, 27 Aug 2008 09:55:57 +0000 (+0200) Subject: netapi: fix NetUserSetInfo return code for currently unsupported levels. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10bd55d68a91b76e82c3ba1d113729f97830a46a;p=thirdparty%2Fsamba.git netapi: fix NetUserSetInfo return code for currently unsupported levels. Guenther --- diff --git a/source/lib/netapi/user.c b/source/lib/netapi/user.c index 78a95fd10bf..25871563ced 100644 --- a/source/lib/netapi/user.c +++ b/source/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,