summaryrefslogtreecommitdiff
path: root/source3/auth/auth_domain.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-25 05:17:49 +0000
committerTim Potter <tpot@samba.org>2002-01-25 05:17:49 +0000
commit5fb852d0477a40393c980c5a26e6d2ae8d0c1e9f (patch)
treee9fe498ea49b693c341b21f218eeef16787225b6 /source3/auth/auth_domain.c
parent01a1516f1524881eec9f95398fd523b5e093d37e (diff)
downloadsamba-5fb852d0477a40393c980c5a26e6d2ae8d0c1e9f.tar.gz
samba-5fb852d0477a40393c980c5a26e6d2ae8d0c1e9f.tar.bz2
samba-5fb852d0477a40393c980c5a26e6d2ae8d0c1e9f.zip
Remove check for passwordserver = "*" as we now initialise it.
Added TODO about perhaps doing a SAMLOGON udp/138 request before a cli_full_connection in connect_to_domain_password_server() (This used to be commit b61e40a5be3b8bacc74399902169755dbc4c7fca)
Diffstat (limited to 'source3/auth/auth_domain.c')
-rw-r--r--source3/auth/auth_domain.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c
index 2b5104bf92..e84d4e4724 100644
--- a/source3/auth/auth_domain.c
+++ b/source3/auth/auth_domain.c
@@ -78,6 +78,12 @@ static NTSTATUS connect_to_domain_password_server(struct cli_state **cli,
return NT_STATUS_UNSUCCESSFUL;
}
+ /* TODO: Send a SAMLOGON request to determine whether this is a valid
+ logonserver. We can avoid a 30-second timeout if the DC is down
+ if the SAMLOGON request fails as it is only over UDP. */
+
+ /* Attempt connection */
+
result = cli_full_connection(cli, global_myname, server,
&dest_ip, 0, "IPC$", "IPC", "", "", "", 0);
@@ -444,7 +450,6 @@ static NTSTATUS check_ntdomain_security(const struct auth_context *auth_context,
*/
pserver = lp_passwordserver();
- if (! *pserver) pserver = "*";
p = pserver;
nt_status = domain_client_validate(mem_ctx, user_info, domain,