Open Vergence007 opened 4 years ago
Morning, See below my larevel_log when i try to login : [2020-06-17 13:09:17] local.INFO: User 'Isaac Newton' has been successfully found for authentication. [2020-06-17 13:09:17] local.INFO: User 'Isaac Newton' is being synchronized. [2020-06-17 13:09:17] local.INFO: User 'Isaac Newton' has been successfully synchronized. [2020-06-17 13:09:17] local.INFO: User 'Isaac Newton' is authenticating with username: '' [2020-06-17 13:09:17] local.ERROR: A username must be specified. {"exception":"[object] (Adldap\Auth\UsernameRequiredException(code: 0): A username must be specified."
Morning, After checking again, i notice that 1- I can login with account created after register into laravel by can't use account created into my database after import ldap. 2- dd(Auth::users()->attempt(['username'=>'newton', 'password'=>'password'])) not work (error : username must be specified). 3- dd(Adldap::auth()->attempt('uid=newton,dc=example,dc=com', 'password')); Works
Description:
Morning, I keep getting the message "A username must be specified." when trying to login my app. Connection to LDAP is OK, sync also, in my database/table users i see all username with password. But can't login with anyone username.
my .env
my ldap.php
my ldap_auth
my loginController