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
This commit is contained in:
Martin Kosek 2012-09-18 11:07:45 +02:00
parent 8bbb42b410
commit 79b89f4196

View File

@ -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)