diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-12-23 09:43:03 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2015-01-05 17:01:08 +0100 |
commit | 3c9926055139beee0fcdf532df08fab02cdb298c (patch) | |
tree | cc08f4095f417485bf12c2fb1adee98a9f43cee4 | |
parent | 0c9ee5b82f84182fe7c0182257bd8b67cc93ca37 (diff) | |
download | samba-3c9926055139beee0fcdf532df08fab02cdb298c.tar.gz samba-3c9926055139beee0fcdf532df08fab02cdb298c.tar.xz samba-3c9926055139beee0fcdf532df08fab02cdb298c.zip |
s3:winbindd: mark our primary as active_directory if possible
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
-rw-r--r-- | source3/winbindd/winbindd_util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index 0b7e234c3b..8dab36e3bf 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -213,6 +213,15 @@ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const domain->primary = true; } + if (domain->primary) { + if (role == ROLE_ACTIVE_DIRECTORY_DC) { + domain->active_directory = true; + } + if (lp_security() == SEC_ADS) { + domain->active_directory = true; + } + } + /* Link to domain list */ DLIST_ADD_END(_domain_list, domain, struct winbindd_domain *); |