summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-09 09:48:59 +0200
committerVolker Lendecke <vl@samba.org>2008-04-09 10:01:53 +0200
commit9fa04934e081fc87d9a40c9bf8c371726f7be6ad (patch)
tree0ed9a5b1a8d1e2747872fd328f7d4aacccdf9b4d /source3/winbindd
parent3b19215c29faab0ab4fc61d35166d2979ac6d131 (diff)
downloadsamba-9fa04934e081fc87d9a40c9bf8c371726f7be6ad.tar.gz
samba-9fa04934e081fc87d9a40c9bf8c371726f7be6ad.tar.bz2
samba-9fa04934e081fc87d9a40c9bf8c371726f7be6ad.zip
Try anonymous session setup
... if there's no trust password Attempt to fix bug 5350 (This used to be commit 99f6b63f3c637457fdda7ed930c6666171b25b61)
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cm.c4
1 files changed, 3 insertions, 1 deletions
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,