diff options
author | Volker Lendecke <vl@samba.org> | 2018-12-14 21:48:48 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-12-20 23:40:25 +0100 |
commit | fa6690e90cdbbb4af2f0d6abedc4fdb5574a4571 (patch) | |
tree | cba0ddea20354d53f0ba752369a09cc83c8b2e59 /source3/rpc_server | |
parent | 31da287b1c8134227ad9371a922881a7b99dba87 (diff) | |
download | samba-fa6690e90cdbbb4af2f0d6abedc4fdb5574a4571.tar.gz |
lsasrv: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/lsa/srv_lsa_nt.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c index f61efbb9fc8..57bfc596005 100644 --- a/source3/rpc_server/lsa/srv_lsa_nt.c +++ b/source3/rpc_server/lsa/srv_lsa_nt.c @@ -2937,6 +2937,7 @@ NTSTATUS _lsa_EnumPrivsAccount(struct pipes_struct *p, struct lsa_info *info=NULL; PRIVILEGE_SET *privileges; struct lsa_PrivilegeSet *priv_set = NULL; + struct dom_sid_buf buf; /* find the connection policy handle. */ if (!find_policy_by_hnd(p, r->in.handle, (void **)(void *)&info)) @@ -2960,7 +2961,7 @@ NTSTATUS _lsa_EnumPrivsAccount(struct pipes_struct *p, } DEBUG(10,("_lsa_EnumPrivsAccount: %s has %d privileges\n", - sid_string_dbg(&info->sid), + dom_sid_str_buf(&info->sid, &buf), privileges->count)); priv_set->count = privileges->count; @@ -3093,8 +3094,9 @@ NTSTATUS _lsa_AddPrivilegesToAccount(struct pipes_struct *p, set = r->in.privs; if ( !grant_privilege_set( &info->sid, set ) ) { + struct dom_sid_buf buf; DEBUG(3,("_lsa_AddPrivilegesToAccount: grant_privilege_set(%s) failed!\n", - sid_string_dbg(&info->sid) )); + dom_sid_str_buf(&info->sid, &buf))); return NT_STATUS_NO_SUCH_PRIVILEGE; } @@ -3127,8 +3129,9 @@ NTSTATUS _lsa_RemovePrivilegesFromAccount(struct pipes_struct *p, set = r->in.privs; if ( !revoke_privilege_set( &info->sid, set) ) { + struct dom_sid_buf buf; DEBUG(3,("_lsa_RemovePrivilegesFromAccount: revoke_privilege(%s) failed!\n", - sid_string_dbg(&info->sid) )); + dom_sid_str_buf(&info->sid, &buf))); return NT_STATUS_NO_SUCH_PRIVILEGE; } @@ -3424,6 +3427,7 @@ NTSTATUS _lsa_EnumAccountRights(struct pipes_struct *p, NTSTATUS status; struct lsa_info *info = NULL; PRIVILEGE_SET *privileges; + struct dom_sid_buf buf; /* find the connection policy handle. */ @@ -3451,7 +3455,8 @@ NTSTATUS _lsa_EnumAccountRights(struct pipes_struct *p, } DEBUG(10,("_lsa_EnumAccountRights: %s has %d privileges\n", - sid_string_dbg(r->in.sid), privileges->count)); + dom_sid_str_buf(r->in.sid, &buf), + privileges->count)); status = init_lsa_right_set(p->mem_ctx, r->out.rights, privileges); |