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)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Oct 2014 10:57:07 +0000 (12:57 +0200)
commit37f5d822d636d4286bd8ee64c7e9e44ae1a297e1
treeb28fd5233b097406c962d0cca5ee4972486fdc63
parente9dc6423d3f1ab3401314e134ecc574fc5d4c18b
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>
source3/passdb/passdb.c