From af1f87a0346653532deeb04dc7f236d143c8b9a7 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Tue, 20 Jan 2015 17:30:51 +0100 Subject: Add debug messages into client autodetection Is hard to debug what the problem with REALM is without debug messages. Reviewed-By: Alexander Bokovoy --- ipa-client/ipaclient/ipadiscovery.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ipa-client/ipaclient/ipadiscovery.py b/ipa-client/ipaclient/ipadiscovery.py index 0d574825a..5e316837d 100644 --- a/ipa-client/ipaclient/ipadiscovery.py +++ b/ipa-client/ipaclient/ipadiscovery.py @@ -390,10 +390,15 @@ class IPADiscovery(object): if trealm == r: return [0, thost, trealm] # must match or something is very wrong + root_logger.debug("Realm %s does not match any realm in LDAP " + "database", trealm) return [REALM_NOT_FOUND] else: if len(lrealms) != 1: #which one? we can't attach to a multi-realm server without DNS working + root_logger.debug("Multiple realms found, cannot decide " + "which realm is the right without " + "working DNS") return [REALM_NOT_FOUND] else: return [0, thost, lrealms[0]] -- cgit