jotaelesalinas / laravel-adminless-ldap-auth

Authenticate users in Laravel against an adminless LDAP server
MIT License
210 stars 33 forks source link

database connection #34

Closed nahuelmellusso closed 4 years ago

nahuelmellusso commented 4 years ago

Hi luis , i trying to connect with my database and make a login but always return false.

this parametere should by my database ?

LDAP_SCHEMA=databasename

or always

LDAP_SCHEMA=OpenLDAP ?

jotaelesalinas commented 4 years ago

LDAP_SCHEMA has to be one of these values: OpenLDAP, FreeIPA or ActiveDirectory.

Ask your LDAP administrator for the specific configuration values.

For the database configuration you use the default DB_CONNECTION, DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME and DB_PASSWORD.

nahuelmellusso commented 4 years ago

I see , thanks man !

nahuelmellusso commented 4 years ago

only one question , laravel continue using bycrypt to hash passwords ?? i can connect to database and retrive user but login fails , its not a new database so i must use password column that i have now

nahuelmellusso commented 4 years ago

Finally login its working , but i dont know is redirecting to login view , and user is not logued , but atemplogin function return true , and auth()->check() return true inside atemp function.