summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-01-20 17:30:51 +0100
committerMartin Kosek <mkosek@redhat.com>2015-01-21 08:34:26 +0100
commitaf1f87a0346653532deeb04dc7f236d143c8b9a7 (patch)
tree4eee35a1be61ce3dedb5906be832bd6f36d2ca2c /ipa-client
parent4994cd1d8dde69d94130894ca86aa8a11fb590bf (diff)
downloadfreeipa-af1f87a0346653532deeb04dc7f236d143c8b9a7.tar.gz
freeipa-af1f87a0346653532deeb04dc7f236d143c8b9a7.tar.xz
freeipa-af1f87a0346653532deeb04dc7f236d143c8b9a7.zip
Add debug messages into client autodetection
Is hard to debug what the problem with REALM is without debug messages. Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipa-client')
-rw-r--r--ipa-client/ipaclient/ipadiscovery.py5
1 files changed, 5 insertions, 0 deletions
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]]