Try anonymous session setup
authorVolker Lendecke <vl@samba.org>
Wed, 9 Apr 2008 07:48:59 +0000 (09:48 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 9 Apr 2008 08:01:53 +0000 (10:01 +0200)
... if there's no trust password

Attempt to fix bug 5350
(This used to be commit 99f6b63f3c637457fdda7ed930c6666171b25b61)

source3/winbindd/winbindd_cm.c

index b792de0aabbd89f0b56e91c22aa000b4f6e82144..80261862b10d9816fd6fd4d5e154e78f5086b3d0 100644 (file)
@@ -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,