From e4ac9660fe9838766525be32dc1aca9d66cce6af 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 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c index 5b3120e8876..91c8c461e85 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, -- 2.11.4.GIT