Bug#941165: gosa: Fatal error when opening user list

Frederik Himpe fhimpe at ai.vub.ac.be
Mon Jul 27 13:10:29 BST 2020


On Fri, 2020-01-03 at 12:07 +0100, Mike Gabriel wrote:
> 
> I just encountered the same issue. The problem is probably that your 
> LDAP user "nobody" does not have the userPassword: LDAP attribute 
> description set with some value. A work-around for your issue could
> be 
> to use another LDAP editor (such as ldapvi) and add userPassword: 
> blablabla to the LDAP object of user "nobody".

That's correct. If a user has no password, then simply no argument is
passed to filterLockImage and filterLockLabel, which both expect 1
argument $userpassword. Sending less arguments than expected is fatal
since PHP 7.1.

The simple solution is to give it the default value NULL in the
argument list. This works fine with the isset() check within the
function.

Attached is a simple patch which fixes the issue.


-- 
Frederik Himpe <fhimpe at ai.vub.ac.be>
Vrije Universiteit Brussel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gosa-fix-filterlocklabelimage.patch
Type: text/x-patch
Size: 693 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-pkg-team/attachments/20200727/2fb25d60/attachment.bin>


More information about the Debian-edu-pkg-team mailing list