[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: ldap_bind: Authentication method not supported (7) (ITS#3038)



> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of tiamat@komi.mts.ru

> OpenLDAP 2.2.6 works fine on same configuration!
> Somebody can help me?
>
> Thanks a lot!

Try this patch and let us know your results:

diff -u -r1.157.2.9 -r1.175 servers/slapd/bind.c
--- bind.c      17 Mar 2004 20:59:56 -0000      1.157.2.9
+++ bind.c      25 Mar 2004 08:25:25 -0000      1.175
@@ -1,5 +1,5 @@
 /* bind.c - decode an ldap bind operation and pass it to a backend db */
-/* $OpenLDAP: pkg/ldap/servers/slapd/bind.c,v 1.157.2.9 2004/03/17 20:59:56
kur
t Exp $ */
+/* $OpenLDAP: pkg/ldap/servers/slapd/bind.c,v 1.175 2004/03/25 08:25:25 hyc
Exp
 $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
  * Copyright 1998-2004 The OpenLDAP Foundation.
@@ -46,6 +46,7 @@
 {
        BerElement *ber = op->o_ber;
        ber_int_t version;
+       ber_tag_t method;
        struct berval mech = { 0, NULL };
        struct berval dn = { 0, NULL };
        ber_tag_t tag;
@@ -106,7 +107,7 @@
         *      }
         */

-       tag = ber_scanf( ber, "{imt" /*}*/, &version, &dn, &op->orb_method );
+       tag = ber_scanf( ber, "{imt" /*}*/, &version, &dn, &method );

        if ( tag == LBER_ERROR ) {
 #ifdef NEW_LOGGING
@@ -121,6 +122,7 @@
        }

        op->o_protocol = version;
+       op->orb_method = method;

        if( op->orb_method != LDAP_AUTH_SASL ) {
                tag = ber_scanf( ber, /*{*/ "m}", &op->orb_cred );

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support