summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-08-27 12:12:10 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 18:46:08 +1000
commit33ce8633d6a5e5cc54209c92397025114f0a46ea (patch)
tree8e2594eb87c8952cd3fdf3dc53af56e8b4b9501b /source3
parent3c93d1ecbf563f46c4aa5fe9f0c5f3ee053f702d (diff)
downloadsamba-33ce8633d6a5e5cc54209c92397025114f0a46ea.tar.gz
samba-33ce8633d6a5e5cc54209c92397025114f0a46ea.tar.bz2
samba-33ce8633d6a5e5cc54209c92397025114f0a46ea.zip
s3-lsa Use sec_privilege_id() to lookup name to LUID
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_lsa_nt.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index 663f6fec9f..6eee899530 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -2400,8 +2400,6 @@ NTSTATUS _lsa_LookupPrivValue(struct pipes_struct *p,
{
struct lsa_info *info = NULL;
const char *name = NULL;
- struct lsa_LUIDAttribute priv_luid;
- uint64_t mask;
/* find the connection policy handle. */
@@ -2419,14 +2417,11 @@ NTSTATUS _lsa_LookupPrivValue(struct pipes_struct *p,
DEBUG(10,("_lsa_lookup_priv_value: name = %s\n", name));
- if ( !se_priv_from_name( name, &mask ) )
+ r->out.luid->low = sec_privilege_id(name);
+ r->out.luid->high = 0;
+ if (r->out.luid->low == -1) {
return NT_STATUS_NO_SUCH_PRIVILEGE;
-
- priv_luid = get_privilege_luid( &mask );
-
- r->out.luid->low = priv_luid.luid.low;
- r->out.luid->high = priv_luid.luid.high;
-
+ }
return NT_STATUS_OK;
}