diff options
author | Günther Deschner <gd@samba.org> | 2010-06-05 02:39:11 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-06-07 10:33:36 +0200 |
commit | 4591fdbc18b0d7a1117de196675067e88bc341b7 (patch) | |
tree | 9eeb1685964f4ce048b05bcf8e16458b7a0b5142 /source3/rpc_server | |
parent | f7696717800e82193e2b1ab1b3467e117306a769 (diff) | |
download | samba-4591fdbc18b0d7a1117de196675067e88bc341b7.tar.gz samba-4591fdbc18b0d7a1117de196675067e88bc341b7.tar.bz2 samba-4591fdbc18b0d7a1117de196675067e88bc341b7.zip |
s3-privileges: use LUID defines from lsa IDL.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_lsa_nt.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index fffb912782..fce0565eac 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -1449,7 +1449,7 @@ NTSTATUS _lsa_EnumPrivs(pipes_struct *p, uint32 enum_context = *r->in.resume_handle; int num_privs = count_all_privileges(); struct lsa_PrivEntry *entries = NULL; - LUID_ATTR luid; + struct lsa_LUIDAttribute luid; /* remember that the enum_context starts at 0 and not 1 */ @@ -1873,9 +1873,7 @@ NTSTATUS _lsa_EnumPrivsAccount(pipes_struct *p, } for (i=0; i<privileges.count; i++) { - luid_attrs[i].luid.low = privileges.set[i].luid.low; - luid_attrs[i].luid.high = privileges.set[i].luid.high; - luid_attrs[i].attribute = privileges.set[i].attr; + luid_attrs[i] = privileges.set[i]; } priv_set->count = privileges.count; @@ -2086,7 +2084,7 @@ NTSTATUS _lsa_LookupPrivName(pipes_struct *p, return NT_STATUS_ACCESS_DENIED; } - name = luid_to_privilege_name((LUID *)r->in.luid); + name = luid_to_privilege_name(r->in.luid); if (!name) { return NT_STATUS_NO_SUCH_PRIVILEGE; } @@ -2401,7 +2399,7 @@ NTSTATUS _lsa_LookupPrivValue(pipes_struct *p, { struct lsa_info *info = NULL; const char *name = NULL; - LUID_ATTR priv_luid; + struct lsa_LUIDAttribute priv_luid; SE_PRIV mask; /* find the connection policy handle. */ |