Author Topic: ldap filter for accountExpires  (Read 1464 times)

Offline jwschow

  • Newbie
  • *
  • Posts: 4
ldap filter for accountExpires
« on: November 08, 2021, 04:17:57 AM »
Hi all,

In config.inc.php, I use LDAP for addressbook with filter which works fine:

'filter' => '....',

But when I add:

'filter' => '(|(accountExpires=9223372036854775807)(accountExpires=0))',
OR
'filter' => '(accountExpires>=132809471400000000)',  //today

It does not take effect in roundcube.

Actually, I want to exclude the expired account (with expiry date).

BTW, if possible, can roundcube provides today valuable therefore I can write:

'filter' => '(accountExpires>=$today)',

Thanks.