adldap / adLDAP

adLDAP is a PHP class that provides LDAP authentication and integration with Active Directory.
GNU Lesser General Public License v2.1
424 stars 204 forks source link

Fix user()->authenticate() method #146

Open MrTAN1AX opened 1 year ago

MrTAN1AX commented 1 year ago

Hello everyone,

I know this project is deprecated but if you still use this library and you recently update your php version You probably will encounter some problem with the method above of the class adldapUsers

replace this part of code at line 448

for ($i = 0; $i < $length; $i++) { $encoded .= "{$password{$i} }\000"; }

with this one

for ($i = 0; $i < $length; $i++) { $encoded .= $password[$i]; }

Bye.