I want to send an RPC to the DC using the machine account credentials ... where do I start?

Volker Lendecke Volker.Lendecke at SerNet.DE
Sun Aug 11 00:09:55 MDT 2013


On Sat, Aug 10, 2013 at 12:47:26PM -0700, Richard Sharpe wrote:
> I am wanting to call various RPCs against the DC(s) but using the
> machine account creds.

Are you going to use rpcclient, net or another command? Or
do you want to do that with custom code?

smblclient has [-P|--machine-pass] as an option. The
relevant code is:

if (get_cmdline_auth_info_use_machine_account(auth_info) &&
    !set_cmdline_auth_info_machine_account_creds(auth_info))
{
        exit(-1);
}

in client.c. I did not find that in rpcclient.c with a quick
glance, but that might give you a hint.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba-technical mailing list