1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3-secrets: Handle all valid ROLE_ values in get_default_sec_channel()

This commit is contained in:
Andrew Bartlett 2012-08-27 19:28:56 +10:00
parent 708ce41b32
commit 5adf8c8634

View File

@ -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) enum netr_SchannelType get_default_sec_channel(void)
{ {
if (lp_server_role() == ROLE_DOMAIN_BDC || 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; return SEC_CHAN_BDC;
} else { } else {
return SEC_CHAN_WKSTA; return SEC_CHAN_WKSTA;