23.7.11.19 The -w ldap database-map switch
If your LDAP library returns one API version, but your LDAP server uses a different one,
you force sendmail to use the version on the server by supplying this new -w switchwith
your ldap database-type declaration. For example, to look up a login name in an LDAP
database and have the official email address for that user returned, you might use a declaration
like this:
Kgetname ldap -k"uid=%s" -v"mail" -hhost -b"o=Organization, c=US" -w3
Note that the trailing argument to this K configuration line is the new -w switch, which
specifies the use of LDAP API version 3 with the server running on host.
If your system??™s
include file defines a maximum API version, and you exceed that
maximum with -w, the following error will print:
LDAP version specified exceeds max of max in map name
If your system??™s include file defines a minimum API version, and you specify too
low a minimum with -w, the following error will print:
LDAP version specified is lower than min in map name
Either error will cause the API version specified with -w to be ignored. For example, on
Solaris 9, with Sun-supplied LDAP, the minimum and maximum are both set to 3.
23.7.11.20 The -z ldap database-map switch
By default, if a single query matches multiple values, only the first value will be returned
unless the -z database-map switchis specified.
Pages:
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628