Open rafaelcavalcanti opened 5 years ago
Hi @rafaelcavalcanti,
First thing - are you sure you're using OpenLDAP
? In your posted code you have a filter requesting the sAMAccountName
attribute - which does not exist in OpenLDAP.
Hello @stevebauman, that code was just for example, the bind function line its working. But using with this project i cant auth correctly. Maybe there is something wrong with my configuration. Could you please help me?
Description:
I'm trying to connect on a OpenLDAP + NoDatabaseUserProvider but always return false. So, looking into the code i could see this:
https://github.com/Adldap2/Adldap2-Laravel/blob/e7a88e019b13b3a370b31c1e7f5784c5dec1804a/src/AdldapServiceProvider.php#L111
and this:
https://github.com/Adldap2/Adldap2/blob/c406c02b095022555dbad19b4b382ce4b31420af/src/Connections/Provider.php#L253-L268
So the script will always go throught bindAsAdministrator method. If there is no issue on that, what i'm doing wrong?
But when i try by ldap function directly, its works:
I cant upgrade PHP version and Laravel version yet.
Steps To Reproduce:
route/web.php:
config/auth.php:
config/adldap.php:
config/adldap_auth.php:
app\http\controllers\logincontroller.php@LoshowLoginForm:
Thank You