example.com.
Second, under the LOCAL_CONFIG part of our mc configuration file, we define a database
map using the K configuration command. We give the database map the name getname and
the type ldap. The -k LDAP database-map switch specifies the LDAP search query to use.
Note how LDAP recursion is used here. There are five statements following -v, eachon its
own line for clarity, and each separated from the next by a comma.
The first statement following the -v is a lone attribute named sendmailMTAAliasValue.
Because it lacks a colon-keyword type, it is presumed to be type NORMAL. Here, any value in
the sendmailMTAAliasValue attribute will be added to any result string regardless of any
object classes (because the attribute has no object-classes).
The second statement contains an attribute named mail, defined to be the type NORMAL,
witha single object class called inetOrgPerson. The value in the attribute mail will be
added to the result string only if the LDAP record that is looked up is a member of the
inetOrgPerson object class. The type NORMAL is not recursive. Only a single lookup is
performed and only a single result is added to the string.
The third statement contains an attribute named uniqueMember, defined to be the type DN,
witha single object class called groupOfUniqueNames. The type DN makes the action associated
withth e attribute uniqueMember recursive.
Pages:
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626