Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
struct lsa_info *info=NULL;
PRIVILEGE_SET *privileges;
struct lsa_PrivilegeSet *priv_set = NULL;
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))
/* find the connection policy handle. */
if (!find_policy_by_hnd(p, r->in.handle, (void **)(void *)&info))
}
DEBUG(10,("_lsa_EnumPrivsAccount: %s has %d privileges\n",
}
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;
privileges->count));
priv_set->count = privileges->count;
set = r->in.privs;
if ( !grant_privilege_set( &info->sid, set ) ) {
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",
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;
}
return NT_STATUS_NO_SUCH_PRIVILEGE;
}
set = r->in.privs;
if ( !revoke_privilege_set( &info->sid, set) ) {
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",
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;
}
return NT_STATUS_NO_SUCH_PRIVILEGE;
}
NTSTATUS status;
struct lsa_info *info = NULL;
PRIVILEGE_SET *privileges;
NTSTATUS status;
struct lsa_info *info = NULL;
PRIVILEGE_SET *privileges;
+ struct dom_sid_buf buf;
/* find the connection policy handle. */
/* find the connection policy handle. */
}
DEBUG(10,("_lsa_EnumAccountRights: %s has %d privileges\n",
}
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);
status = init_lsa_right_set(p->mem_ctx, r->out.rights, privileges);