Skip to content

Provider [ldap] does not exist. #324

Answered by stevebauman
luis-gmonkey asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @luis-gmonkey,

When calling php artisan ldap:import, you must supply the authentication provider's key if it is not named ldap. For example, in the below config/auth.php file, I have a provider named users:

// config/auth.php

'users' => [
    'driver' => 'ldap',
    'model' => \LdapRecord\Models\ActiveDirectory\User::class,
    'database' => [
        // ...
    ],
],

Then to run the import on this authentication provider, I would execute the below command:

php artisan ldap:import users

Hope this helps!

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@stevebauman
Comment options

@luis-gmonkey
Comment options

@stevebauman
Comment options

Answer selected by luis-gmonkey
Comment options

You must be logged in to vote
1 reply
@stevebauman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants