summaryrefslogtreecommitdiffstats
path: root/ipa-client
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:12:00 +0200
commit54bb2505656c13bc7cae1d66618c12d5d4859978 (patch)
tree9e1026a2021d0766fd7e3b1fbab26989cd241bb7 /ipa-client
parent44319591a97e8efaa7d3006214bb9ad6e02bdaa9 (diff)
downloadfreeipa.git-54bb2505656c13bc7cae1d66618c12d5d4859978.tar.gz
freeipa.git-54bb2505656c13bc7cae1d66618c12d5d4859978.tar.xz
freeipa.git-54bb2505656c13bc7cae1d66618c12d5d4859978.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')
-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 f91d4075..234e67e9 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)