Make it clear that the credentials are being setup on the NETLOGON channel, and
authorAndrew Bartlett <abartlet@samba.org>
Sat, 4 Jan 2003 08:59:34 +0000 (08:59 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 4 Jan 2003 08:59:34 +0000 (08:59 +0000)
may not be to our PDC (might be BDC, or trusted DC).

Andrew Bartlett
(This used to be commit 610be8d483f335226386f92b5e85ddeb07846d41)

source3/auth/auth_domain.c

index 8c56b4484e4029148331faafcbd46d00a79bcb74..79cf5b156d56fecbf8a357c63c1afde243ff86b1 100644 (file)
@@ -212,7 +212,7 @@ machine %s. Error was : %s.\n", remote_machine, cli_errstr(*cli)));
        result = cli_nt_setup_creds(*cli, sec_chan, trust_passwd, &neg_flags, 2);
 
         if (!NT_STATUS_IS_OK(result)) {
-               DEBUG(0,("connect_to_domain_password_server: unable to setup the PDC credentials to machine \
+               DEBUG(0,("connect_to_domain_password_server: unable to setup the NETLOGON credentials to machine \
 %s. Error was : %s.\n", remote_machine, nt_errstr(result)));
                cli_nt_session_close(*cli);
                cli_ulogoff(*cli);
@@ -274,9 +274,9 @@ static NTSTATUS find_connect_dc(struct cli_state **cli,
 
        if ( !rpc_find_dc(lp_workgroup(), srv_name, &dc_ip) ) {
                DEBUG(0,("find_connect_dc: Failed to find an DCs for %s\n", lp_workgroup()));
-                       return NT_STATUS_NO_LOGON_SERVERS;
+               return NT_STATUS_NO_LOGON_SERVERS;
        }
-
+       
        return attempt_connect_to_dc( cli, domain, &dc_ip, setup_creds_as, 
                        sec_chan, trust_passwd );
 }