}
if (!dom_sid_in_domain(&domain->sid, &user_sid)) {
- fstring sidstr, domstr;
+ struct dom_sid_buf sidstr, domstr;
DBG_WARNING("Got sid %s in domain %s\n",
- sid_to_fstring(sidstr, &user_sid),
- sid_to_fstring(domstr, &domain->sid));
+ dom_sid_str_buf(&user_sid, &sidstr),
+ dom_sid_str_buf(&domain->sid, &domstr));
continue;
}
if (DEBUGLEVEL >= 10) {
size_t i;
for (i=0; i<num_sids; i++) {
- fstring sidstr;
- sid_to_fstring(sidstr, &sids[i]);
- DEBUGADD(10, ("%s\n", sidstr));
+ struct dom_sid_buf sidstr;
+ DBG_DEBUG("%s\n", dom_sid_str_buf(&sids[i], &sidstr));
}
}
}
for (i=0; i<state->num_aliases; i++) {
struct dom_sid sid;
- fstring tmp;
+ struct dom_sid_buf tmp;
sid_compose(&sid, &state->sid, state->aliases[i]);
sidlist = talloc_asprintf_append_buffer(
- sidlist, "%s\n", sid_to_fstring(tmp, &sid));
+ sidlist, "%s\n", dom_sid_str_buf(&sid, &tmp));
if (sidlist == NULL) {
return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_NO_MEMORY;
}
for (i=0; i<state->num_sids; i++) {
- fstring tmp;
+ struct dom_sid_buf tmp;
sidlist = talloc_asprintf_append_buffer(
sidlist, "%s\n",
- sid_to_fstring(tmp, &state->sids[i]));
+ dom_sid_str_buf(&state->sids[i], &tmp));
if (sidlist == NULL) {
return NT_STATUS_NO_MEMORY;
}
}
for (i=0; i<state->domains->count; i++) {
- fstring sid_str;
+ struct dom_sid_buf sid_str;
result = talloc_asprintf_append_buffer(
result, "%s %s\n",
- sid_to_fstring(sid_str,
- state->domains->domains[i].sid),
+ dom_sid_str_buf(state->domains->domains[i].sid,
+ &sid_str),
state->domains->domains[i].name.string);
if (result == NULL) {
return NT_STATUS_NO_MEMORY;