cannot ignore old password when setting sasl password

This commit is contained in:
Kurt Zeilenga 2005-09-29 08:05:38 +00:00
parent 68ae7408dc
commit 741029dc87

View File

@ -109,6 +109,12 @@ int passwd_extop(
}
if( op->o_bd == NULL ) {
if ( qpw->rs_old.bv_val != NULL ) {
rs->sr_text = "unwilling to verify old password";
rc = LDAP_UNWILLING_TO_PERFORM;
goto error_return;
}
#ifdef HAVE_CYRUS_SASL
rc = slap_sasl_setpass( op, rs );
#else