[Date Prev][Date Next]
Re: Sendmail 8.10.0 vs. LDAP
On Tue, 28 Mar 2000, Les Barstow wrote:
> I've been fighting with Sendmail 8.10.0 for the past several days to
> implement an alias map using LDAP, and have been very unsuccessful.
> I'm looking for some help.
> I have set up my alias lists as rfc822MailGroup objects, with
> rfc822Mailbox entries for each individual, and cn=aliasname for the
> RDN. I have the following set up in my .cf file:
> O LDAPDefaultSpec=-hldap.vr1.com -b"ou=Aliases,dc=vr1,dc=com"
> Kldapaliases ldap -k"cn=%s" -vrfc822Mailbox -z,
> O AliasFile=sequence:ldapaliases
> (The AliasFile sequence bit is a leftover from the ldapx map problem)
> This all looks well and good, but when I try to do a lookup, I get
> the following:
> 421 4.0.0 Error getting LDAP entries in map ldapaliases: Decoding error
> If I remove the '-z,' (which is supposed to tag multi-valued responses
> together into an alias list), I get the first value in the list (as is
> to be expected).
> So: it appears my LDAP map is correct, and Sendmail can connect to the
> LDAP server, but it does not know how to do multi-valued lists
> (this was supposed to be one of its new features...)
> Any recommendations on how to fix the Sendmail side? The
> comp.mail.sendmail group hasn't come back with a response...
Looks like it did to
Someone replied to a message of yours with this (email@example.com)
| > If I remove the -z, I get the first rfc822Mailbox (as expected),
| > so I know I'm getting connected and getting responses to/from the
| > LDAP server. I just can't seem to tack multi-valued responses
| For multiple return values I guess you should add ldap map to your
| AliasFile option, something like this in your .mc file:
| define(`confLDAP_DEFAULT_SPEC',`-h ldapserver.mydomain -b
| define(`ALIAS_FILE',`/etc/mail/aliases,ldap: -v mailRoutingAddress -k
I've also crossed another similar response a month or so ago on
comp.mail.sendmail, from the same person.
Don Badrak <firstname.lastname@example.org> 301.457.8263 work
Telecommunications Office 301.457.4438 fax
U.S. Bureau of the Census
Suitland MD, USA