Fix usrmgr opening a user object as non-root.
authorJeremy Allison <jra@samba.org>
Wed, 10 Dec 2008 23:29:14 +0000 (15:29 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 10 Dec 2008 23:29:14 +0000 (15:29 -0800)
Jeremy.

source3/rpc_server/srv_samr_nt.c

index 25bbc6e..f942476 100644 (file)
@@ -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;