Samba – Extracting the machine account domain password from the registry

active-directorysamba

If I understand correctly, to join a Windows domain, a machine needs to have an account on Active Directory, and have the password to authenticate. Such a password is renewed automatically every 30 days.

Now, I have a Linux machine on the corporate network, with the IT dept's blessing, and Samba can join a domain and would allow me to do so, but they don't want to add it. I want to use the account I have on a Windows machine I'm going to reformat anyway. I couldn't find a way to decode the key stored in the registry.

Best Answer

It is possible to dump the hashes from a Windows system and import them into Samba. The process is explained here http://ppp.samba.org/samba/ftp/pwdump/README. However do consider the IT department might not be happy with you doing such things and there is no guarante that it will work for what your trying to do.