[Samba] user password hash
Jonathon Reinhart
jonathon.reinhart at gmail.com
Tue Oct 8 11:53:59 UTC 2019
On Tue, Oct 8, 2019, 07:45 Rowland penny via samba <samba at lists.samba.org>
wrote:
> On 08/10/2019 12:27, Elias Pereira via samba wrote:
> > hello list,
> >
> > What kind of hashing/encryption samba4 ADDC uses for user passwords?
> base64?
>
Base64 is neither a hash nor an encryption algorithm; it is an encoding.
>
> > Thanks!
> >
> Basically yes, but it is a bit more involved, to create an AD users
> passwords in bash, you would have to do something like this:
>
> UNICODEPW=$(echo -n "\"$PASSWORD\"" | iconv -f UTF-8 -t UTF-16LE |
> base64 -w 0)
>
Where is this scheme applied? Are you saying Samba stores plaintext
passwords in the database?
Jonathon
>
More information about the samba
mailing list