[Samba] Password must change

Rowland penny rpenny at samba.org
Thu Apr 28 19:15:08 UTC 2016


On 28/04/16 19:49, Carlos A. P. Cunha wrote:
>
> Hello!
> I had looked at the options, and found nothing to what I want to do ...
> Because of this, I tried alteranativas with "pdbedit".
>
> Any other option?
>
> Goodbye
>
>
> Em 28-04-2016 15:09, Rowland penny escreveu:
>> samba-tool domain passwordsettings --help
>

OK, the users password must have expired, this means that the 
'pwdLastSet' attribute will now contain '0', if you want to un-expire 
the password, you need to change this to '-1'. When the user next logs 
in, 'pwdLastSet' will get set to the current date/time.
You cannot set 'pwdLastSet' to anything other than '0' or '-1'

Do you want to go to all the trouble of changing an attribute with ldb 
or similar, or do what I suggested earlier ?

Rowland


More information about the samba mailing list