Setup infos:
Linux CentOS Linux wiki 2.6.32-358.2.1.el6.x86_64
Authentication against active directory (Win SBS 2010)
On the line 221 in the file
https://github.com/splitbrain/dokuwiki/blob/master/lib/plugins/authad/auth.php#L221
$adldap->user()->passwordExpiry($user); returns an Array (as seen in
https://github.com/splitbrain/dokuwiki/blob/master/lib/plugins/authad/adLDAP/classes/adLDAPUsers.php#L328 and L382) but an int is expected.
The following exception is triggered:
PHP Fatal error: Unsupported operand types in /var/www/html/wiki/lib/plugins/authad/auth.php on line 222, referer:
http://wiki/doku.php?id=start&do=login
I temporary took the value $timeleft[0]
219 // check expiry time
220 if($info['expires'] && $this->conf['expirywarn']){
221 $timeleft = $adldap->user()->passwordExpiry($user); // returns unixtime
222 $timeleft = round($timeleft[0]/(24*60*60));
223 $info['expiresin'] = $timeleft;
224
But Dokuwiki says that the password is going to expire in 0 Days.