passdb: Use common code in cli_credentials_set_machine_account_db_ctx()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 2 Oct 2014 17:35:28 +0000 (06:35 +1300)
committerStefan Metzmacher <metze@samba.org>
Thu, 18 Dec 2014 09:46:12 +0000 (10:46 +0100)
commitb14bed45da261591000e439234ee6120f00a5ccd
treec38cc7be93536561d3a0cc65dce81bc53dc13c45
parentd26278a01ade800d0cfbdfa71f675efd522d1faf
passdb: Use common code in cli_credentials_set_machine_account_db_ctx()

This avoids some duplication in setting the machine account passsword
for the domain member and DC case.

This does not yet remove the duplication, that requires a bigger
restructure of the various routines used here to obtain the machine
and domain trust secrets.

Also no longer used is the timeout/2 code to not set the previous
password.  It is now always passed to the caller.

Andrew Bartlett

Change-Id: Idd5bafedf4cbac30b174955d743ec4128a6902ee
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 37f5d822d636d4286bd8ee64c7e9e44ae1a297e1)
source3/passdb/passdb.c