ldap/admin/src/scripts/DSUtil.pm.in | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit aff9705dc42bb6109c55336a50219473ab948bbe Author: Noriko Hosoi nhosoi@redhat.com Date: Fri Oct 30 10:43:26 2015 -0700
Ticket #48328 - RFE: Allow RHDS to be setup using a DNS CNAME alias for General.FullMachineName
Description: When the Directory Server is installed, its FQDN may need to be an alias (CNAME) to let it run behind the proxy such as a load balancer. The current setup script does not allow it. This patch addes to check the given FQDN with CNAME in addition to doing the reverse lookup.
https://fedorahosted.org/389/ticket/48328
Reviewed by wibrown@redhat.com (Thank you, William!!)
diff --git a/ldap/admin/src/scripts/DSUtil.pm.in b/ldap/admin/src/scripts/DSUtil.pm.in index 93bd54a..9830703 100644 --- a/ldap/admin/src/scripts/DSUtil.pm.in +++ b/ldap/admin/src/scripts/DSUtil.pm.in @@ -241,6 +241,12 @@ sub checkHostname { } } } + if (!$found) { + system("@bindir@/host -t CNAME $hn 2>&1 1> /dev/null"); + if ($? == 0){ + $found = 1; + } + } } elsif (eval {require Socket6; 1}) { debug(1, "Socket6\n"); my @aires = getaddrinfo($hn, "ldap", AF_UNSPEC, SOCK_STREAM);
389-commits@lists.fedoraproject.org