This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Fixed
FS#2788 LDAP auth plugin warning on null parameter passed to in_array()
ACL & Authentication
2013-05-24brunosabin
Using Weatherwax on a Linux server with php.ini "error_reporting = E_ALL & ~E_DEPRECATED" and "display_errors = On". Configured LDAP authentication for corporate environment.
The following warning will get displayed the first time you authenticate on dokuwiki:
Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/php/wiki.d/dokuwiki/lib/plugins/authldap/auth.php on line 251
This is not new - I have been patching locally for quite sometime. This report is to simply suggest the following patch to the LDAP maintainer:
// always add the default group to the list of groups
- if(!in_array($conf['defaultgroup'], $info['grps'])) {
+ if(sizeof($info['grps']) == 0 || !in_array($conf['defaultgroup'], $info['grps'])) {
$info['grps'][] = $conf['defaultgroup'];
}
return $info;