USING_NETSCAPE_LDAP

Use Netscape’s ldap libraries (V8.10 and above) Tune with confENVDEF

This compile-time macro has been decprecated as of V8.12, in favor of using the SM_CONF_LDAP_MEMFREE compile-time macro (SM_... on page 139).

The Netscape LDAP libraries require that the return value from the ldap_first_attribute( ) function and the return value from the ldap_next_attribute( ) function be freed after use by calling the ldap_memfree( ) function. Normally, this is not done, because sendmail expects the open source version of LDAP. To enable this behavior for use with Netscape’s LDAP libraries, define this USING_NETSCAPE_LDAP compile-time macro:

APPENDDEF(`confENVDEF', `-DUSING_NETSCAPE_LDAP=1')

Also note that some LDAP libraries are derived from the Netscape version. These derivative libraries also need you to define this compile-time macro.

Note that this compile-time macro does not enable LDAP all by itself. Instead, you must also define the LDAPMAP compile-time macro (LDAPMAP on page 119) like this:

APPENDDEF(`confMAPDEF', `-DLDAPMAP')

If you are running a precompiled sendmail binary, you can use the -d0.10 debugging command-line switch (-d0.10 on page 543) to determine whether USING_NETSCAPE_LDAP support is defined (if it appears in the list, it is defined).

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.