Bug 11784 - Allow specifying a date in "samba-tool user setexpiry"
Summary: Allow specifying a date in "samba-tool user setexpiry"
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 14:00 UTC by Yvan Masson
Modified: 2016-03-10 15:33 UTC (History)
1 user (show)

See Also:


Attachments

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

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,
Yvan