See cf/README in the sendmail source distribution for an additional discussion of the
default schema and how to use it.
23.7.11.2 LDAP default schema for classes includes recursion
As of V8.13, the default schema for class macro assignments using LDAP has been changed
to include LDAP recursion support. For example, recall (in ?§22.1.3.2 on page 862) that you
declare classes with LDAP like this:
RELAY_DOMAIN_FILE(`@LDAP??)
This causes the class $=R to be filled withvalues that matcha sendmailMTAClassName with
the value R. More generally, for any class X, the following default schema will be used:
F{X}@ldap:-k (&(objectClass=sendmailMTAClass)
(sendmailMTAClassName=X)
(|(sendmailMTACluster=${sendmailMTACluster})
(sendmailMTAHost=$j)))
-v sendmailMTAClassValue,
sendmailMTAClassSearch:FILTER:sendmailMTAclass,
sendmailMTAClassURL:URL:sendmailMTAClass
Note that sendmail macros (like $j) are not expanded when the default schema is first
defined. Rather, they are expanded each time an LDAP lookup is performed.
See cf/README in the sendmail source distribution for an additional discussion of this
default schema and how to use it.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
23.7 Alphabetized Database-Map Types | 915
23.7.11.3 The -1 ldap database-map switch
The -1 switch prevents LDAP from returning multiple values when only one is sought.
Pages:
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614