Bug 12943 - samba-tool user setexpiry doesn't work
Summary: samba-tool user setexpiry doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.7.0rc3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-01 16:00 UTC by Andreas Schneider
Modified: 2017-08-02 08:41 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2017-08-01 16:00:46 UTC
The command 'samba-tool user setexpiry' doesn't work!

Reproducer:

make testenv SELFTEST_TESTENV=ad_member

$ bin/samba-tool user setexpiry alice --days=4 --URL=ldap://localdc.samba.example.com --username=administrator --password=locDCpass1

$ bin/rpcclient ncacn_np:localdc -UAdministrator%locDCpass1 -c "queryuser 1105"
User Name   :   alice
...
Password last set Time   :      Tue, 01 Aug 2017 17:50:08 CEST
Password must change Time:      Tue, 12 Sep 2017 17:50:08 CEST

The must change time is 41 days away and not 4 days as set!