From d847df46cd9ae7ae3a412a8c37c66163a0c5a5b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 16 Jun 2009 15:00:20 +0200 Subject: [PATCH] s3-netapi: Fix Bug #6451: net/libnetapi user rename using wrong access bits. Guenther (cherry picked from commit 29b8e08b83eeb0ab7d33bf46981cdbad8c35dc9b) (cherry picked from commit adecea9ce358e30d1b3847f3931479e6f7b42592) --- source/lib/netapi/user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/lib/netapi/user.c b/source/lib/netapi/user.c index bddd16127f8..c989e180e6e 100644 --- a/source/lib/netapi/user.c +++ b/source/lib/netapi/user.c @@ -1771,6 +1771,8 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx, switch (r->in.level) { case 0: + user_mask = SAMR_USER_ACCESS_SET_ATTRIBUTES; + break; case 1003: user_mask = SAMR_USER_ACCESS_SET_PASSWORD; break; -- 2.11.4.GIT