1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s3:winbindd: never mark external domains as internal!

This way we can endup with silently using builtin_passdb_methods
for an ad domain without an inbound trust.

This fixes bug #7170.

metze
This commit is contained in:
Stefan Metzmacher 2010-02-23 08:42:41 +01:00
parent 4ef82accfe
commit f924b77492

View File

@ -1641,7 +1641,7 @@ static NTSTATUS init_dc_connection_network(struct winbindd_domain *domain)
NTSTATUS result;
/* Internal connections never use the network. */
if (domain->internal) {
if (domain->internal || !winbindd_can_contact_domain(domain)) {
domain->initialized = True;
return NT_STATUS_OK;
}
@ -1769,9 +1769,6 @@ static bool set_dc_type_and_flags_trustinfo( struct winbindd_domain *domain )
domain->initialized = True;
if ( !winbindd_can_contact_domain( domain) )
domain->internal = True;
break;
}
}