ltb-project / self-service-password

Web interface to change and reset password in an LDAP directory
https://self-service-password.readthedocs.io/en/latest/
GNU General Public License v3.0
1.17k stars 327 forks source link

Bad error catching in scripts/multi_ldap_change.php #970

Closed coudot closed 2 months ago

coudot commented 2 months ago

Same issue than #698 but in scripts/multi_ldap_change.php:

PHP Fatal error:  Uncaught TypeError: ldap_get_dn(): Argument #2 ($entry) must be of type LDAP\ResultEntry, bool given in /usr/share/self-service-password/scripts/multi_ldap_change.php:79
Stack trace:
#0 /usr/share/self-service-password/scripts/multi_ldap_change.php(79): ldap_get_dn()
#1 {main}
  thrown in /usr/share/self-service-password/scripts/multi_ldap_change.php on line 79