From cdb5c77dcf736771ce7ed52c944b3eb4b49d2348 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 9 Apr 2008 09:07:04 +0200 Subject: [PATCH] Try anonymous session setup ... if there's no trust password Attempt to fix bug 5350 --- source/nsswitch/winbindd_cm.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c index 5b3120e..91c8c46 100644 --- a/source/nsswitch/winbindd_cm.c +++ b/source/nsswitch/winbindd_cm.c @@ -720,7 +720,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain, &machine_account, &machine_krb5_principal); if (!NT_STATUS_IS_OK(result)) { - goto done; + goto anon_fallback; } if (lp_security() == SEC_ADS) { @@ -803,6 +803,8 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain, } } + anon_fallback: + /* Fall back to anonymous connection, this might fail later */ if (NT_STATUS_IS_OK(cli_session_setup(*cli, "", NULL, 0, -- 1.5.3.7