Open stoicadl opened 4 years ago
Hi #! Welcome to this repo.
Hi @stoicadl , you should not touch LoginController. Have you followed the instructions? Have you been able to login inside Tinker?
I made a fresh install, step by step. When I try to login inside Tinker, I get next warnings:
>>> Auth::attempt(['username' => 'einstein', 'password' => ''])
PHP Warning: ldap_search(): Search: Operations error in D:/xampp/htdocs/TestLaravelLDAP/vendor/adldap2/adldap2/src/Connections/Ldap.php on line 286
PHP Warning: ldap_get_entries() expects parameter 2 to be resource, boolean given in D:/xampp/htdocs/TestLaravelLDAP/vendor/adldap2/adldap2/src/Connections/Ldap.php on line 143
=> false
My config in .env is:
LDAP_SCHEMA=OpenLDAP
LDAP_HOSTS=dan.ro
LDAP_BASE_DN=dc=dan,dc=ro
LDAP_USER_SEARCH_ATTRIBUTE=uid
LDAP_USER_BIND_ATTRIBUTE=uid
LDAP_USER_FULL_DN_FMT=${LDAP_USER_BIND_ATTRIBUTE}=%s,${LDAP_BASE_DN}
LDAP_CONNECTION=default
AUTH_USER_KEY_FIELD=username
Hey - I have install jotaelesalinas/laravel-adminless-ldap-auth and I have next code: LogginController.php
But after login, on http://127.0.0.1:8000/home I get this exception:
What am I doing wrong?