summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-08-27 19:28:34 +0200
committerGünther Deschner <gd@samba.org>2008-08-29 13:58:01 +0200
commit0f928eb2cc0b7fe383cea28eb833d80f69545659 (patch)
treee3ce2169e1b496ecb0ca74784c025af209694d0c /source3/lib/netapi
parentfea81f9056558a73608acbf5170ace0b7d4c1a8f (diff)
downloadsamba-0f928eb2cc0b7fe383cea28eb833d80f69545659.tar.gz
samba-0f928eb2cc0b7fe383cea28eb833d80f69545659.tar.bz2
samba-0f928eb2cc0b7fe383cea28eb833d80f69545659.zip
netapi: give more correct error code in NetUserGetInfo.
Guenther (This used to be commit c66651b6fb023e5b0952fd135589eb955f51fa12)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/user.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index 887ab94002..47053f29af 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -1263,14 +1263,20 @@ WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx,
switch (r->in.level) {
case 0:
- /* case 1: */
case 10:
case 20:
case 23:
break;
- default:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 11:
werr = WERR_NOT_SUPPORTED;
goto done;
+ default:
+ werr = WERR_UNKNOWN_LEVEL;
+ goto done;
}
werr = libnetapi_open_pipe(ctx, r->in.server_name,