Backport of !15199 (merged)
@larena https://github.com/leenooks/phpLDAPadmin/issues/130#issuecomment-737484140