From: D. Stussy on
I've recently noted that my LDAP interface is throwing an error with
Sendmail. OpenLDAP seems to be speaking version 3 of LDAP, while Sendmail
seems to be speaking version 2, and the LDAP server is rejecting the
queries.

What do I need to fix this situation? Is there something simple like a
compile-time option I need to throw on either package so they will sync up
witht he same version?


From: ska on
D. Stussy wrote:
> I've recently noted that my LDAP interface is throwing an error with
> Sendmail. OpenLDAP seems to be speaking version 3 of LDAP, while Sendmail
> seems to be speaking version 2, and the LDAP server is rejecting the
> queries.
>
> What do I need to fix this situation? Is there something simple like a
> compile-time option I need to throw on either package so they will sync up
> witht he same version?

Hmm, I'm very suprised about OpenLDAP rejecting LDAPv2. Maybe _our_
installations are pretty old :) and newer ones behave differently.

Do you happen to have "require LDAPv3" setting in your slapd.conf?

Regards,
-ska
From: D. Stussy on
"ska" <skg(a)mail.inf.fh-brs.de> wrote in message
news:a5b8c33b-c52e-438d-bee4-9f3ac88b7734(a)s9g2000yqd.googlegroups.com...
> D. Stussy wrote:
> > I've recently noted that my LDAP interface is throwing an error with
> > Sendmail. OpenLDAP seems to be speaking version 3 of LDAP, while
Sendmail
> > seems to be speaking version 2, and the LDAP server is rejecting the
> > queries.
> >
> > What do I need to fix this situation? Is there something simple like a
> > compile-time option I need to throw on either package so they will sync
up
> > witht he same version?
>
> Hmm, I'm very suprised about OpenLDAP rejecting LDAPv2. Maybe _our_
> installations are pretty old :) and newer ones behave differently.
>
> Do you happen to have "require LDAPv3" setting in your slapd.conf?

No, I don't. The version of OpenLDAP I'm using is the current one (2.4.23)
compiled from source. I didn't see any compile-time options where I could
force an older version of the protocol, so that in part is why I'm asking.


From: Claus Aßmann on
D. Stussy wrote:
> I've recently noted that my LDAP interface is throwing an error with
> Sendmail. OpenLDAP seems to be speaking version 3 of LDAP, while Sendmail
> seems to be speaking version 2, and the LDAP server is rejecting the
> queries.

Ever tried to search the fine documentation?

doc/op/op.*

-wversion Set the LDAP API/protocol version to use.
The default depends on the LDAP client
libraries in use. For example, -w 3 will
cause sendmail to use LDAPv3 when communi-
cating with the LDAP server.


It would be a good idea to compile sendmail against
the same LDAP version that you use for the server.
From: D. Stussy on
"Claus A�mann" <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de>
wrote in message news:i2ikhr$sg2$1(a)obelix.informatik.uni-kiel.de...
> D. Stussy wrote:
> > I've recently noted that my LDAP interface is throwing an error with
> > Sendmail. OpenLDAP seems to be speaking version 3 of LDAP, while
Sendmail
> > seems to be speaking version 2, and the LDAP server is rejecting the
> > queries.
>
> Ever tried to search the fine documentation?
>
> doc/op/op.*
>
> -wversion Set the LDAP API/protocol version to use.
> The default depends on the LDAP client
> libraries in use. For example, -w 3 will
> cause sendmail to use LDAPv3 when communi-
> cating with the LDAP server.
>
>
> It would be a good idea to compile sendmail against
> the same LDAP version that you use for the server.

Thanks. I missed that since that document defines run-time variables,
while I was looking for a compile-time variable, especially since we have
"Append_DEF('-DLDAP');"....

I do compile sendmail against the same package I use for the server.
That's why I was wondering how come I had the version mismatch....