diff options
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/localgroup.c | 2 | ||||
-rw-r--r-- | source3/lib/netapi/user.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/netapi/localgroup.c b/source3/lib/netapi/localgroup.c index dd0f8d2097..f8832328fe 100644 --- a/source3/lib/netapi/localgroup.c +++ b/source3/lib/netapi/localgroup.c @@ -934,7 +934,7 @@ static NTSTATUS libnetapi_lsa_lookup_names3(TALLOC_CTX *mem_ctx, status = rpccli_lsa_open_policy2(lsa_pipe, mem_ctx, false, - STD_RIGHT_READ_CONTROL_ACCESS | + SEC_STD_READ_CONTROL | LSA_POLICY_VIEW_LOCAL_INFORMATION | LSA_POLICY_LOOKUP_NAMES, &lsa_handle); diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c index e291193fa2..c586d11ceb 100644 --- a/source3/lib/netapi/user.c +++ b/source3/lib/netapi/user.c @@ -1770,8 +1770,8 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx, SAMR_USER_ACCESS_GET_GROUPS; break; case 3: - user_mask = STD_RIGHT_READ_CONTROL_ACCESS | - STD_RIGHT_WRITE_DAC_ACCESS | + user_mask = SEC_STD_READ_CONTROL | + SEC_STD_WRITE_DAC | SAMR_USER_ACCESS_GET_GROUPS | SAMR_USER_ACCESS_SET_PASSWORD | SAMR_USER_ACCESS_SET_ATTRIBUTES | |