SM_CONF_LDAP_INITIALIZE
Enable ldap_initialize(3) (V8.13 and above) Tune with confENVDEF
When sendmail is built with LDAPMAP defined (LDAPMAP on page 119) LDAP database maps will be available for use. If the LDAP library contains an ldap_initialize(3) routine, and if this SM_CONF_LDAP_INITIALIZE macro is defined, ldap_initialize(3) will be called if your LDAP server supports direct use of URIs.
Note that LDAP URIs can still be used even if
SM_CONF_LDAP_INITIALIZE is not set, but the scheme://
in (scheme://host:port/...
)
will be ignored. Therefore, if
SM_CONF_LDAP_INITIALIZE is not available, the scheme
ldap://
is
always used, and the schemes ldaps://
and ldapi://
, if used, may
result in an error.
For most LDAP libraries, SM_CONF_LDAP_INITIALIZE will be set properly for you.[57] But in the event it is improperly set, you may define it with the following and then rebuild sendmail:
APPENDDEF(`conf_libsm_ENVDEF', `-DSM_CONF_LDAP_INITIALIZE' )
[57] * It is automatically defined if LDAP_OPT_URI is defined by the LDAP include files, which is how OpenLDAP implements ldap_initialize( ).
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.