This commit is contained in:
Kurt Zeilenga 2004-03-24 23:44:45 +00:00
parent 6ef731db51
commit 3a468f5d90

View File

@ -206,8 +206,8 @@ do_bind(
} }
Statslog( LDAP_DEBUG_STATS, "conn=%lu op=%lu BIND dn=\"%s\" method=%ld\n", Statslog( LDAP_DEBUG_STATS, "conn=%lu op=%lu BIND dn=\"%s\" method=%ld\n",
op->o_connid, op->o_opid, op->o_req_dn.bv_val, (unsigned long) op->orb_method, op->o_connid, op->o_opid, op->o_req_dn.bv_val,
0 ); (unsigned long) op->orb_method, 0 );
if ( version < LDAP_VERSION_MIN || version > LDAP_VERSION_MAX ) { if ( version < LDAP_VERSION_MIN || version > LDAP_VERSION_MAX ) {
#ifdef NEW_LOGGING #ifdef NEW_LOGGING
@ -458,7 +458,9 @@ do_bind(
} }
#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND #ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
} else if ( op->orb_method == LDAP_AUTH_KRBV41 || op->orb_method == LDAP_AUTH_KRBV42 ) { } else if ( op->orb_method == LDAP_AUTH_KRBV41 ||
op->orb_method == LDAP_AUTH_KRBV42 )
{
if ( global_disallows & SLAP_DISALLOW_BIND_KRBV4 ) { if ( global_disallows & SLAP_DISALLOW_BIND_KRBV4 ) {
/* disallow simple authentication */ /* disallow simple authentication */
rs->sr_err = LDAP_UNWILLING_TO_PERFORM; rs->sr_err = LDAP_UNWILLING_TO_PERFORM;