From 9fa04934e081fc87d9a40c9bf8c371726f7be6ad Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 9 Apr 2008 09:48:59 +0200 Subject: Try anonymous session setup ... if there's no trust password Attempt to fix bug 5350 (This used to be commit 99f6b63f3c637457fdda7ed930c6666171b25b61) --- source3/winbindd/winbindd_cm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index b792de0aab..80261862b1 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -825,7 +825,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) { @@ -910,6 +910,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, -- cgit