src/model/UserDbLdap.php
public function validatePassword($password)
    {
        //is yii2 profiling enabled?
        if(static::getExtensionOptions('ENABLE_YII2_PROFILING') == true) {
            Yii::beginProfile('LDAP validatePassword function', static::YII2_PROFILE_NAME . 'validatePassword');
        }
            
        $passwordValid = static::getAdldapProvider()->auth()->attempt($this->username,$password);
        
        if(static::getExtensionOptions('ENABLE_YII2_PROFILING') == true) {
            Yii::endProfile('LDAP validatePassword function', static::YII2_PROFILE_NAME . 'validatePassword');
        }
        return $passwordValid;
    }
public function validatePassword($password)
    {
        //is yii2 profiling enabled?
        if(static::getExtensionOptions('ENABLE_YII2_PROFILING') == true) {
            Yii::beginProfile('LDAP validatePassword function', static::YII2_PROFILE_NAME . 'validatePassword');
        }
            
        $passwordValid = static::getAdldapProvider()->auth()->attempt($this->username,$password);
        
        if(static::getExtensionOptions('ENABLE_YII2_PROFILING') == true) {
            Yii::endProfile('LDAP validatePassword function', static::YII2_PROFILE_NAME . 'validatePassword');
        }
        return $passwordValid;
    }
Validates password

@param string $password password to validate
@return bool if password provided is valid for current user