Bug 11784 - Allow specifying a date in "samba-tool user setexpiry"
Allow specifying a date in "samba-tool user setexpiry"
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
All All
: P5 enhancement
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2016-03-10 14:00 UTC by Yvan
Modified: 2016-03-10 15:33 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Yvan 2016-03-10 14:00:17 UTC

If I am not wrong (i.e. if this has not been added since 4.1.17), setting an account expiry date with samba-tool can only be done using the number of days before the expiration:

# disable the account in one year
samba-tool user setexpiry <username> --days=365

It would be nice to be able to specify the date as an alternative (I do not know about the best date format to use however):

# disable the account the tenth of March, 2017:
samba-tool user setexpiry <username> --date=2017-03-10

Thanks for your time and work,