This account is otherwise just like the workstation trust acocunt, so use that code.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10891
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
switch (sec_channel_type) {
case SEC_CHAN_WKSTA:
+ case SEC_CHAN_BDC:
pwd = secrets_fetch_machine_password(domain,
&pass_last_set_time,
NULL);
switch (sec_channel_type) {
case SEC_CHAN_WKSTA:
+ case SEC_CHAN_BDC:
if (!secrets_store_machine_password(new_trust_passwd, domain, sec_channel_type)) {
TALLOC_FREE(frame);
return NT_STATUS_INTERNAL_DB_CORRUPTION;
break;
default:
+ smb_panic("Unsupported secure channel type");
break;
}