summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipaclient
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-09-18 11:07:45 +0200
committerMartin Kosek <mkosek@redhat.com>2012-09-18 11:11:48 +0200
commit79b89f41962985cf0ab96238b21409b5874f67f8 (patch)
tree6632b8b83d218b774c9bf222158e3856ffde9757 /ipa-client/ipaclient
parent8bbb42b4102b62b215ece59b8b6561af13891e9e (diff)
downloadfreeipa-79b89f41962985cf0ab96238b21409b5874f67f8.tar.gz
freeipa-79b89f41962985cf0ab96238b21409b5874f67f8.tar.xz
freeipa-79b89f41962985cf0ab96238b21409b5874f67f8.zip
Properly convert DN in ipa-client-install
ipa-client-install crashed when IPA server anonymous access was disabled and base DN was thus generated via realm_to_suffix function which, however, returns a DN object and not string. DN was converted to string, ipa-client-install no longer crashes in this scenario. https://fedorahosted.org/freeipa/ticket/3088
Diffstat (limited to 'ipa-client/ipaclient')
-rw-r--r--ipa-client/ipaclient/ipadiscovery.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-client/ipaclient/ipadiscovery.py b/ipa-client/ipaclient/ipadiscovery.py
index f91d4075a..234e67e9b 100644
--- a/ipa-client/ipaclient/ipadiscovery.py
+++ b/ipa-client/ipaclient/ipadiscovery.py
@@ -249,7 +249,7 @@ class IPADiscovery(object):
if not ldapaccess and self.basedn is None:
# Generate suffix from realm
- self.basedn = realm_to_suffix(self.realm)
+ self.basedn = str(realm_to_suffix(self.realm))
self.basedn_source = 'Generated from Kerberos realm'
root_logger.debug("Generated basedn from realm: %s" % self.basedn)