Skip to content
New issue

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

Fatal error when wrong base DN configured #184

Open
coudot opened this issue Nov 19, 2024 · 0 comments
Open

Fatal error when wrong base DN configured #184

coudot opened this issue Nov 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@coudot
Copy link
Member

coudot commented Nov 19, 2024

If user base DN is not correct in configuration, we get a fatal error:

PHP message: PHP Warning:  ldap_search(): Search: No such object in /usr/local/service-desk/vendor/ltb-project/ltb-common/src/Ltb/PhpLDAP.php on line 56; PHP message: PHP Fatal error:  Uncaught TypeError: ldap_parse_result(): Argument #2 ($result) must be of type LDAP\\Result, false given in /usr/local/service-desk/vendor/ltb-project/ltb-common/src/Ltb/PhpLDAP.php:96\nStack trace:\n#0 /usr/local/service-desk/vendor/ltb-project/ltb-common/src/Ltb/PhpLDAP.php(96): ldap_parse_result()\n#1 /usr/local/service-desk/vendor/ltb-project/ltb-common/src/Ltb/Ldap.php(159): Ltb\\PhpLDAP::ldap_parse_result()\n#2 /usr/local/service-desk/htdocs/search.php(32): Ltb\\Ldap->search()\n#3 /usr/local/service-desk/htdocs/index.php(270): require_once('...')\n#4 {main}\n  thrown in /usr/local/service-desk/vendor/ltb-project/ltb-common/src/Ltb/PhpLDAP.php on line 96', referer: https://sd.example.com/index.php?page=welcome

We should catch the error.

@coudot coudot self-assigned this Nov 19, 2024
@coudot coudot added the bug Something isn't working label Nov 19, 2024
@coudot coudot added this to the 0.6 milestone Nov 19, 2024
@davidcoutadeur davidcoutadeur self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants