net: net should just use machine account creds when changing passwords.
authorGünther Deschner <gd@samba.org>
Thu, 28 Aug 2008 22:06:09 +0000 (00:06 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jan 2009 09:11:49 +0000 (10:11 +0100)
Guenther
(cherry picked from commit 09145720b510647e7c24e3062a4a1246cc7bff5b)

source/utils/net_rpc.c

index 4b77db957375b00e6c472a513eb3c4cceae79cd8..54ebd7b14e059ffc1c74905e1e57a98eecd2354c 100644 (file)
@@ -227,6 +227,8 @@ static NTSTATUS rpc_changetrustpw_internals(const DOM_SID *domain_sid,
 
 int net_rpc_changetrustpw(int argc, const char **argv) 
 {
+       net_use_machine_account();
+
        return run_rpc_command(NULL, PI_NETLOGON, NET_FLAGS_ANONYMOUS | NET_FLAGS_PDC, 
                               rpc_changetrustpw_internals,
                               argc, argv);