HP-UX Mailing Services Administrator's Guide
Configuring and Administering Sendmail
Sendmail and the LDAP Protocol
Chapter 270
Sendmail and the LDAP Protocol
The Lightweight Directory Access Protocol (LDAP) enables servers to
share static information. Combining Sendmail and LDAP increases the
speed and efficiency at which network information is collected and
displayed.
Sendmail supports the use of the LDAP protocol to look up addresses.
The ldapx class, which is a database, is used to look up items in the
LDAP directory service. The Sendmail configuration file contains the
syntax required to enable the LDAP protocol to perform address lookups.
Enabling Address Lookups Using LDAP
When you enable LDAP support, LDAP will look up login names, then
return the e-mail address for that user. To enable this, you must modify
the sendmail.cf file.
The following steps describe how to enable address lookup using LDAP:
1. Open the sendmail.cf file.
2. Uncomment the following ruleset:
#R$+<@$+>$:$:$(ldap$1$: $1<@$2>$)ldapsupport
3. Uncomment the following line:
Kldap dapx -k”uid=%s” -v”mail” -htest.india.hp.com” -b”org
anization, c=US”
This enables the LDAP protocol to perform lookups. These lookups are
defined entirely by the switches specified. In the previous example, -k
and -v are the switch options.
The -k switch defines how the map takes its input value and constructs
the LDAP search. The -v switch is the value that replaces the original
string in the map. In most cases, this will be an e-mail address. The -b
switch is the directory in the LDAP tree where searching begins. The -h
switch is the space-separated string of servers that support LDAP at
your site.