idmap: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Fri, 26 Oct 2018 13:43:30 +0000 (15:43 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 9 Nov 2018 21:42:29 +0000 (22:42 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/idmap_ad.c

index 8f1cb375dfb46e8f73701d2546bc77d378868f82..664483ace78d591c870154fd93ce8ba26e2be6fe 100644 (file)
@@ -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);
        }