If, rather than reading from a TCP/IP socket, your
LDAP server uses a Unix-domain socket, you may use ldapi:// instead of ldap://, to
access that Unix-domain socket:*
define(`confLDAP_DEFAULT_SPEC??, `-H ldapi:///path/to/file -b dc=example,dc=gov??)
Note that when you build sendmail with LDAP support, the sendmail code will look to see
whether you have a working ldap_init() function in your LDAP library. If you do (and all
modern versions of LDAP do), you will be allowed to use the new -H database-map switch.
If not, you will see the following warning when you attempt to use it:
Must compile with -DUSE_LDAP_INIT to use LDAP URIs (-H) in map name
If you believe sendmail interpreted your LDAP setup wrongly, you may define USE_LDAP_
INIT when building to correct the error.
23.7.11.7 The -h ldap database-map switch
The -h is mandatory. It specifies the host, or hosts, to which to connect for the LDAP
lookup. If you wish to specify a sequence of hosts, you can do so by listing them, each
separated from the others by space characters:
-h"hostA hostB"
Here, because a space is the separator, this expression must be quoted. The lookup will
cause sendmail to connect to hostA first. If it connects, and if a successful matchis found,
the lookup terminates and that value is returned. If the lookup fails, no further hosts are
connected.
Pages:
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617