diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-14 17:36:23 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-15 15:39:35 +1000 |
commit | ee61568be6bcb217d106c08ec915775c8476ed56 (patch) | |
tree | 2b502868d5c59dbac6c1ff50f1bf7ec99b593ae2 /source4/winbind/wb_init_domain.c | |
parent | 0c447e316f17e64becaf70c91006b90de21887df (diff) | |
download | samba-ee61568be6bcb217d106c08ec915775c8476ed56.tar.gz samba-ee61568be6bcb217d106c08ec915775c8476ed56.tar.bz2 samba-ee61568be6bcb217d106c08ec915775c8476ed56.zip |
s4-winbind: use finddcs_cldap() in winbind
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/winbind/wb_init_domain.c')
-rw-r--r-- | source4/winbind/wb_init_domain.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/winbind/wb_init_domain.c b/source4/winbind/wb_init_domain.c index f07d17a64e..50a6af05fd 100644 --- a/source4/winbind/wb_init_domain.c +++ b/source4/winbind/wb_init_domain.c @@ -128,16 +128,8 @@ struct composite_context *wb_init_domain_send(TALLOC_CTX *mem_ctx, state->domain->info = talloc_reference(state->domain, dom_info); if (state->domain->info == NULL) goto failed; - /* Caller should check, but to be safe: */ - if (dom_info->num_dcs < 1) { - goto failed; - } - - /* For now, we just pick the first. The next step will be to - * walk the entire list. Also need to fix finddcs() to return - * the entire list */ - state->domain->dc_name = dom_info->dcs[0].name; - state->domain->dc_address = dom_info->dcs[0].address; + state->domain->dc_name = dom_info->dc->name; + state->domain->dc_address = dom_info->dc->address; state->domain->libnet_ctx = libnet_context_init(service->task->event_ctx, service->task->lp_ctx); |