[Samba] user password hash

Rowland penny rpenny at samba.org
Tue Oct 8 11:44:56 UTC 2019


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?
>
> 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)

Rowland





More information about the samba mailing list