We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hello
i found a bug on the authldap class. In getAllUsers function, a variable is not set correctly:
https://github.com/glpi-project/glpi/blob/9.2/bugfixes/inc/authldap.class.php#L1767-L1768
$userfound=false; if (!empty($ldap_users[$user[$field_for_db]]) || ($userfound = self::dnExistsInLdap($user_infos, $user['user_dn']))) { ....
the "userfound" variable can be not set if the first test is true. The second test is not checked, so the userfound variable stay at 'false'.
i suggest to set variable during declaration:
$userfound=self::dnExistsInLdap($user_infos, $user['user_dn']); if (!empty($ldap_users[$user[$field_for_db]]) { ....
best regards cristo
The text was updated successfully, but these errors were encountered:
Change variable declaration; fixes glpi-project#3544
03eb485
1773109
9938043
Change variable declaration; fixes #3544
9c464f4
No branches or pull requests
hello
i found a bug on the authldap class.
In getAllUsers function, a variable is not set correctly:
https://github.com/glpi-project/glpi/blob/9.2/bugfixes/inc/authldap.class.php#L1767-L1768
the "userfound" variable can be not set if the first test is true. The second test is not checked, so the userfound variable stay at 'false'.
i suggest to set variable during declaration:
best regards
cristo
The text was updated successfully, but these errors were encountered: