Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

use both database and adldap for auth #18

Closed
timothyrowan opened this issue Oct 13, 2015 · 5 comments
Closed

use both database and adldap for auth #18

timothyrowan opened this issue Oct 13, 2015 · 5 comments
Labels

Comments

@timothyrowan
Copy link

i will have some users authing against the db and some authing against the active directory.
i've accomplished this with the standard laravel auth controller and the Adldap::authenticate() method and some duct tape.

just wondering if there is an easier/more seamless way

thanks, i love this

@stevebauman
Copy link
Member

This already occurs with the Adldap laravel Auth driver, it creates a local database record of an authenticated LDAP user. If you're looking to use the eloquent auth driver along side the Adldap auth driver, you'll need to switch your selected auth driver on the fly using Config::set('auth.driver', 'eloquent');.

@timothyrowan
Copy link
Author

you're awesome, thanks

@stevebauman
Copy link
Member

No problem! Any other concerns / questions please don't hesitate to create an issue.

@modbase
Copy link

modbase commented Nov 17, 2015

The Auth driver indeed creates a local database record and syncs the password, but if the Domain Controller is not available, I expect the login still succeeds if the password matches the one in the database.

For local development, I don't have a domain controller available, so authentication always fails when the adldap auth driver is used.

@stevebauman
Copy link
Member

@modbase I agree that this should be a configurable option. I'll be implementing this on the Laravel repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants