freeipa/ipatests/test_install
Christian Heimes e28ec76898 Unify access to FQDN
FreeIPA's Python and C code used different approaches to get the FQDN of
the host. Some places assumed that gethostname() returns a FQDN. Other
code paths used glibc's resolver to resolve the current node name to a
FQDN.

Python code now uses the ipalib.constants.FQDN where a fully qualified
domain name is expected. The variable is initialized only once and avoids
potential DNS lookups.

C code uses a new helper function ipa_gethostfqdn() in util package. The
function implements similar logic as gethostfqdn() except it uses more
modern getaddrinfo(). The result is cached as well.

Fixes: https://pagure.io/freeipa/issue/8501
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
2020-10-26 17:11:19 +11:00
..
__init__.py pytest 3.x compatibility 2017-03-27 18:03:14 +02:00
0_reset.update Make an ipa-tests package 2013-06-17 19:22:50 +02:00
1_add.update Make an ipa-tests package 2013-06-17 19:22:50 +02:00
2_update.update Make an ipa-tests package 2013-06-17 19:22:50 +02:00
3_update.update Make an ipa-tests package 2013-06-17 19:22:50 +02:00
4_update.update Make an ipa-tests package 2013-06-17 19:22:50 +02:00
5_update.update Make an ipa-tests package 2013-06-17 19:22:50 +02:00
6_update.update Make an ipa-tests package 2013-06-17 19:22:50 +02:00
8_badsyntax.update Make an ipa-tests package 2013-06-17 19:22:50 +02:00
9_badsyntax.update Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_changeconf.py Move ipachangeconf from ipaclient.install to ipapython 2019-08-28 22:15:50 -04:00
test_install_checks.py Refuse PORT, HOST in /etc/openldap/ldap.conf 2018-05-29 15:30:37 +02:00
test_updates.py Unify access to FQDN 2020-10-26 17:11:19 +11:00