Web lists-archives.com

Re: [Samba] retrieve machine password in current Samba?

On Tue, 2017-11-21 at 15:59 +0000, IT Support via samba wrote:
> On Thu Sep 7 23:41:01 UTC 2017, Andrew Bartlett via samba wrote:
> > 
> > I've looked into this, and I don't think we have changed the format, it
> > is just that we stopped keeping to ascii and small lengths for the
> > passwords.  That flood of binary stuff is really the password!
> > 
> > So, the tdbdump output is still correct, but do you have to un-escape
> > it.
> > 
> > Otherwise, the attached script will print it on stdout, if you like it
> > and it works for you I can drop it in source4/scripting/bin for
> > posterity.
> Greetings,
> Sorry to jump on an old thread, but have just stumbled across this
> and would also find such a script useful. AFAICT, the attachment
> mentioned above isn't available to download from the mailing list
> archive.
> Please could you direct me to where I can find a copy please? Have
> checked source4/scripting/bin, but not sure the file name and doesn't
> appear to be in master, would it be in a specific branch?

Here is is.  I need to write a test before it can get into master (or
co-opt Gary into doing it ;-)

There is also a mymachinepw script there, but that would only work on
the AD DC, not on a member server.

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   

To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba