summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_util.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c
index 0de30dbca8..a810e503a0 100644
--- a/source3/nsswitch/winbindd_util.c
+++ b/source3/nsswitch/winbindd_util.c
@@ -197,20 +197,22 @@ void rescan_trusted_domains(BOOL force)
if ( sid_equal(&dom_sids[i], &null_sid) ) {
- new_domain = find_domain_from_name(names[i]);
+ new_domain = find_domain_from_name(names[i]);
- /* this should never happen */
- if ( !domain) {
- DEBUG(0,("rescan_trust_domains: can't find the domain I just added! [%s]\n",
+ /* this should never happen */
+ if ( !new_domain ) {
+ DEBUG(0,("rescan_trust_domains: can't find the domain I just added! [%s]\n",
names[i]));
break;
- }
+ }
- result = domain->methods->domain_sid( new_domain, &new_domain->sid );
+ /* call the cache method; which will operate on the winbindd_domain \
+ passed in and choose either rpc or ads as appropriate */
+
+ result = domain->methods->domain_sid( new_domain, &new_domain->sid );
- if ( NT_STATUS_IS_OK(result) )
+ if ( NT_STATUS_IS_OK(result) )
sid_copy( &dom_sids[i], &domain->sid );
-
}
/* store trusted domain in the cache */