Prev | Current Page 1613 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
920 | Chapter 23: The K (Database-Map) Configuration Command
The objectclass list, in the -v expression, is optional and, if present, contains the objectclass
values for which the attribute applies. If there is more than one object-class value,
each must be separated from the next by a vertical bar character (|). If object-class values
are listed, the attribute will be used only if the LDAP record returned by a lookup is a
member of any of the object-class values listed.
Note that recursion is liberal. That is, no error results if recursion ultimately fails to lead to
an LDAP record. The lookup will simply fail in the same manner as it would if the record
did not exist.
To illustrate, consider the following mc configuration file lines.
define(`confLDAP_DEFAULT_SPEC??, `-H ldaps://ldap.example.com -b dc=example,dc=gov??)
LOCAL_CONFIG
Kgetname ldap
-k (&(objectClass=sendmailMTAAliasObject)(sendmailMTAKey=%0))
-v sendmailMTAAliasValue,
mail:NORMAL:inetOrgPerson,
uniqueMember:DN:groupOfUniqueNames,
sendmailMTAAliasSearch:FILTER:sendmailMTAAliasObject,
sendmailMTAAliasURL:URL:sendmailMTAAliasObject
First, we use -H when defining confLDAP_DEFAULT_SPEC. The use of ldaps://, instead of ldap:
//, allows us to fetch the LDAP URI from the secure server, ldap.


Pages:
1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625
portal życzenia z okazji urodzin Unibet dieta light zarządzanie nieruchomościami