ldap filter點樣check account expiry?
Hi,
如果係PHP, 我通常咁:
'filter' => '(&(objectClass=user)(mail=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))',
但係就冇辦法將expired account踢走. 我見過有咁:
(!accountExpires=0)(!accountExpires=9223372036854775807)
但係都唔得. 我通常會set expiry date. 有冇方法?
Thanks. |
|