[Samba] `samba-tool user create --must-change-at-next-login my_user` doesn't appear to work on W10

Rowland Penny rpenny at samba.org
Sun Oct 31 09:10:47 UTC 2021


On Sat, 2021-10-30 at 17:32 -0500, Patrick Goetz via samba wrote:
> I created a user my_user as so:
> 
>     samba-tool user create --must-change-at-next-login my_user
> 
> But in logging in on a domain-joined Windows 10 machine as my_user,
> it 
> never asked me to change my password.  I tried logging out and
> logging 
> back in multiple times.
> 
> Am I missing some trick?

The usage is samba-tool user create <username> [<password>] [options]
You appear to have used: samba-tool user create [options] <username>
Not sure if this has any bearing though. Ultimately adding --must-
change-at-next-login sets the users pwdLastSet attribute to 0, so you
could check if this is happening.

Rowland





More information about the samba mailing list