mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-secrets: Handle all valid ROLE_ values in get_default_sec_channel()
This commit is contained in:
parent
708ce41b32
commit
5adf8c8634
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user