s3-privs Rework access_check_object() to take two privileges
authorAndrew Bartlett <abartlet@samba.org>
Mon, 30 Aug 2010 03:30:38 +0000 (13:30 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 Sep 2010 04:46:00 +0000 (14:46 +1000)
commitb2a77a1eba8b689d0a6ddbbbef6087e6c48d67ed
tree213a35416300d0a2058dda5e46172a25f7eed93d
parent99688e536174ffe990caefb1fb6bdd1082478c50
s3-privs Rework access_check_object() to take two privileges

This allows the privileges bitmap to be used only when setting
privileges, and uses an the LUID constant for all 'does this user
have this privilege' operations.

The advantage is that we now only need one API to determine if a
token has a privilege, and much less code needs to know what type
is used for the underlying bitmap.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source3/include/proto.h
source3/rpc_server/srv_lsa_nt.c
source3/rpc_server/srv_samr_nt.c