git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
751d7db
)
s3: Fix MIT trusts
author
Volker Lendecke
<vl@samba.org>
Mon, 25 Jul 2011 10:38:27 +0000
(12:38 +0200)
committer
Volker Lendecke
<vl@samba.org>
Tue, 9 Aug 2011 14:57:52 +0000
(16:57 +0200)
Winbind can't really cope with trusts that don't have a SID associated. This
happens with external MIT trusts for example. This filters them out when
sending the trust list from child to parent.
source3/winbindd/winbindd_misc.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_misc.c
b/source3/winbindd/winbindd_misc.c
index 7d2516770bc1859a1cb0da876964aeaf2550731b..16042fb45a90039ec4b61c1df77f9725390dd301 100644
(file)
--- a/
source3/winbindd/winbindd_misc.c
+++ b/
source3/winbindd/winbindd_misc.c
@@
-171,6
+171,11
@@
enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *
extra_data = talloc_strdup(state->mem_ctx, "");
for (i=0; i<trusts.count; i++) {
+
+ if (trusts.array[i].sid == NULL) {
+ continue;
+ }
+
extra_data = talloc_asprintf_append_buffer(
extra_data, "%s\\%s\\%s\n",
trusts.array[i].netbios_name,