/* if we find the SID, then decrement the count
and break out of the loop */
- if ( sid_equal(sid, &sid_list[i]) ) {
+ if (dom_sid_equal(sid, &sid_list[i])) {
*num -= 1;
break;
}
bool is_null_sid(const struct dom_sid *sid)
{
static const struct dom_sid null_sid = {0};
- return sid_equal(sid, &null_sid);
+ return dom_sid_equal(sid, &null_sid);
}
uid_t uid = 0;
gid_t gid = 0;
- if (!sid || sid_equal(sid, &global_sid_NULL))
+ if (!sid || dom_sid_equal(sid, &global_sid_NULL))
type = IFS_ID_TYPE_NULL;
- else if (sid_equal(sid, &global_sid_World))
+ else if (dom_sid_equal(sid, &global_sid_World))
type = IFS_ID_TYPE_EVERYONE;
- else if (sid_equal(sid, &global_sid_Creator_Owner))
+ else if (dom_sid_equal(sid, &global_sid_Creator_Owner))
type = IFS_ID_TYPE_CREATOR_OWNER;
- else if (sid_equal(sid, &global_sid_Creator_Group))
+ else if (dom_sid_equal(sid, &global_sid_Creator_Group))
type = IFS_ID_TYPE_CREATOR_GROUP;
else if (is_group) {
if (!sid_to_gid(sid, &gid))
while (*sid_list) {
if (string_to_sid(&match, *sid_list))
- if (sid_equal(sid, &match))
+ if (dom_sid_equal(sid, &match))
return true;
sid_list++;
}
if (!strequal(td->domain_name, new_td->domain_name) ||
!strequal(td->netbios_name, new_td->netbios_name) ||
- !sid_equal(&td->security_identifier, &new_td->security_identifier) ||
+ !dom_sid_equal(&td->security_identifier,
+ &new_td->security_identifier) ||
td->trust_direction != new_td->trust_direction ||
td->trust_type != new_td->trust_type ||
td->trust_attributes != new_td->trust_attributes ||
struct lsa_DomainInfo *new_domain;
for (i=0; i<list->count; i++) {
- if (sid_equal(domain->sid, list->domains[i].sid)) {
+ if (dom_sid_equal(domain->sid, list->domains[i].sid)) {
*idx = i;
return true;
}
wcache_tdc_fetch_list(&dom_list, &num_domains);
for (i = 0; i<num_domains; i++) {
- if (sid_equal(sid, &(dom_list[i].sid))) {
+ if (dom_sid_equal(sid, &(dom_list[i].sid))) {
DEBUG(10, ("wcache_tdc_fetch_domainbysid: "
"Found domain %s for SID %s\n",
dom_list[i].domain_name,