[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-2634-g41e20be
Jeremy Allison
jra at samba.org
Thu May 29 17:38:18 GMT 2008
The branch, v3-3-test has been updated
via 41e20becf3b976656f60aaec9175df329803b012 (commit)
from 23b825e9d2c74c5b940cf4d3aa56c18692259972 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 41e20becf3b976656f60aaec9175df329803b012
Author: Jeremy Allison <jra at samba.org>
Date: Thu May 29 10:37:52 2008 -0700
Fix winbindd on a PDC by reverting : 83b04c60fac76ccd2d5aecb14f8896a07d488b1f..6e66512d5beb256a44c6703cdb8c7fa7e0fd8537.
We still need to address https://bugzilla.redhat.com/show_bug.cgi?id=429024, but this
will come later.
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/winbindd/winbindd_dual.c | 9 ---------
source/winbindd/winbindd_util.c | 6 ++++++
2 files changed, 6 insertions(+), 9 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c
index d465801..ae04256 100644
--- a/source/winbindd/winbindd_dual.c
+++ b/source/winbindd/winbindd_dual.c
@@ -1087,15 +1087,6 @@ static bool fork_domain_child(struct winbindd_child *child)
child);
}
- /* Special case for Winbindd on a Samba DC,
- * We want to make sure the child can connect to smbd
- * but not the main daemon */
-
- if (child->domain && child->domain->internal && IS_DC) {
- child->domain->methods = &cache_methods;
- child->domain->online = False;
- }
-
while (1) {
int ret;
diff --git a/source/winbindd/winbindd_util.c b/source/winbindd/winbindd_util.c
index ec97b49..9008cf8 100644
--- a/source/winbindd/winbindd_util.c
+++ b/source/winbindd/winbindd_util.c
@@ -82,6 +82,9 @@ static bool is_internal_domain(const DOM_SID *sid)
if (sid == NULL)
return False;
+ if ( IS_DC )
+ return sid_check_is_builtin(sid);
+
return (sid_check_is_domain(sid) || sid_check_is_builtin(sid));
}
@@ -90,6 +93,9 @@ static bool is_in_internal_domain(const DOM_SID *sid)
if (sid == NULL)
return False;
+ if ( IS_DC )
+ return sid_check_is_in_builtin(sid);
+
return (sid_check_is_in_our_domain(sid) || sid_check_is_in_builtin(sid));
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list