diff options
| author | Martin Babinsky <mbabinsk@redhat.com> | 2016-05-30 18:42:01 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-06-13 17:50:54 +0200 |
| commit | 5f7086e7183f0fcfece2bdd5be3d1ea17384717b (patch) | |
| tree | 27dab7bd3dae33d40c160f208db09d3d3ad54c6b /ipaserver/install/bindinstance.py | |
| parent | b9aa31191b3067aced1432daa06d18b4382cd77f (diff) | |
| download | freeipa-5f7086e7183f0fcfece2bdd5be3d1ea17384717b.tar.gz freeipa-5f7086e7183f0fcfece2bdd5be3d1ea17384717b.tar.xz freeipa-5f7086e7183f0fcfece2bdd5be3d1ea17384717b.zip | |
Server Roles: make *config-show consume relevant roles/attributes
This patch modifies config objects so that the roles/attributes relevant to
the configuration are shown in the output:
* config-{show,mod} will show list of all IPA masters, CA servers and CA
renewal master
* dnsconfig-{show,mod} will list all DNS server and DNS key master
* trustconfig-{show,mod} will list all AD trust controllers and agents
* vaultconfig-show will list all Key Recovery Agents
http://www.freeipa.org/page/V4/Server_Roles
https://fedorahosted.org/freeipa/ticket/5181
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
Diffstat (limited to 'ipaserver/install/bindinstance.py')
| -rw-r--r-- | ipaserver/install/bindinstance.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index afcb6b0c1..78e753592 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -1230,8 +1230,12 @@ class BindInstance(service.Service): set and thus overrides his configured options in named.conf. """ result = self.api.Command.dnsconfig_show() - global_conf_set = any(param in result['result'] for \ - param in self.api.Object['dnsconfig'].params) + + global_conf_set = any( + param.name in result['result'] for param in + self.api.Object['dnsconfig'].params() if + u'virtual_attribute' not in param.flags + ) if not global_conf_set: print("Global DNS configuration in LDAP server is empty") |
