diff options
author | Simo Sorce <ssorce@redhat.com> | 2008-05-23 14:51:50 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2008-05-29 09:44:10 -0400 |
commit | 3beaba9b958d74f96d6a48f2bbdbadc2df8e1b39 (patch) | |
tree | 884b41f57da6a168b2298dff4e12a2732441b035 /ipa-server/ipa-install/ipa-replica-prepare | |
parent | 7c40b39899b0a8714965c98755198fa41a7b3254 (diff) | |
download | freeipa-3beaba9b958d74f96d6a48f2bbdbadc2df8e1b39.tar.gz freeipa-3beaba9b958d74f96d6a48f2bbdbadc2df8e1b39.tar.xz freeipa-3beaba9b958d74f96d6a48f2bbdbadc2df8e1b39.zip |
Fix the case where domain != lower(REALM)
add the domain to the ipa.conf file for apps that need to know
This should fix a bug in the replica setup
Diffstat (limited to 'ipa-server/ipa-install/ipa-replica-prepare')
-rw-r--r-- | ipa-server/ipa-install/ipa-replica-prepare | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-prepare b/ipa-server/ipa-install/ipa-replica-prepare index 4090ad8a..914557dc 100644 --- a/ipa-server/ipa-install/ipa-replica-prepare +++ b/ipa-server/ipa-install/ipa-replica-prepare @@ -66,18 +66,11 @@ def get_realm_name(): def get_domain_name(): try: - conn = ipaldap.IPAdmin("127.0.0.1") - conn.simple_bind_s("", "") - - context = conn.getEntry("", ldap.SCOPE_BASE, '(objectclass=*)', [ 'namingContexts' ]) - conn.unbind() + ipa.config.init_config() + domain_name = ipa.config.config.get_domain() except Exception, e: return None - domain_name = context.getValue('namingContexts') - domain_name = domain_name.replace('dc=','') - domain_name = domain_name.replace(',','.') - return domain_name def check_ipa_configuration(realm_name): |