diff options
Diffstat (limited to 'source3/passdb/passdb.c')
-rw-r--r-- | source3/passdb/passdb.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index e3a3d3ca9e..2df2a9c3ce 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -1517,11 +1517,15 @@ bool pdb_increment_bad_password_count(struct samu *sampass) return True; } +bool is_dc_trusted_domain_situation(const char *domain_name) +{ + return IS_DC && !strequal(domain_name, lp_workgroup()); +} + bool is_trusted_domain_situation(const char *domain_name) { - return IS_DC && - lp_allow_trusted_domains() && - !strequal(domain_name, lp_workgroup()); + return is_dc_trusted_domain_situation(domain_name) && + lp_allow_trusted_domains(); } /******************************************************************* |