*privileges = 0;
for ( i=0; i<scount; i++ ) {
+ struct dom_sid_buf buf;
+
/* don't add unless we actually have a privilege assigned */
if ( !get_privileges( &slist[i], &mask ) )
continue;
DEBUG(5,("get_privileges_for_sids: sid = %s\nPrivilege "
- "set: 0x%llx\n", sid_string_dbg(&slist[i]),
+ "set: 0x%llx\n",
+ dom_sid_str_buf(&slist[i], &buf),
(unsigned long long)mask));
*privileges |= mask;
static bool grant_privilege_bitmap(const struct dom_sid *sid, const uint64_t priv_mask)
{
uint64_t old_mask, new_mask;
+ struct dom_sid_buf buf;
ZERO_STRUCT( old_mask );
ZERO_STRUCT( new_mask );
new_mask |= priv_mask;
- DEBUG(10,("grant_privilege: %s\n", sid_string_dbg(sid)));
+ DEBUG(10,("grant_privilege: %s\n", dom_sid_str_buf(sid, &buf)));
DEBUGADD( 10, ("original privilege mask: 0x%llx\n", (unsigned long long)new_mask));
static bool revoke_privilege_bitmap(const struct dom_sid *sid, const uint64_t priv_mask)
{
uint64_t mask;
+ struct dom_sid_buf buf;
/* if the user has no privileges, then we can't revoke any */
if ( !get_privileges( sid, &mask ) )
return True;
- DEBUG(10,("revoke_privilege: %s\n", sid_string_dbg(sid)));
+ DEBUG(10,("revoke_privilege: %s\n", dom_sid_str_buf(sid, &buf)));
DEBUGADD( 10, ("original privilege mask: 0x%llx\n", (unsigned long long)mask));
status = add_sid_to_array(mem_ctx, info3->sids[i].sid,
&sid_array, &num_sids);
if (!NT_STATUS_IS_OK(status)) {
+ struct dom_sid_buf buf;
DEBUG(3, ("could not add SID to array: %s\n",
- sid_string_dbg(info3->sids[i].sid)));
+ dom_sid_str_buf(info3->sids[i].sid, &buf)));
return status;
}
}
struct dom_sid dom_sid;
uint32_t rid;
const struct rid_name_map *users = NULL;
+ struct dom_sid_buf buf;
sid_copy(&dom_sid, sid);
if (!sid_split_rid(&dom_sid, &rid)) {
}
if (users == NULL) {
- DEBUG(10, ("SID %s is no special sid\n", sid_string_dbg(sid)));
+ DEBUG(10, ("SID %s is no special sid\n",
+ dom_sid_str_buf(sid, &buf)));
return False;
}
}
}
- DEBUG(10, ("RID of special SID %s not found\n", sid_string_dbg(sid)));
+ DEBUG(10, ("RID of special SID %s not found\n",
+ dom_sid_str_buf(sid, &buf)));
return False;
}
enum wbcSidType type;
char *domain_name = NULL;
char *account_name = NULL;
+ struct dom_sid_buf buf;
memcpy(&dom_sid, sid, sizeof(dom_sid));
*name_type = (enum lsa_SidType)type;
DEBUG(10, ("winbind_lookup_sid: SUCCESS: SID %s -> %s %s\n",
- sid_string_dbg(sid), domain_name, account_name));
+ dom_sid_str_buf(sid, &buf), domain_name, account_name));
wbcFreeMemory(domain_name);
wbcFreeMemory(account_name);