[Samba] 'samba-tool user setpassword', PwdLastSet and expiration...

Andrew Bartlett abartlet at samba.org
Tue Aug 27 19:02:02 UTC 2019


On Tue, 2019-08-27 at 18:19 +0200, Marco Gaiarin via samba wrote:
> I resend this:
> 
> > I've a script 'infrastructure' that manage password propagation
> > between
> > some domains/password sources.
> > 
> > When, in my AD domains, i ''consume'' a passord caming from another
> > domain, i run:
> > 
> > 	samba-tool user setpassword ${USER} --option="check password
> > script"="" --newpassword="$mypassword"
> > 
> > and the script exit with status 0 and print 'Changed password OK',
> > but
> > sometimes does not update PdwLastSet, and so users (if password are
> > expired) cannot login, eg, with ssh (pam/winbind).
> > 
> > If i logon on windows, PdwLastSet get updated.
> > 
> > 
> > There's something i can do to 'force' PdwLastSet update? Thanks.
> 
> a bit because holiday passwed, a bit because i've spotted another
> time
> this 'bug'.
> 
> A user (that access my server remotely, only via SSH) changed their
> password in this way (eg, via 'samba-tool user setpassword'), but
> account expired (get disabled) because 'PdwLastSet' get no update.

Which Samba version is this?

Andrew Bartlett
-- 
Andrew Bartlett                       https://samba.org/~abartlet/
Authentication Developer, Samba Team  https://samba.org
Samba Developer, Catalyst IT          
https://catalyst.net.nz/services/samba






More information about the samba mailing list