From 5adf8c8634ccc2dc63fb1f64d3dfa11449c78272 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 27 Aug 2012 19:28:56 +1000 Subject: [PATCH] s3-secrets: Handle all valid ROLE_ values in get_default_sec_channel() --- source3/passdb/machine_account_secrets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/passdb/machine_account_secrets.c b/source3/passdb/machine_account_secrets.c index 1e4111a7c58..300455a2e56 100644 --- a/source3/passdb/machine_account_secrets.c +++ b/source3/passdb/machine_account_secrets.c @@ -307,7 +307,8 @@ void *secrets_get_trust_account_lock(TALLOC_CTX *mem_ctx, const char *domain) enum netr_SchannelType get_default_sec_channel(void) { if (lp_server_role() == ROLE_DOMAIN_BDC || - lp_server_role() == ROLE_DOMAIN_PDC) { + lp_server_role() == ROLE_DOMAIN_PDC || + lp_server_role() == ROLE_ACTIVE_DIRECTORY_DC) { return SEC_CHAN_BDC; } else { return SEC_CHAN_WKSTA;