winbindd: Enhance xids2sids debugging
authorVolker Lendecke <vl@samba.org>
Wed, 6 Feb 2019 16:06:28 +0000 (17:06 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 8 Feb 2019 12:30:32 +0000 (13:30 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Feb  8 13:30:32 CET 2019 on sn-devel-144

source3/winbindd/wb_xids2sids.c

index fa4ba983720c70e95dcc28cdb2f69e046f57bdf3..310a645cdff01f5ecb42351d78a2152303b345b3 100644 (file)
@@ -481,6 +481,11 @@ struct tevent_req *wb_xids2sids_send(TALLOC_CTX *mem_ctx,
                        }
 
                        if (ok && !expired) {
+                               struct dom_sid_buf buf;
+                               DBG_DEBUG("Found %cID in cache: %s\n",
+                                         xids[i].type == ID_TYPE_UID?'U':'G',
+                                         dom_sid_str_buf(&sid, &buf));
+
                                sid_copy(&state->sids[i], &sid);
                        }
                }