summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-12-10 15:29:14 -0800
committerJeremy Allison <jra@samba.org>2008-12-10 15:29:14 -0800
commitc4c6e1e463fe5ab8bb0e3e649d76ac5ec80900de (patch)
tree244e3cc268dc10fe6d8bdf4ac9b300a11412e88d /source3
parent1c6a87604f535f3e78f0798bb8b2a6408f2c93d9 (diff)
downloadsamba-c4c6e1e463fe5ab8bb0e3e649d76ac5ec80900de.tar.gz
samba-c4c6e1e463fe5ab8bb0e3e649d76ac5ec80900de.tar.bz2
samba-c4c6e1e463fe5ab8bb0e3e649d76ac5ec80900de.zip
Fix usrmgr opening a user object as non-root.
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 25bbc6eeac..f942476fe5 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -2636,7 +2636,7 @@ NTSTATUS _samr_QueryUserInfo(pipes_struct *p,
return NT_STATUS_INVALID_HANDLE;
status = access_check_samr_function(info->acc_granted,
- SAMR_DOMAIN_ACCESS_OPEN_ACCOUNT,
+ SAMR_USER_ACCESS_GET_ATTRIBUTES,
"_samr_QueryUserInfo");
if (!NT_STATUS_IS_OK(status)) {
return status;