<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Ah, good, that means that our emails have crossed in the post, and
you agree with my fix.<br>
<br>
Please can you just confirm that for me?<br>
<br>
Thanks!<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 31/08/2020 17:48, Etienne Vogt via
ZendTo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!3f0f49b99112b2a8ee72c71409b13b503e4585025a3b525fb3d9e7ec0990f40cd9d0fc871aa3464369204c6d6020b85a!@mx.jul.es">On
Mon, 31 Aug 2020, Etienne Vogt via ZendTo wrote:
<br>
<br>
<blockquote type="cite">I've just upgraded ZendTo to the last
6.05-2 and LDAP authentication
<br>
no longer works. Our users get a blank page and we get the
following
<br>
PHP error message in /var/log/apache2/zendto_error.log (real
login
<br>
and password replaced with fake ones) :
<br>
<br>
[Mon Aug 31 18:23:25.035288 2020] [php7:error] [pid 31732]
[client 145.238.184.196:33360] PHP Fatal error: Uncaught
ArgumentCountError: Too few arguments to function
NSSAuthenticator::authenticate(), 3 passed in
/opt/zendto/lib/NSSLDAPAuthenticator.php on line 392 and exactly
4 expected in /opt/zendto/lib/NSSAuthenticator.php:165\nStack
trace:\n#0 /opt/zendto/lib/NSSLDAPAuthenticator.php(392):
NSSAuthenticator->authenticate('login', 'password',
Array)\n#1 /opt/zendto/lib/NSSMultiAuthenticator.php(154):
NSSLDAPAuthenticator->authenticate('login', 'password',
Array, '')\n#2 /opt/zendto/lib/NSSDropbox.php(2332):
NSSMultiAuthenticator->authenticate('login', 'password',
Array, '')\n#3 /opt/zendto/lib/NSSDropbox.php(620):
NSSDropbox->userFromAuthentication()\n#4
/opt/zendto/www/index.php(35):
NSSDropbox->__construct(Array)\n#5 {main}\n thrown in
/opt/zendto/lib/NSSAuthenticator.php on line 165
<br>
<br>
We are running ZendTo on a Debian 10 LXC container.
<br>
</blockquote>
<br>
Here's a quick and dirty patch that seems to correct the problem :
<br>
<br>
--- /opt/zendto/lib/NSSLDAPAuthenticator.php~ 2020-08-13
13:49:42.000000000 +0200
<br>
+++ /opt/zendto/lib/NSSLDAPAuthenticator.php 2020-08-31
18:45:11.319698698 +0200
<br>
@@ -389,7 +389,7 @@
<br>
}
<br>
// Chain to the super class for any further
properties to be added
<br>
// to the $response array:
<br>
- parent::authenticate($uname,$password,$response);
<br>
+
parent::authenticate($uname,$password,$response,$errormsg);
<br>
}
<br>
}
<br>
}
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'Adversity is like a strong wind. I don't mean just that it holds
us back from places we might otherwise go. It also tears away from
us all but the things that cannot be torn, so that afterward we see
ourselves as we really are, and not merely as we might like to be.'
- Arthur Golden
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</body>
</html>