mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Get list of trusted domains if we haven't fetched them yet.
This commit is contained in:
parent
a7ef2d20b1
commit
1876632100
@ -140,6 +140,9 @@ enum winbindd_result winbindd_list_trusted_domains(struct winbindd_cli_state
|
||||
|
||||
DEBUG(3, ("[%5d]: list trusted domains\n", state->pid));
|
||||
|
||||
if (domain_list == NULL)
|
||||
get_domain_info();
|
||||
|
||||
for(domain = domain_list; domain; domain = domain->next) {
|
||||
|
||||
/* Skip own domain */
|
||||
|
@ -302,6 +302,9 @@ enum winbindd_result winbindd_setpwent(struct winbindd_cli_state *state)
|
||||
|
||||
/* Create sam pipes for each domain we know about */
|
||||
|
||||
if (domain_list == NULL)
|
||||
get_domain_info();
|
||||
|
||||
for(tmp = domain_list; tmp != NULL; tmp = tmp->next) {
|
||||
struct getent_state *domain_state;
|
||||
|
||||
@ -608,6 +611,9 @@ enum winbindd_result winbindd_list_users(struct winbindd_cli_state *state)
|
||||
|
||||
ctr.sam.info1 = &info1;
|
||||
|
||||
if (domain_list == NULL)
|
||||
get_domain_info();
|
||||
|
||||
for (domain = domain_list; domain; domain = domain->next) {
|
||||
NTSTATUS status;
|
||||
uint32 start_ndx = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user