This specifies the LDAP host names to connect to. The default
value is localhost
. Special formatting characters are
permitted. Multiple host names can be specified, and in this case Radiator
tries connecting each configured host individually until it succeeds. If a
Host
name begins with ipv6:
the
subsequent host names are interpreted as IPv6 addresses where possible,
and Net::LDAP
uses IPv6 to connect to the LDAP server.
IPv6 may require IO::Socket::INET6
,
Socket6
or other IPv6 specific Perl modules depending
on your Perl version.
Here are examples of using
Host
:
Host ldaphost.example.com
Same
as above, but resolve the name to individual addresses before
connecting:
# May resolve to multiple addresses.
# Implicitly sets SSLExpectedServerName to ldaphost.example.com for each address.
Host ldaphost.example.com
ResolveHost
When there are multiple Host values, connect to the
first server that works:
# Connect to first available server
Host ldaphost1.example.org
Host ldaphost2.example.org
Host ldaphost3.example.org
IPv4 and IPv6 address can also be
used. When TLS is enabled, we need to tell TLS library what is the
expected name in each Host's server certificate:
# Server 10.20.30.11 has name ldaphost1.example.org in its certificate.
# Server 10.20.30.22 is named ldaphost2.example.org, respectively.
Host 10.20.30.11
Host 10.20.30.22
SSLExpectedServerName ldaphost1.example.org
SSLExpectedServerName ldaphost2.example.org