Andrew Bartlett
2019-Aug-27 19:02 UTC
[Samba] 'samba-tool user setpassword', PwdLastSet and expiration...
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
Marco Gaiarin
2019-Aug-28 08:38 UTC
[Samba] 'samba-tool user setpassword', PwdLastSet and expiration...
Mandi! Andrew Bartlett via samba In chel di` si favelave...> Which Samba version is this?Ahem... 4.5.16 on DC, 4.8.12 on DM. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Andrew Bartlett
2019-Aug-28 18:59 UTC
[Samba] 'samba-tool user setpassword', PwdLastSet and expiration...
On Wed, 2019-08-28 at 10:38 +0200, Marco Gaiarin via samba wrote:> Mandi! Andrew Bartlett via samba > In chel di` si favelave... > > > Which Samba version is this? > > Ahem... 4.5.16 on DC, 4.8.12 on DM.I've lost track, but if I've not told you to upgrade then do that. Samba 4.10 would be a good start. This looks connected and I'm sure we have done other work in this area too: https://bugzilla.samba.org/show_bug.cgi?id=9654 Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba