summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-27 19:28:56 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-28 07:57:29 +1000
commit5adf8c8634ccc2dc63fb1f64d3dfa11449c78272 (patch)
tree242940ebf982536fee2bc92461068a43aed0c070 /source3/passdb
parent708ce41b32881e5a45c38929be66f9a1392dda8a (diff)
downloadsamba-5adf8c8634ccc2dc63fb1f64d3dfa11449c78272.tar.gz
samba-5adf8c8634ccc2dc63fb1f64d3dfa11449c78272.tar.bz2
samba-5adf8c8634ccc2dc63fb1f64d3dfa11449c78272.zip
s3-secrets: Handle all valid ROLE_ values in get_default_sec_channel()
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/machine_account_secrets.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/machine_account_secrets.c b/source3/passdb/machine_account_secrets.c
index 1e4111a7c5..300455a2e5 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;