git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c9ee5b
)
s3:winbindd: mark our primary as active_directory if possible
author
Stefan Metzmacher
<metze@samba.org>
Tue, 23 Dec 2014 09:43:03 +0000
(09:43 +0000)
committer
Günther Deschner
<gd@samba.org>
Mon, 5 Jan 2015 16:01:08 +0000
(17:01 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/winbindd/winbindd_util.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_util.c
b/source3/winbindd/winbindd_util.c
index 0b7e234c3b8263bb0f4493cca156c01b4b1c18fa..8dab36e3bf741e19812b3670ccc9c946c1f3f03c 100644
(file)
--- 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 *);