Ad account expiration
Vai alla navigazione
Vai alla ricerca
fetch today timestamp from: https://www.epochconverter.com/ldap
List people with account expired:
$ sudo ./bin/ldbsearch -b 'DC=unimore,DC=it' -H private/sam.ldb '(&(!(accountExpires=0))(accountExpires<=133262761700000000))' cn accountExpires
Confirm with:
$ sudo ./bin/pdbedit -Lv this_user
Revert:
$ sudo ./bin/pdbedit -K never this_user