From 0f928eb2cc0b7fe383cea28eb833d80f69545659 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 19:28:34 +0200 Subject: netapi: give more correct error code in NetUserGetInfo. Guenther (This used to be commit c66651b6fb023e5b0952fd135589eb955f51fa12) --- source3/lib/netapi/user.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source3/lib') 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, -- cgit