samba-tool user setexpiry is broken in 4.7

Andreas Schneider asn at
Tue Aug 1 16:07:52 UTC 2017


The command 'samba-tool user setexpiry' doesn't work!


make testenv SELFTEST_TESTENV=ad_member

$ bin/samba-tool user setexpiry alice --days=4 --URL=ldap:// --username=administrator --password=locDCpass1
Expiry for user 'alice' set to 4 days.

$ bin/wbinfo --name-to-sid alice
S-1-5-21-1321629873-2603511802-1948877269-1105 SID_USER (1)

$ bin/rpcclient ncacn_np:localdc -UAdministrator%locDCpass1 -c "queryuser 
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!

Either the test python/samba/tests/samba_tool/ does not work as it 
should, or there is a bug in the rpc server.


More information about the samba-technical mailing list