summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-08-28 00:23:51 +0200
committerGünther Deschner <gd@samba.org>2008-08-29 13:58:02 +0200
commitff21cceecc66c0aa86557e99fbcbd825e3d9454c (patch)
tree209c81d06cb846c42c2345ba5e4854325fc0c898 /source3/lib/netapi
parent1283d081b2f9e15a1cefffa00f974039d96926de (diff)
downloadsamba-ff21cceecc66c0aa86557e99fbcbd825e3d9454c.tar.gz
samba-ff21cceecc66c0aa86557e99fbcbd825e3d9454c.tar.bz2
samba-ff21cceecc66c0aa86557e99fbcbd825e3d9454c.zip
netapi: better point out what levels are unknown in NetUserEnum.
Guenther (This used to be commit d85182aa54b936f8c85c6dcd10d5df613de4bb21)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index 47053f29af..593434f999 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -854,8 +854,9 @@ WERROR NetUserEnum_r(struct libnetapi_ctx *ctx,
case 2:
case 3:
case 11:
- default:
return WERR_NOT_SUPPORTED;
+ default:
+ return WERR_UNKNOWN_LEVEL;
}
werr = libnetapi_open_pipe(ctx, r->in.server_name,