git.samba.org
/
ab
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a21ec57
)
netapi: fix NetUserSetInfo return code for currently unsupported levels.
author
Günther Deschner
<gd@samba.org>
Wed, 27 Aug 2008 09:55:57 +0000
(11:55 +0200)
committer
Günther Deschner
<gd@samba.org>
Fri, 29 Aug 2008 11:57:58 +0000
(13:57 +0200)
Guenther
source/lib/netapi/user.c
patch
|
blob
|
history
diff --git
a/source/lib/netapi/user.c
b/source/lib/netapi/user.c
index 78a95fd10bf37b37178138721432670f3a728f9b..25871563ced023374348eb3b190e3fdb09cebccb 100644
(file)
--- 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,