Otherwise for example contacts wouldn't be listed when the
--hide-expired option is used. Contacts typically do not have the
accountExpires attribute.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14692
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Rowland penny <rpenny@samba.org>
Autobuild-User(master): Björn Baumbach <bb@sernet.de>
Autobuild-Date(master): Mon Apr 26 13:21:43 UTC 2021 on sn-devel-184
filter_expires = ""
if hide_expired is True:
current_nttime = samdb.get_nttime()
- filter_expires = \
- "(|(accountExpires=0)(accountExpires>=%u))" % (current_nttime)
+ filter_expires = ("(|"
+ "(!(accountExpires=*))"
+ "(accountExpires=0)"
+ "(accountExpires>=%u)"
+ ")" % (current_nttime))
filter_disabled = ""
if hide_disabled is True:
+++ /dev/null
-^samba4.blackbox.group.py