From: Kurt Zeilenga Date: Wed, 27 Dec 2000 19:42:09 +0000 (+0000) Subject: ITS#884: GSSAPI interoperabity with ActiveDirectory X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1622 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b7607bf2378b324bfa8a00899a146c8a6f082b8f;p=openldap ITS#884: GSSAPI interoperabity with ActiveDirectory Improve interoperability when of scred is present but empty. --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 3b35dd2fbe..e6026872a3 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -564,7 +564,7 @@ ldap_int_sasl_bind( } if ( rc != LDAP_SUCCESS && rc != LDAP_SASL_BIND_IN_PROGRESS ) { - if( scred ) { + if( scred && scred->bv_len ) { /* and server provided us with data? */ Debug( LDAP_DEBUG_TRACE, "ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n", @@ -576,7 +576,7 @@ ldap_int_sasl_bind( if( rc == LDAP_SUCCESS && saslrc == SASL_OK ) { /* we're done, no need to step */ - if( scred ) { + if( scred && scred->bv_len ) { /* but server provided us with data! */ Debug( LDAP_DEBUG_TRACE, "ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",