DirectoryTree / LdapRecord-Laravel

Multi-domain LDAP Authentication & Management for Laravel.
https://ldaprecord.com/docs/laravel/v3
MIT License
509 stars 54 forks source link

LDAP Authentication not working #378

Closed naveen-099 closed 2 years ago

naveen-099 commented 2 years ago

login is not working when the user tries to login with email and password getting the below log message not able to understand

*Operation: Search - Base DN: DC=sampledev,DC=local - Filter: (&(objectclass=f)(objectclass=fe)(objectclass=feafecfe)(objectclass=effe)(mail=eeedcccefd)) - Selected: (entryuuid,) - Time Elapsed: 66.35 **

when output the user data it prints like below

"sn" => array:2 [▼ "count" => 1 0 => "P" ] 0 => "sn" "givenname" => array:2 [▼ "count" => 1 0 => "John" ] 1 => "givenname" "samaccountname" => array:2 [▼ "count" => 1 0 => "TEST1234" ] 2 => "samaccountname" "mail" => array:2 [▼ "count" => 1 0 => "John@mailinator.com" ] 3 => "mail" "count" => 4 "dn" => "CN=John P,CN=Users,DC=sampledev,DC=local" ]

in Login Controller coded as below

protected function credentials(Request $request){

    return [
        'mail' => $request->email,
        'password' => $request->password,
    ];
}
stevebauman commented 2 years ago

Hi,

I'm sorry, but due to my own time restrictions, I can now only support users who have sponsored me on GitHub. I've updated the readme to reflect this change:

LdapRecord-Laravel is Supportware™ If you require support using LdapRecord-Laravel, a sponsorship is required 🙏

Thank you for your understanding :heart: