When certain options are passed to ipa-client-install, DNS discovery is disabled causing the dns_lookup_realm and dns_lookup_kdc krb5.conf options to be set to 'False'. If an AD trust is added then login attempts will fail on IDM clients(SSSD calls the krb5_child using libkrb5 to discover the AD realm KDC to communicate with) as no explicit AD realm information gets added to krb5.conf on IDM clients, only the IDM realm section KDC information. This can be fixed by setting dns_lookup_kdc to 'True'
ipa-client-install
The concern here is IPA administrators will not be aware of this, or an AD trust is added months later and these krb5.conf options are forgotten.
According to the man page if dns_lookup_kdc is true libkrb5 will still check the kdc entries in the realm section. Could there be consideration for setting the dns_lookup options to true by default and adding a new option for ipa-client-install to set dns_lookup_kdc = false explicitly?
Reproducer steps:
Metadata Update from @jstephen: - Issue assigned to someone - Issue set to the milestone: Future Releases
Metadata Update from @pvoborni: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1482965 (was: todo)
Issue linked to bug 1482965
Metadata Update from @pvoborni: - Issue close_status updated to: None - Issue priority set to: important (was: normal)
master:
ipa-4-8:
ipa-4-9:
Metadata Update from @abbra: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)