mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:winbindd: set_dc_type_and_flags() doesn't need to do something for primary or internal domains
In the end set_dc_type_and_flags should be removed completely, but this is a good start in the right direction... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
b9207b32fc
commit
b375f7dca9
@ -2436,11 +2436,18 @@ static void set_dc_type_and_flags( struct winbindd_domain *domain )
|
||||
}
|
||||
|
||||
/* we always have to contact our primary domain */
|
||||
|
||||
if ( domain->primary || domain->internal) {
|
||||
DEBUG(10,("set_dc_type_and_flags: setting up flags for "
|
||||
"primary or internal domain\n"));
|
||||
set_dc_type_and_flags_connect( domain );
|
||||
if (domain->primary || domain->internal) {
|
||||
/*
|
||||
* primary and internal domains are
|
||||
* are already completely
|
||||
* setup via init_domain_list()
|
||||
* calling add_trusted_domain()
|
||||
*
|
||||
* There's no need to ask the
|
||||
* server again, if it hosts an AD
|
||||
* domain...
|
||||
*/
|
||||
domain->initialized = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user