mirror of
https://github.com/samba-team/samba.git
synced 2025-02-14 01:57:53 +03:00
netapi: give more correct error code in NetUserGetInfo.
Guenther (This used to be commit c66651b6fb023e5b0952fd135589eb955f51fa12)
This commit is contained in:
parent
fea81f9056
commit
0f928eb2cc
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user