• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.0.25b/source/nsswitch/

Lines Matching refs:state

32 void winbindd_check_machine_acct(struct winbindd_cli_state *state)
35 (unsigned long)state->pid));
37 sendto_domain(state, find_our_domain());
41 struct winbindd_cli_state *state)
47 DEBUG(3, ("[%5lu]: check machine account\n", (unsigned long)state->pid));
90 state->response.data.auth.nt_status = NT_STATUS_V(result);
91 fstrcpy(state->response.data.auth.nt_status_string, nt_errstr(result));
92 fstrcpy(state->response.data.auth.error_string, nt_errstr(result));
93 state->response.data.auth.pam_error = nt_status_to_pam(result);
96 state->response.data.auth.nt_status_string));
101 void winbindd_list_trusted_domains(struct winbindd_cli_state *state)
104 (unsigned long)state->pid));
106 sendto_domain(state, find_our_domain());
110 struct winbindd_cli_state *state)
121 (unsigned long)state->pid));
123 result = domain->methods->trusted_domains(domain, state->mem_ctx,
133 extra_data = talloc_strdup(state->mem_ctx, "");
136 extra_data = talloc_asprintf(state->mem_ctx, "%s\\%s\\%s",
142 extra_data = talloc_asprintf(state->mem_ctx, "%s\n%s\\%s\\%s",
156 if (state->request.data.list_all_domains && !have_own_domain) {
157 extra_data = talloc_asprintf(state->mem_ctx, "%s\n%s\\%s\\%s",
173 state->response.extra_data.data = SMB_STRDUP(extra_data);
174 state->response.length += extra_data_len+1;
180 void winbindd_getdcname(struct winbindd_cli_state *state)
182 state->request.domain_name
183 [sizeof(state->request.domain_name)-1] = '\0';
185 DEBUG(3, ("[%5lu]: Get DC name for %s\n", (unsigned long)state->pid,
186 state->request.domain_name));
188 sendto_domain(state, find_our_domain());
192 struct winbindd_cli_state *state)
201 state->request.domain_name
202 [sizeof(state->request.domain_name)-1] = '\0';
204 DEBUG(3, ("[%5lu]: Get DC name for %s\n", (unsigned long)state->pid,
205 state->request.domain_name));
219 werr = rpccli_netlogon_getanydcname(netlogon_pipe, state->mem_ctx, domain->dcname,
220 state->request.domain_name,
238 fstrcpy(state->response.data.dc_name, p);
253 void winbindd_show_sequence(struct winbindd_cli_state *state)
258 state->request.domain_name[sizeof(state->request.domain_name)-1]='\0';
260 if (strlen(state->request.domain_name) > 0) {
263 state->request.domain_name);
265 request_error(state);
268 sendto_domain(state, domain);
274 seq = TALLOC_P(state->mem_ctx, struct sequence_state);
277 request_error(state);
281 seq->mem_ctx = state->mem_ctx;
282 seq->cli_state = state;
286 request_error(state);
289 seq->request = TALLOC_ZERO_P(state->mem_ctx,
291 seq->response = TALLOC_ZERO_P(state->mem_ctx,
293 seq->extra_data = talloc_strdup(state->mem_ctx, "");
298 request_error(state);
306 async_domain_request(state->mem_ctx, seq->domain,
313 struct sequence_state *state =
317 if ((success) && (state->response->result == WINBINDD_OK))
318 seq = state->response->data.domain_info.sequence_number;
321 state->extra_data = talloc_asprintf(state->mem_ctx,
323 state->extra_data,
324 state->domain->name);
326 state->extra_data = talloc_asprintf(state->mem_ctx,
328 state->extra_data,
329 state->domain->name, seq);
332 state->domain->sequence_number = seq;
334 state->domain = state->domain->next;
336 if (state->domain == NULL) {
337 struct winbindd_cli_state *cli_state = state->cli_state;
340 strlen(state->extra_data) + 1;
342 SMB_STRDUP(state->extra_data);
348 fstrcpy(state->request->domain_name, state->domain->name);
349 async_domain_request(state->mem_ctx, state->domain,
350 state->request, state->response,
351 sequence_recv, state);
358 struct winbindd_cli_state *state)
360 DEBUG(3, ("[%5lu]: show sequence\n", (unsigned long)state->pid));
363 state->request.domain_name[sizeof(state->request.domain_name)-1]='\0';
367 state->response.data.domain_info.sequence_number =
380 void winbindd_domain_info(struct winbindd_cli_state *state)
384 DEBUG(3, ("[%5lu]: domain_info [%s]\n", (unsigned long)state->pid,
385 state->request.domain_name));
387 domain = find_domain_from_name_noinit(state->request.domain_name);
391 state->request.domain_name));
392 request_error(state);
399 istate = TALLOC_P(state->mem_ctx, struct domain_info_state);
402 request_error(state);
406 istate->cli_state = state;
414 fstrcpy(state->response.data.domain_info.name,
416 fstrcpy(state->response.data.domain_info.alt_name,
418 fstrcpy(state->response.data.domain_info.sid,
421 state->response.data.domain_info.native_mode =
423 state->response.data.domain_info.active_directory =
425 state->response.data.domain_info.primary =
427 state->response.data.domain_info.sequence_number =
430 request_ok(state);
437 struct winbindd_cli_state *state = istate->cli_state;
445 request_error(state);
449 fstrcpy(state->response.data.domain_info.name,
451 fstrcpy(state->response.data.domain_info.alt_name,
453 fstrcpy(state->response.data.domain_info.sid,
456 state->response.data.domain_info.native_mode =
458 state->response.data.domain_info.active_directory =
460 state->response.data.domain_info.primary =
462 state->response.data.domain_info.sequence_number =
465 request_ok(state);
468 void winbindd_ping(struct winbindd_cli_state *state)
470 DEBUG(3, ("[%5lu]: ping\n", (unsigned long)state->pid));
471 request_ok(state);
476 void winbindd_info(struct winbindd_cli_state *state)
479 DEBUG(3, ("[%5lu]: request misc info\n", (unsigned long)state->pid));
481 state->response.data.info.winbind_separator = *lp_winbind_separator();
482 fstrcpy(state->response.data.info.samba_version, SAMBA_VERSION_STRING);
483 request_ok(state);
488 void winbindd_interface_version(struct winbindd_cli_state *state)
491 (unsigned long)state->pid));
493 state->response.data.interface_version = WINBIND_INTERFACE_VERSION;
494 request_ok(state);
499 void winbindd_domain_name(struct winbindd_cli_state *state)
501 DEBUG(3, ("[%5lu]: request domain name\n", (unsigned long)state->pid));
503 fstrcpy(state->response.data.domain_name, lp_workgroup());
504 request_ok(state);
509 void winbindd_netbios_name(struct winbindd_cli_state *state)
512 (unsigned long)state->pid));
514 fstrcpy(state->response.data.netbios_name, global_myname());
515 request_ok(state);
520 void winbindd_priv_pipe_dir(struct winbindd_cli_state *state)
524 (unsigned long)state->pid));
526 state->response.extra_data.data = SMB_STRDUP(get_winbind_priv_pipe_dir());
527 if (!state->response.extra_data.data) {
529 request_error(state);
534 state->response.length +=
535 strlen((char *)state->response.extra_data.data) + 1;
537 request_ok(state);