From: Volker Lendecke Date: Wed, 9 Apr 2008 07:48:59 +0000 (+0200) Subject: Try anonymous session setup X-Git-Tag: samba-3.3.0pre1~2841 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99f6b63f3c637457fdda7ed930c6666171b25b61;p=thirdparty%2Fsamba.git Try anonymous session setup ... if there's no trust password Attempt to fix bug 5350 --- diff --git a/source/winbindd/winbindd_cm.c b/source/winbindd/winbindd_cm.c index b792de0aabb..80261862b10 100644 --- a/source/winbindd/winbindd_cm.c +++ b/source/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,