LDAP_PORT undefined
Issue #1179
resolved
Another one error related to changes in auth.php.
2021/05/24 15:43:42 [error] 2638#2638: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant LDAP_PORT - assumed 'LDAP_PORT' (this will throw an Error in a future version of PHP) in /var/piler/www/model/user/auth.php on line 183" while reading response header from upstream, client: ip, server: mailpiler.domain, request: "POST /login.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "mailpiler.domain", referrer: "http://mailpiler.domain/login.php"
Currently our workaround is to replace
$ldap_host = LDAP_HOST;
with
$ldap_port = !empty(LDAP_PORT) ? LDAP_PORT : '389';
piler 1.3.11 build 1001
Comments (2)
-
repo owner -
repo owner - changed status to resolved
- Log in to comment
Thanks for noticing. I suggest to remove this line. $ldap_port should not be used any longer. I’ve just committed this fix to the master branch.