idmap_ad: Fix retrieving credentials from clustered secrets.tdb
authorChristof Schmitt <cs@samba.org>
Mon, 26 Sep 2016 21:40:28 +0000 (14:40 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 29 Sep 2016 20:17:20 +0000 (22:17 +0200)
commit7a3b7804cba53a21739e8912b005ab498e921eb7
tree8068e70def75f69ee44b6816f60eb2c482c7a0b5
parent1017b22f68e798a080e0738d3beecf008b2284ef
idmap_ad: Fix retrieving credentials from clustered secrets.tdb

cli_credentials_set_machine_account only reads from a local tdb. Change
that call to cli_credentials_set_machine_account_db_ctx to fix this for
clustered Samba.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12295

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/winbindd/idmap_ad.c