winbindd: Use dom_sid_str_buf
[amitay/samba.git] / source3 / winbindd / idmap_rid.c
index b066ba3c50f102fa73a512cf403e091ad727462a..e5bb1fa856ce3f90ffaba08e920c22c9d4ef2e92 100644 (file)
@@ -158,9 +158,10 @@ static NTSTATUS idmap_rid_sids_to_unixids(struct idmap_domain *dom, struct id_ma
 
                if (( ! NT_STATUS_IS_OK(ret)) &&
                    ( ! NT_STATUS_EQUAL(ret, NT_STATUS_NONE_MAPPED))) {
+                       struct dom_sid_buf buf;
                        /* some fatal error occurred, log it */
                        DEBUG(3, ("Unexpected error resolving a SID (%s)\n",
-                                 sid_string_dbg(ids[i]->sid)));
+                                 dom_sid_str_buf(ids[i]->sid, &buf)));
                }
        }