URL: https://github.com/freeipa/freeipa/pull/1005 Author: felipevolpone Title: #1005: Fixing how sssd.conf is updated when promoting a client to replica Action: opened
PR body: """ When promoting a client to a replica we have to change sssd.conf, deleting _srv_ part from 'ipa_server' property and setting 'ipa_server_mode' to true. Previously, the wrong domain could be updated since the ipa_domain variable was not being used properly. https://bugzilla.redhat.com/show_bug.cgi?id=1478251 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/1005/head:pr1005 git checkout pr1005
From bdd656452ce90685ef5c837db067d2500c24d0e5 Mon Sep 17 00:00:00 2001 From: Felipe Volpone <fbarr...@redhat.com> Date: Fri, 25 Aug 2017 15:19:21 -0300 Subject: [PATCH] Fixing how sssd.conf is updated when promoting a client to replica When promoting a client to a replica we have to change sssd.conf, deleting _srv_ part from 'ipa_server' property and setting 'ipa_server_mode' to true. Previously, the wrong domain could be updated since the ipa_domain variable was not being used properly. https://bugzilla.redhat.com/show_bug.cgi?id=1478251 --- ipaserver/install/server/replicainstall.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py index 6f3b2ace1b..50873c4bd8 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -448,9 +448,9 @@ def promote_sssd(host_name): if ipa_domain is None: raise RuntimeError("Couldn't find IPA domain in sssd.conf") else: - domain.set_option('ipa_server', host_name) - domain.set_option('ipa_server_mode', True) - sssdconfig.save_domain(domain) + ipa_domain.set_option('ipa_server', host_name) + ipa_domain.set_option('ipa_server_mode', True) + sssdconfig.save_domain(ipa_domain) sssdconfig.write() sssd = services.service('sssd', api)
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org