mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
idmap: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
beba440c0e
commit
f564776ebd
@ -689,6 +689,7 @@ static NTSTATUS idmap_ad_unixids_to_sids(struct idmap_domain *dom,
|
||||
bool ok;
|
||||
uint32_t atype, xid;
|
||||
enum id_type type;
|
||||
struct dom_sid_buf sidbuf;
|
||||
|
||||
if (tldap_msg_type(msg) != TLDAP_RES_SEARCH_ENTRY) {
|
||||
continue;
|
||||
@ -746,14 +747,16 @@ static NTSTATUS idmap_ad_unixids_to_sids(struct idmap_domain *dom,
|
||||
}
|
||||
if (map == NULL) {
|
||||
DBG_DEBUG("Got unexpected sid %s from object %s\n",
|
||||
sid_string_tos(&sid), dn);
|
||||
dom_sid_str_buf(&sid, &sidbuf),
|
||||
dn);
|
||||
continue;
|
||||
}
|
||||
|
||||
sid_copy(map->sid, &sid);
|
||||
map->status = ID_MAPPED;
|
||||
|
||||
DBG_DEBUG("Mapped %s -> %ju (%d)\n", sid_string_dbg(map->sid),
|
||||
DBG_DEBUG("Mapped %s -> %ju (%d)\n",
|
||||
dom_sid_str_buf(map->sid, &sidbuf),
|
||||
(uintmax_t)map->xid.id, map->xid.type);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user