From 844c871c0570d52501c0792c519556989876618e Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 20 Dec 2006 16:57:10 +0000 Subject: [PATCH] r20287: Allow a NULL sid when setting up the list of trusted domains. --- source/nsswitch/winbindd_util.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/nsswitch/winbindd_util.c b/source/nsswitch/winbindd_util.c index 2b316884301..2ae146a73a6 100644 --- a/source/nsswitch/winbindd_util.c +++ b/source/nsswitch/winbindd_util.c @@ -268,8 +268,13 @@ static void trustdom_recv(void *private_data, BOOL success) *q = '\0'; if (!string_to_sid(&sid, sidstr)) { - DEBUG(0, ("Got invalid trustdom response\n")); - break; + /* Allow NULL sid for sibling domains */ + if ( strcmp(sidstr,"S-0-0") == 0) { + sid_copy( &sid, &global_sid_NULL); + } else { + DEBUG(0, ("Got invalid trustdom response\n")); + break; + } } if (find_domain_from_name_noinit(p) == NULL) { -- 2.11.4.GIT