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

fix uninitialized variable warnings in logs #887

Closed
davidcoutadeur opened this issue Apr 17, 2024 · 1 comment · Fixed by #888
Closed

fix uninitialized variable warnings in logs #887

davidcoutadeur opened this issue Apr 17, 2024 · 1 comment · Fixed by #888
Assignees
Labels
Milestone

Comments

@davidcoutadeur
Copy link

davidcoutadeur commented Apr 17, 2024

fix unitialized variable warnings in logs:

[Wed Apr 17 15:16:54.138187 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] Module Zxcvbn successfully loaded, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138587 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP Warning:  Undefined variable $ldap_network_timeout in /home/user/Documents/self-service-password/htdocs/index.php on line 115, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138617 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP Stack trace:, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138624 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP   1. {main}() /home/user/Documents/self-service-password/htdocs/index.php:0, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138631 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP Warning:  Undefined variable $ldap_user_base in /home/user/Documents/self-service-password/htdocs/index.php on line 115, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138635 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP Stack trace:, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138640 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP   1. {main}() /home/user/Documents/self-service-password/htdocs/index.php:0, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138664 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP Warning:  Undefined variable $ldap_size_limit in /home/user/Documents/self-service-password/htdocs/index.php on line 115, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138673 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP Stack trace:, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138678 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP   1. {main}() /home/user/Documents/self-service-password/htdocs/index.php:0, referer: http://ssp.example.com/
[Wed Apr 17 15:16:54.138685 2024] [php:notice] [pid 29955] [client 127.0.0.1:36530] PHP Warning:  Undefined variable $ldap_krb5ccname in /home/user/Documents/self-service-password/htdocs/index.php on line 115, referer: http://ssp.example.com/
@davidcoutadeur davidcoutadeur added this to the 1.6.0 milestone Apr 17, 2024
@davidcoutadeur davidcoutadeur self-assigned this Apr 17, 2024
@davidcoutadeur davidcoutadeur changed the title fix unitialized variable warnings in logs fix uninitialized variable warnings in logs Apr 17, 2024
davidcoutadeur pushed a commit that referenced this issue Apr 17, 2024
fix warnings for variables:
$ldap_network_timeout, $ldap_user_base, $ldap_size_limit and $ldap_krb5ccname

also fix instanciation of ldap connection in rest api and scripts
@davidcoutadeur
Copy link
Author

Done in last commit.

It introduces a new parameter in default configuration file:

$ldap_network_timeout = 10;

davidcoutadeur pushed a commit that referenced this issue Apr 17, 2024
fix warnings for variables:
$ldap_network_timeout, $ldap_user_base, $ldap_size_limit and $ldap_krb5ccname

also fix instanciation of ldap connection in rest api and scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant