1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

s3:winbind: For internal domains it is pointless to connect to a DC

This commit is contained in:
Volker Lendecke
2009-08-22 17:13:09 +02:00
parent fc3d427af8
commit 963419be1b
2 changed files with 11 additions and 1 deletions

View File

@ -485,6 +485,12 @@ void set_domain_online_request(struct winbindd_domain *domain)
return;
}
if (domain->internal) {
DEBUG(10, ("set_domain_online_request: Internal domains are "
"always online\n"));
return;
}
/* We've been told it's safe to go online and
try and connect to a DC. But I don't believe it
because network manager seems to lie.

View File

@ -569,7 +569,11 @@ enum winbindd_result winbindd_dual_init_connection(struct winbindd_domain *domai
fstrcpy(domain->dcname, state->request->data.init_conn.dcname);
}
init_dc_connection(domain);
if (domain->internal) {
domain->initialized = true;
} else {
init_dc_connection(domain);
}
if (!domain->initialized) {
/* If we return error here we can't do any cached authentication,