mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-23 09:14:43 +00:00
ipaclient: Set default_domain in krb5.conf in the same way as ipa-client-install
Set default_domain if not ipadiscovery.dnsok or not ipadiscovery.kdc like it is done in ipa-client-install.
This commit is contained in:
@@ -22,7 +22,7 @@ includedir {{ krb5_include_d }}
|
|||||||
admin_server = {{ server }}:749
|
admin_server = {{ server }}:749
|
||||||
kpasswd_server = {{ server }}:464
|
kpasswd_server = {{ server }}:464
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if krb5_no_default_domain | bool %}
|
{% if krb5_default_domain | bool %}
|
||||||
default_domain = {{ krb5_realm | lower }}
|
default_domain = {{ krb5_realm | lower }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if krb5_pkinit_anchors is defined %}
|
{% if krb5_pkinit_anchors is defined %}
|
||||||
|
|||||||
@@ -198,7 +198,7 @@
|
|||||||
krb5_realm: "{{ ipadiscovery.realm }}"
|
krb5_realm: "{{ ipadiscovery.realm }}"
|
||||||
krb5_dns_lookup_realm: "{{ 'false' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'true' }}"
|
krb5_dns_lookup_realm: "{{ 'false' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'true' }}"
|
||||||
krb5_dns_lookup_kdc: "{{ 'false' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'true' }}"
|
krb5_dns_lookup_kdc: "{{ 'false' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'true' }}"
|
||||||
krb5_no_default_domain: "{{ 'true' if ipadiscovery.domain != ipadiscovery.client_domain else 'false' }}"
|
krb5_default_domain: "{{ 'true' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'false' }}"
|
||||||
krb5_pkinit_anchors: "FILE:/etc/ipa/ca.crt"
|
krb5_pkinit_anchors: "FILE:/etc/ipa/ca.crt"
|
||||||
when: not ipaclient_on_master | bool and ipadiscovery.ipa_python_version <= 40400
|
when: not ipaclient_on_master | bool and ipadiscovery.ipa_python_version <= 40400
|
||||||
|
|
||||||
@@ -210,7 +210,7 @@
|
|||||||
krb5_realm: "{{ ipadiscovery.realm }}"
|
krb5_realm: "{{ ipadiscovery.realm }}"
|
||||||
krb5_dns_lookup_realm: "{{ 'false' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'true' }}"
|
krb5_dns_lookup_realm: "{{ 'false' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'true' }}"
|
||||||
krb5_dns_lookup_kdc: "{{ 'false' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'true' }}"
|
krb5_dns_lookup_kdc: "{{ 'false' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'true' }}"
|
||||||
krb5_no_default_domain: "{{ 'true' if ipadiscovery.domain != ipadiscovery.client_domain else 'false' }}"
|
krb5_default_domain: "{{ 'true' if not ipadiscovery.dnsok or not ipadiscovery.kdc else 'false' }}"
|
||||||
krb5_dns_canonicalize_hostname: "false"
|
krb5_dns_canonicalize_hostname: "false"
|
||||||
krb5_pkinit_pool: "FILE:/var/lib/ipa-client/pki/ca-bundle.pem"
|
krb5_pkinit_pool: "FILE:/var/lib/ipa-client/pki/ca-bundle.pem"
|
||||||
krb5_pkinit_anchors: "FILE:/var/lib/ipa-client/pki/kdc-ca-bundle.pem"
|
krb5_pkinit_anchors: "FILE:/var/lib/ipa-client/pki/kdc-ca-bundle.pem"
|
||||||
|
|||||||
Reference in New Issue
Block a user