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

Diego Woitasen diego at woitasen.com.ar
Wed Feb 5 05:34:56 MST 2014


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)



On Tue, Feb 4, 2014 at 8:05 PM, Andrew Bartlett <abartlet at samba.org> wrote:
> On Sat, 2014-01-18 at 09:03 -0300, Diego Woitasen wrote:
>> Hi,
>>  Is it possible to set "Store passwords using reversible encryption"
>> option on every user from the command line? Or writing a Python
>> script?
>>
>> Regards,
>>   Diego
>>
>> --
>> Diego Woitasen
> sudo bin/samba-tool domain passwordsettings show
>
> sudo bin/samba-tool domain passwordsettings --store-plaintext=on
> --
> Andrew Bartlett
> http://samba.org/~abartlet/
> Authentication Developer, Samba Team  http://samba.org
> Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba
>
>
>
>



-- 
Diego Woitasen
Linux and Open Source solutions architect at www.vhgroup.net


More information about the samba mailing list