[Samba] "Store passwords using reversible encryption" from command line

Andrew Bartlett abartlet at samba.org
Wed Feb 5 11:45:23 MST 2014

On Wed, 2014-02-05 at 09:34 -0300, Diego Woitasen wrote:
> Right, but that changes the global option. The per user flag is needed
> to. I've found how to do it with a Python script:
>     samdb.toggle_userAccountFlags("(samaccountname=%s)" % \
>             (str(r["sAMAccountName"])),
>             samba.dsdb.UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED, on=True)

Patches to allow this in samba-tool are welcome :-)

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

More information about the samba mailing list