From 79b89f41962985cf0ab96238b21409b5874f67f8 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Tue, 18 Sep 2012 11:07:45 +0200 Subject: 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 --- ipa-client/ipaclient/ipadiscovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipa-client/ipaclient') 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) -- cgit