mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
if trusted domains are disabled then we should not try to connect to
them in winbindd
This commit is contained in:
parent
d5d0d0de50
commit
6c7748b001
@ -153,12 +153,17 @@ void rescan_trusted_domains(void)
|
||||
static time_t last_scan;
|
||||
time_t t = time(NULL);
|
||||
|
||||
/* trusted domains might be disabled */
|
||||
if (!lp_allow_trusted_domains()) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* ony rescan every few minutes */
|
||||
if ((unsigned)(t - last_scan) < WINBINDD_RESCAN_FREQ) {
|
||||
return;
|
||||
}
|
||||
last_scan = t;
|
||||
|
||||
|
||||
DEBUG(1, ("scanning trusted domain list\n"));
|
||||
|
||||
if (!(mem_ctx = talloc_init_named("init_domain_list")))
|
||||
|
Loading…
Reference in New Issue
Block a user