How to import passwords to Heimdal?

Michael Wood esiotrot at
Fri Nov 18 00:17:40 MST 2011


On 17 November 2011 23:44, Steve Gaarder <gaarder at> wrote:
> THanks - this is helpful.  I have a couple questions:
> 1.  In the Heimdall dump file, I see several arcfour-hmac-md5 (type 23)
>   hashes for my test user; they appear to have different salts.  I assume
>   I should use the one with the default ("-") salt, correct?

Sorry, I can't remember off hand, but it seems likely.

> 2. THe password in the dump file is in hex.  WHat do I need to do to it
> before passing it to the ('"%s"' % password).encode("utf-16-le") operation?

As far as I remember you should do the following before encoding it as above:

password = hexpass.decode("hex")

Michael Wood <esiotrot at>

More information about the samba-technical mailing list