f3-factory / fatfree-core

Fat-Free Framework core library
GNU General Public License v3.0
206 stars 89 forks source link

Auth Plugin: LDAP behaves wrong on wrong passwords #315

Open adkurz opened 4 years ago

adkurz commented 4 years ago

I tried to use the LDAP-method of F3s auth Plugin. With right uuid and password, everything is perfect. But if the password is wrong, there is an user error LDAP connection failed. But the connection is right, because on right login credentials, everything works fine. System: PHP 7.4, Debian, Fatfreecore latest commit.

KOTRET commented 4 years ago

I guess you meant that @ldap_bind($dc,$info[0]['dn'],$pw) should be treated as return value in case the connection to the ldap itself succeeded. Sounds reasonable.

adkurz commented 4 years ago

Yes, exactly.