src/model/UserDbLdap.php
private function getAdldap2Provider() {
        if(isset(Yii::$app->params['yii2-adldap-providername'])) {
            $provider =Yii::$app->ad->getProvider(Yii::$app->params['yii2-adldap-providername']);
        } else {
            $provider =Yii::$app->ad->getDefaultProvider();
        }

        return $provider;
    }
private function getAdldap2Provider() {
        if(isset(Yii::$app->params['yii2-adldap-providername'])) {
            $provider =Yii::$app->ad->getProvider(Yii::$app->params['yii2-adldap-providername']);
        } else {
            $provider =Yii::$app->ad->getDefaultProvider();
        }

        return $provider;
    }
Get the Adldap2 provider name
Since Version 3.0.5 use the static function getAdldapProvider()

@deprecated since version 3.0.5