[Samba] Password must change

Rowland penny rpenny at samba.org
Thu Apr 28 18:09:05 UTC 2016


On 28/04/16 18:04, Carlos A. P. Cunha wrote:
> Hello!
> Own Samba 4.4 as ADDC with this cnfiguração passwords:
>
>
> root @ Upsilon: ~ # samba-domain tool PasswordSettings show
> Password informations for domain 'DC = XXXXXXXX "
>
> Password complexity: on
> Store plaintext passwords: off
> Password history length: 24
> Minimum password length: 7
> Minimum password age (days): 1
> Maximum password age (days): 400
> Account lockout duration (mins): 30
> Account lockout threshold (attempts): 0
> Reset account lockout after (mins): 30
>
>
> But I would like a User password had expired less days:
>
> pdbedit -u -v mark
>
> It has the attribute:
>
> Password must change
>
> I would like to change this, it is possible?
>
> I tried this way
>
> pdbedit --pwd-must-change-time = "29/04/2016" --time-format = "% Y-% 
> m-% d" mark
>
> However it did not work.
>
> Goodbye
>

Not sure that will ever work, why not just change the users password and 
then set the maximum password age, see 'samba-tool domain 
passwordsettings --help' for more info

Rowland




More information about the samba mailing list