diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-10-24 09:34:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:12 -0500 |
commit | d6e070b74af8891c5e6ee15d57f8c0db3aac2f14 (patch) | |
tree | 8fcc8ec487b6cd8443b10760d3e487a6462a1fa3 /source4/winbind/wb_sid2domain.c | |
parent | ef57650d6e47ead5b56934d0d38eefb389f364f5 (diff) | |
download | samba-d6e070b74af8891c5e6ee15d57f8c0db3aac2f14.tar.gz samba-d6e070b74af8891c5e6ee15d57f8c0db3aac2f14.tar.bz2 samba-d6e070b74af8891c5e6ee15d57f8c0db3aac2f14.zip |
r11274: Start a connection attempt to the DC's port 389. To do this properly, make
socket_connect and ldap_connect properly async.
Volker
(This used to be commit bcc71fc1deeed443d7cf00220ce264011ddf588d)
Diffstat (limited to 'source4/winbind/wb_sid2domain.c')
-rw-r--r-- | source4/winbind/wb_sid2domain.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source4/winbind/wb_sid2domain.c b/source4/winbind/wb_sid2domain.c index 8249d6c7d3..83e81e1cd0 100644 --- a/source4/winbind/wb_sid2domain.c +++ b/source4/winbind/wb_sid2domain.c @@ -110,9 +110,7 @@ struct composite_context *wb_sid2domain_send(struct wbsrv_service *service, if (state->result != NULL) { result->status = NT_STATUS_OK; if (!state->result->initialized) { - ctx = wb_init_domain_send(state->result, - service->task->event_ctx, - service->task->msg_ctx); + ctx = wb_init_domain_send(service, state->result); if (ctx == NULL) goto failed; ctx->async.fn = sid2domain_recv_init; ctx->async.private_data = state; @@ -186,14 +184,12 @@ static void sid2domain_recv_dcname(struct composite_context *ctx) state->result->schannel_creds = cli_credentials_init(state->result); if (composite_nomem(state->result->schannel_creds, state->ctx)) return; cli_credentials_set_conf(state->result->schannel_creds); - cli_credentials_set_anonymous(state->result->schannel_creds); + cli_credentials_set_machine_account(state->result->schannel_creds); talloc_steal(state->service, state->result); DLIST_ADD(state->service->domains, state->result); - ctx = wb_init_domain_send(state->result, - state->service->task->event_ctx, - state->service->task->msg_ctx); + ctx = wb_init_domain_send(state->service, state->result); composite_continue(state->ctx, ctx, sid2domain_recv_init, state); } |