dc 476 nsswitch/libwbclient/wbc_util.c struct wbcDomainControllerInfo *dc = NULL; dc 492 nsswitch/libwbclient/wbc_util.c dc = talloc(NULL, struct wbcDomainControllerInfo); dc 493 nsswitch/libwbclient/wbc_util.c BAIL_ON_PTR_ERROR(dc, wbc_status); dc 502 nsswitch/libwbclient/wbc_util.c dc->dc_name = talloc_strdup(dc, response.data.dc_name); dc 503 nsswitch/libwbclient/wbc_util.c BAIL_ON_PTR_ERROR(dc->dc_name, wbc_status); dc 505 nsswitch/libwbclient/wbc_util.c *dc_info = dc; dc 509 nsswitch/libwbclient/wbc_util.c talloc_free(dc); dc 249 nsswitch/winbind_krb5_locator.c const char *dc = NULL; dc 269 nsswitch/winbind_krb5_locator.c dc = dc_info->dc_address; dc 270 nsswitch/winbind_krb5_locator.c if (dc[0] == '\\') dc++; dc 271 nsswitch/winbind_krb5_locator.c if (dc[0] == '\\') dc++; dc 274 nsswitch/winbind_krb5_locator.c if (!dc && dc_info->dc_unc) { dc 275 nsswitch/winbind_krb5_locator.c dc = dc_info->dc_unc; dc 276 nsswitch/winbind_krb5_locator.c if (dc[0] == '\\') dc++; dc 277 nsswitch/winbind_krb5_locator.c if (dc[0] == '\\') dc++; dc 280 nsswitch/winbind_krb5_locator.c if (!dc) { dc 285 nsswitch/winbind_krb5_locator.c *dcname = strdup(dc); dc 71 source3/auth/auth_netlogond.c p->dc = talloc(p, struct dcinfo); dc 72 source3/auth/auth_netlogond.c if (p->dc == NULL) { dc 78 source3/auth/auth_netlogond.c memcpy(p->dc->sess_key, schannel_key, 16); dc 259 source3/auth/auth_netlogond.c memcpy(schannel_key, p->dc->sess_key, 16); dc 138 source3/include/client.h struct dcinfo *dc; dc 226 source3/include/ntdomain.h struct dcinfo *dc; /* Keeps the creds data from netlogon. */ dc 2915 source3/include/proto.h struct dcinfo *dc, dc 2920 source3/include/proto.h bool netlogon_creds_server_check(const struct dcinfo *dc, dc 2922 source3/include/proto.h bool netlogon_creds_server_step(struct dcinfo *dc, dc 2926 source3/include/proto.h struct dcinfo *dc, dc 2931 source3/include/proto.h bool netlogon_creds_client_check(const struct dcinfo *dc, dc 2933 source3/include/proto.h void netlogon_creds_client_step(struct dcinfo *dc, dc 278 source3/lib/ldb/common/ldb_dn.c struct ldb_dn_component dc; dc 282 source3/lib/ldb/common/ldb_dn.c memset(&dc, 0, sizeof(dc)); dc 285 source3/lib/ldb/common/ldb_dn.c return dc; dc 295 source3/lib/ldb/common/ldb_dn.c dc.name = talloc_strdup(mem_ctx, ldb_dn_trim_string(raw_component, " \n")); dc 296 source3/lib/ldb/common/ldb_dn.c if (!dc.name) dc 297 source3/lib/ldb/common/ldb_dn.c return dc; dc 299 source3/lib/ldb/common/ldb_dn.c if (! ldb_valid_attr_name(dc.name)) { dc 308 source3/lib/ldb/common/ldb_dn.c dc.value = ldb_dn_unescape_value(mem_ctx, p); dc 314 source3/lib/ldb/common/ldb_dn.c dc.value.length = strlen(p); dc 315 source3/lib/ldb/common/ldb_dn.c dc.value.data = (uint8_t *)talloc_memdup(mem_ctx, p, dc 316 source3/lib/ldb/common/ldb_dn.c dc.value.length + 1); dc 323 source3/lib/ldb/common/ldb_dn.c if (dc.value.length == 0) { dc 327 source3/lib/ldb/common/ldb_dn.c return dc; dc 330 source3/lib/ldb/common/ldb_dn.c talloc_free(dc.name); dc 331 source3/lib/ldb/common/ldb_dn.c dc.name = NULL; dc 332 source3/lib/ldb/common/ldb_dn.c return dc; dc 615 source3/lib/ldb/common/ldb_dn.c struct ldb_dn_component dc; dc 618 source3/lib/ldb/common/ldb_dn.c memset(&dc, 0, sizeof(dc)); dc 619 source3/lib/ldb/common/ldb_dn.c dc.name = ldb_attr_casefold(cedn->components, edn->components[i].name); dc 620 source3/lib/ldb/common/ldb_dn.c if (!dc.name) { dc 625 source3/lib/ldb/common/ldb_dn.c h = ldb_attrib_handler(ldb, dc.name); dc 628 source3/lib/ldb/common/ldb_dn.c &(dc.value)); dc 634 source3/lib/ldb/common/ldb_dn.c cedn->components[i] = dc; dc 781 source3/lib/ldb/common/ldb_dn.c struct ldb_dn_component *dc; dc 785 source3/lib/ldb/common/ldb_dn.c dc = talloc(mem_ctx, struct ldb_dn_component); dc 786 source3/lib/ldb/common/ldb_dn.c if (dc == NULL) return NULL; dc 788 source3/lib/ldb/common/ldb_dn.c dc->name = talloc_strdup(dc, attr); dc 789 source3/lib/ldb/common/ldb_dn.c if (dc->name == NULL) { dc 790 source3/lib/ldb/common/ldb_dn.c talloc_free(dc); dc 794 source3/lib/ldb/common/ldb_dn.c dc->value.data = (uint8_t *)talloc_strdup(dc, val); dc 795 source3/lib/ldb/common/ldb_dn.c if (dc->value.data == NULL) { dc 796 source3/lib/ldb/common/ldb_dn.c talloc_free(dc); dc 800 source3/lib/ldb/common/ldb_dn.c dc->value.length = strlen(val); dc 802 source3/lib/ldb/common/ldb_dn.c return dc; dc 50 source3/lib/netapi/joindomain.c const char *dc = NULL; dc 62 source3/lib/netapi/joindomain.c dc = strip_hostname(info->dc_unc); dc 63 source3/lib/netapi/joindomain.c j->in.dc_name = talloc_strdup(mem_ctx, dc); dc 173 source3/lib/netapi/joindomain.c const char *dc = NULL; dc 187 source3/lib/netapi/joindomain.c dc = strip_hostname(info->dc_unc); dc 188 source3/lib/netapi/joindomain.c u->in.dc_name = talloc_strdup(mem_ctx, dc); dc 344 source3/lib/netapi/joindomain.c const char *dc = NULL; dc 356 source3/lib/netapi/joindomain.c dc = strip_hostname(info->dc_unc); dc 358 source3/lib/netapi/joindomain.c ads = ads_init(info->domain_name, info->domain_name, dc); dc 647 source3/libnet/libnet_join.c static NTSTATUS libnet_join_connect_dc_ipc(const char *dc, dc 664 source3/libnet/libnet_join.c dc, dc 1075 source3/libnet/libnet_join.c netbios_domain_name, netlogon_pipe->dc, &pipe_hnd); dc 1403 source3/libnet/libnet_join.c char *dc = NULL; dc 1415 source3/libnet/libnet_join.c dc = talloc_strdup(mem_ctx, p+1); dc 1416 source3/libnet/libnet_join.c if (!dc) { dc 1421 source3/libnet/libnet_join.c dc = NULL; dc 1429 source3/libnet/libnet_join.c if (!*dc_p && dc) { dc 1430 source3/libnet/libnet_join.c *dc_p = dc; dc 1749 source3/libnet/libnet_join.c const char *dc; dc 1768 source3/libnet/libnet_join.c dc = strip_hostname(info->dc_unc); dc 1769 source3/libnet/libnet_join.c r->in.dc_name = talloc_strdup(mem_ctx, dc); dc 1935 source3/libnet/libnet_join.c const char *dc; dc 1953 source3/libnet/libnet_join.c dc = strip_hostname(info->dc_unc); dc 1954 source3/libnet/libnet_join.c r->in.dc_name = talloc_strdup(mem_ctx, dc); dc 355 source3/libnet/libnet_samsync.c netlogon_creds_client_step(ctx->cli->dc, &credential); dc 396 source3/libnet/libnet_samsync.c if (!netlogon_creds_client_check(ctx->cli->dc, dc 406 source3/libnet/libnet_samsync.c session_key = data_blob_const(ctx->cli->dc->sess_key, 16); dc 39 source3/libnet/libnet_samsync_keytab.c const char *dc; dc 46 source3/libnet/libnet_samsync_keytab.c dc = strip_hostname(info->dc_unc); dc 48 source3/libnet/libnet_samsync_keytab.c ads = ads_init(NULL, domain_name, dc); dc 44 source3/libsmb/credentials.c static void creds_init_128(struct dcinfo *dc, dc 54 source3/libsmb/credentials.c memcpy(dc->mach_pw, mach_pw, 16); dc 56 source3/libsmb/credentials.c ZERO_STRUCT(dc->sess_key); dc 67 source3/libsmb/credentials.c hmac_md5_final(dc->sess_key, &ctx); dc 73 source3/libsmb/credentials.c dump_data_pw("\tsession_key ", (const unsigned char *)dc->sess_key, 16); dc 77 source3/libsmb/credentials.c des_crypt112(dc->clnt_chal.data, /* output */ dc 79 source3/libsmb/credentials.c dc->sess_key, /* input */ dc 82 source3/libsmb/credentials.c des_crypt112(dc->srv_chal.data, /* output */ dc 84 source3/libsmb/credentials.c dc->sess_key, /* input */ dc 88 source3/libsmb/credentials.c memcpy(dc->seed_chal.data, dc->clnt_chal.data, 8); dc 96 source3/libsmb/credentials.c static void creds_init_64(struct dcinfo *dc, dc 105 source3/libsmb/credentials.c if (dc->mach_pw != mach_pw) { dc 106 source3/libsmb/credentials.c memcpy(dc->mach_pw, mach_pw, 16); dc 115 source3/libsmb/credentials.c ZERO_STRUCT(dc->sess_key); dc 117 source3/libsmb/credentials.c des_crypt128(dc->sess_key, sum2, dc->mach_pw); dc 124 source3/libsmb/credentials.c DEBUG(5,("\tsess_key_out : %s\n", credstr(dc->sess_key))); dc 128 source3/libsmb/credentials.c des_crypt112(dc->clnt_chal.data, /* output */ dc 130 source3/libsmb/credentials.c dc->sess_key, /* input */ dc 133 source3/libsmb/credentials.c des_crypt112(dc->srv_chal.data, /* output */ dc 135 source3/libsmb/credentials.c dc->sess_key, /* input */ dc 139 source3/libsmb/credentials.c memcpy(dc->seed_chal.data, dc->clnt_chal.data, 8); dc 147 source3/libsmb/credentials.c static void creds_step(struct dcinfo *dc) dc 151 source3/libsmb/credentials.c DEBUG(5,("\tsequence = 0x%x\n", (unsigned int)dc->sequence )); dc 153 source3/libsmb/credentials.c DEBUG(5,("\tseed: %s\n", credstr(dc->seed_chal.data) )); dc 155 source3/libsmb/credentials.c SIVAL(time_chal.data, 0, IVAL(dc->seed_chal.data, 0) + dc->sequence); dc 156 source3/libsmb/credentials.c SIVAL(time_chal.data, 4, IVAL(dc->seed_chal.data, 4)); dc 160 source3/libsmb/credentials.c des_crypt112(dc->clnt_chal.data, time_chal.data, dc->sess_key, 1); dc 162 source3/libsmb/credentials.c DEBUG(5,("\tCLIENT %s\n", credstr(dc->clnt_chal.data) )); dc 164 source3/libsmb/credentials.c SIVAL(time_chal.data, 0, IVAL(dc->seed_chal.data, 0) + dc->sequence + 1); dc 165 source3/libsmb/credentials.c SIVAL(time_chal.data, 4, IVAL(dc->seed_chal.data, 4)); dc 169 source3/libsmb/credentials.c des_crypt112(dc->srv_chal.data, time_chal.data, dc->sess_key, 1); dc 171 source3/libsmb/credentials.c DEBUG(5,("\tSERVER %s\n", credstr(dc->srv_chal.data) )); dc 179 source3/libsmb/credentials.c struct dcinfo *dc, dc 192 source3/libsmb/credentials.c creds_init_128(dc, dc 197 source3/libsmb/credentials.c creds_init_64(dc, dc 203 source3/libsmb/credentials.c dump_data_pw("creds_server_init: session key", dc->sess_key, 16); dc 205 source3/libsmb/credentials.c DEBUG(10,("creds_server_init: clnt : %s\n", credstr(dc->clnt_chal.data) )); dc 206 source3/libsmb/credentials.c DEBUG(10,("creds_server_init: server : %s\n", credstr(dc->srv_chal.data) )); dc 207 source3/libsmb/credentials.c DEBUG(10,("creds_server_init: seed : %s\n", credstr(dc->seed_chal.data) )); dc 209 source3/libsmb/credentials.c memcpy(init_chal_out->data, dc->srv_chal.data, 8); dc 216 source3/libsmb/credentials.c bool netlogon_creds_server_check(const struct dcinfo *dc, dc 219 source3/libsmb/credentials.c if (memcmp(dc->clnt_chal.data, rcv_cli_chal_in->data, 8)) { dc 222 source3/libsmb/credentials.c DEBUG(5,("calculated: %s\n", credstr(dc->clnt_chal.data))); dc 235 source3/libsmb/credentials.c static void creds_reseed(struct dcinfo *dc) dc 239 source3/libsmb/credentials.c SIVAL(time_chal.data, 0, IVAL(dc->seed_chal.data, 0) + dc->sequence + 1); dc 240 source3/libsmb/credentials.c SIVAL(time_chal.data, 4, IVAL(dc->seed_chal.data, 4)); dc 242 source3/libsmb/credentials.c dc->seed_chal = time_chal; dc 244 source3/libsmb/credentials.c DEBUG(5,("cred_reseed: seed %s\n", credstr(dc->seed_chal.data) )); dc 251 source3/libsmb/credentials.c bool netlogon_creds_server_step(struct dcinfo *dc, dc 256 source3/libsmb/credentials.c struct dcinfo tmp_dc = *dc; dc 281 source3/libsmb/credentials.c *dc = tmp_dc; dc 290 source3/libsmb/credentials.c struct dcinfo *dc, dc 296 source3/libsmb/credentials.c dc->sequence = time(NULL); dc 305 source3/libsmb/credentials.c creds_init_128(dc, dc 310 source3/libsmb/credentials.c creds_init_64(dc, dc 316 source3/libsmb/credentials.c dump_data_pw("creds_client_init: session key", dc->sess_key, 16); dc 318 source3/libsmb/credentials.c DEBUG(10,("creds_client_init: clnt : %s\n", credstr(dc->clnt_chal.data) )); dc 319 source3/libsmb/credentials.c DEBUG(10,("creds_client_init: server : %s\n", credstr(dc->srv_chal.data) )); dc 320 source3/libsmb/credentials.c DEBUG(10,("creds_client_init: seed : %s\n", credstr(dc->seed_chal.data) )); dc 322 source3/libsmb/credentials.c memcpy(init_chal_out->data, dc->clnt_chal.data, 8); dc 329 source3/libsmb/credentials.c bool netlogon_creds_client_check(const struct dcinfo *dc, dc 332 source3/libsmb/credentials.c if (memcmp(dc->srv_chal.data, rcv_srv_chal_in->data, dc 333 source3/libsmb/credentials.c sizeof(dc->srv_chal.data))) { dc 338 source3/libsmb/credentials.c DEBUGADD(5,("calculated: %s\n", credstr(dc->srv_chal.data))); dc 355 source3/libsmb/credentials.c void netlogon_creds_client_step(struct dcinfo *dc, dc 358 source3/libsmb/credentials.c dc->sequence += 2; dc 359 source3/libsmb/credentials.c creds_step(dc); dc 360 source3/libsmb/credentials.c creds_reseed(dc); dc 362 source3/libsmb/credentials.c memcpy(&next_cred_out->cred.data, &dc->clnt_chal.data, dc 364 source3/libsmb/credentials.c next_cred_out->timestamp = dc->sequence; dc 434 source3/nmbd/nmbd_processlogon.c char *component, *dc, *q1; dc 481 source3/nmbd/nmbd_processlogon.c dc = domain; dc 483 source3/nmbd/nmbd_processlogon.c while ((component = strtok_r(dc, ".", &saveptr)) != NULL) { dc 484 source3/nmbd/nmbd_processlogon.c dc = NULL; dc 43 source3/rpc_client/cli_netlogon.c struct dcinfo *dc; dc 49 source3/rpc_client/cli_netlogon.c TALLOC_FREE(cli->dc); dc 50 source3/rpc_client/cli_netlogon.c cli->dc = talloc_zero(cli, struct dcinfo); dc 51 source3/rpc_client/cli_netlogon.c if (cli->dc == NULL) { dc 54 source3/rpc_client/cli_netlogon.c dc = cli->dc; dc 57 source3/rpc_client/cli_netlogon.c memcpy(dc->mach_pw, machine_pwd, 16); dc 59 source3/rpc_client/cli_netlogon.c fstrcpy(dc->remote_machine, "\\\\"); dc 60 source3/rpc_client/cli_netlogon.c fstrcat(dc->remote_machine, server_name); dc 62 source3/rpc_client/cli_netlogon.c fstrcpy(dc->domain, domain); dc 64 source3/rpc_client/cli_netlogon.c fstr_sprintf( dc->mach_acct, "%s$", machine_account); dc 72 source3/rpc_client/cli_netlogon.c dc->remote_machine, dc 82 source3/rpc_client/cli_netlogon.c dc, dc 93 source3/rpc_client/cli_netlogon.c dc->remote_machine, dc 94 source3/rpc_client/cli_netlogon.c dc->mach_acct, dc 118 source3/rpc_client/cli_netlogon.c if (!netlogon_creds_client_check(dc, &srv_chal_recv)) { dc 172 source3/rpc_client/cli_netlogon.c netlogon_creds_client_step(cli->dc, &clnt_creds); dc 203 source3/rpc_client/cli_netlogon.c memcpy(key, cli->dc->sess_key, 8); dc 283 source3/rpc_client/cli_netlogon.c cli->dc->remote_machine, dc 295 source3/rpc_client/cli_netlogon.c if (!netlogon_creds_client_check(cli->dc, &ret_creds.cred)) { dc 355 source3/rpc_client/cli_netlogon.c netlogon_creds_client_step(cli->dc, &clnt_creds); dc 412 source3/rpc_client/cli_netlogon.c cli->dc->sess_key, 16); dc 417 source3/rpc_client/cli_netlogon.c cli->dc->sess_key, 8); dc 422 source3/rpc_client/cli_netlogon.c if (!netlogon_creds_client_check(cli->dc, &ret_creds.cred)) { dc 529 source3/rpc_client/cli_netlogon.c cli->dc->sess_key, 16); dc 534 source3/rpc_client/cli_netlogon.c cli->dc->sess_key, 8); dc 577 source3/rpc_client/cli_netlogon.c netlogon_creds_client_step(cli->dc, &clnt_creds); dc 584 source3/rpc_client/cli_netlogon.c cli->dc->sess_key, dc 588 source3/rpc_client/cli_netlogon.c cli->dc->remote_machine, dc 589 source3/rpc_client/cli_netlogon.c cli->dc->mach_acct, dc 606 source3/rpc_client/cli_netlogon.c cli->dc->sess_key, 1); dc 609 source3/rpc_client/cli_netlogon.c cli->dc->remote_machine, dc 610 source3/rpc_client/cli_netlogon.c cli->dc->mach_acct, dc 624 source3/rpc_client/cli_netlogon.c if (!netlogon_creds_client_check(cli->dc, &srv_cred.cred)) { dc 3960 source3/rpc_client/cli_pipe.c result->dc = (struct dcinfo *)talloc_memdup(result, pdc, sizeof(*pdc)); dc 3961 source3/rpc_client/cli_pipe.c if (result->dc == NULL) { dc 4041 source3/rpc_client/cli_pipe.c cli, interface, transport, auth_level, domain, netlogon_pipe->dc, dc 4080 source3/rpc_client/cli_pipe.c cli, interface, transport, auth_level, domain, netlogon_pipe->dc, dc 413 source3/rpc_server/srv_netlog_nt.c if (!p->dc) { dc 414 source3/rpc_server/srv_netlog_nt.c p->dc = TALLOC_ZERO_P(p, struct dcinfo); dc 415 source3/rpc_server/srv_netlog_nt.c if (!p->dc) { dc 420 source3/rpc_server/srv_netlog_nt.c ZERO_STRUCTP(p->dc); dc 423 source3/rpc_server/srv_netlog_nt.c fstrcpy(p->dc->remote_machine, r->in.computer_name); dc 426 source3/rpc_server/srv_netlog_nt.c memcpy(p->dc->clnt_chal.data, r->in.credentials->data, dc 431 source3/rpc_server/srv_netlog_nt.c generate_random_buffer(p->dc->srv_chal.data, 8); dc 434 source3/rpc_server/srv_netlog_nt.c init_net_r_req_chal(r->out.return_credentials, &p->dc->srv_chal); dc 436 source3/rpc_server/srv_netlog_nt.c p->dc->challenge_sent = True; dc 452 source3/rpc_server/srv_netlog_nt.c if (!p->dc || !p->dc->challenge_sent) { dc 456 source3/rpc_server/srv_netlog_nt.c status = get_md4pw((char *)p->dc->mach_pw, dc 473 source3/rpc_server/srv_netlog_nt.c p->dc, dc 474 source3/rpc_server/srv_netlog_nt.c &p->dc->clnt_chal, /* Stored client chal. */ dc 475 source3/rpc_server/srv_netlog_nt.c &p->dc->srv_chal, /* Stored server chal. */ dc 476 source3/rpc_server/srv_netlog_nt.c p->dc->mach_pw, dc 480 source3/rpc_server/srv_netlog_nt.c if (!netlogon_creds_server_check(p->dc, r->in.credentials)) { dc 488 source3/rpc_server/srv_netlog_nt.c fstrcpy(p->dc->mach_acct, r->in.account_name); dc 489 source3/rpc_server/srv_netlog_nt.c fstrcpy(p->dc->remote_machine, r->in.computer_name); dc 490 source3/rpc_server/srv_netlog_nt.c p->dc->authenticated = True; dc 559 source3/rpc_server/srv_netlog_nt.c if (!p->dc || !p->dc->challenge_sent) { dc 577 source3/rpc_server/srv_netlog_nt.c status = get_md4pw((char *)p->dc->mach_pw, dc 592 source3/rpc_server/srv_netlog_nt.c p->dc, dc 593 source3/rpc_server/srv_netlog_nt.c &p->dc->clnt_chal, /* Stored client chal. */ dc 594 source3/rpc_server/srv_netlog_nt.c &p->dc->srv_chal, /* Stored server chal. */ dc 595 source3/rpc_server/srv_netlog_nt.c p->dc->mach_pw, dc 599 source3/rpc_server/srv_netlog_nt.c if (!netlogon_creds_server_check(p->dc, r->in.credentials)) { dc 611 source3/rpc_server/srv_netlog_nt.c fstrcpy(p->dc->mach_acct, r->in.account_name); dc 612 source3/rpc_server/srv_netlog_nt.c fstrcpy(p->dc->remote_machine, r->in.computer_name); dc 613 source3/rpc_server/srv_netlog_nt.c fstrcpy(p->dc->domain, lp_workgroup() ); dc 615 source3/rpc_server/srv_netlog_nt.c p->dc->authenticated = True; dc 621 source3/rpc_server/srv_netlog_nt.c p->dc); dc 686 source3/rpc_server/srv_netlog_nt.c if (!p->dc) { dc 690 source3/rpc_server/srv_netlog_nt.c &p->dc); dc 697 source3/rpc_server/srv_netlog_nt.c if (!p->dc || !p->dc->authenticated) { dc 702 source3/rpc_server/srv_netlog_nt.c remote_machine, p->dc->mach_acct)); dc 705 source3/rpc_server/srv_netlog_nt.c if (!netlogon_creds_server_step(p->dc, r->in.credential, &cred_out)) { dc 708 source3/rpc_server/srv_netlog_nt.c remote_machine, p->dc->mach_acct )); dc 719 source3/rpc_server/srv_netlog_nt.c secrets_store_schannel_session_info(p, remote_machine, p->dc); dc 720 source3/rpc_server/srv_netlog_nt.c ret = pdb_getsampwnam(sampass, p->dc->mach_acct); dc 744 source3/rpc_server/srv_netlog_nt.c des_crypt112_16(pwd, r->in.new_password->hash, p->dc->sess_key, 0); dc 811 source3/rpc_server/srv_netlog_nt.c if (!p->dc) { dc 817 source3/rpc_server/srv_netlog_nt.c p, r->in.computer_name, &p->dc); dc 824 source3/rpc_server/srv_netlog_nt.c if (!p->dc || !p->dc->authenticated) { dc 829 source3/rpc_server/srv_netlog_nt.c if (!netlogon_creds_server_step(p->dc, r->in.credential, r->out.return_authenticator)) { dc 832 source3/rpc_server/srv_netlog_nt.c r->in.computer_name, p->dc->mach_acct )); dc 838 source3/rpc_server/srv_netlog_nt.c secrets_store_schannel_session_info(p, r->in.computer_name, p->dc); dc 905 source3/rpc_server/srv_netlog_nt.c if (!p->dc) { dc 911 source3/rpc_server/srv_netlog_nt.c p, r->in.computer_name, &p->dc); dc 918 source3/rpc_server/srv_netlog_nt.c if (!p->dc || !p->dc->authenticated) { dc 923 source3/rpc_server/srv_netlog_nt.c if (!netlogon_creds_server_step(p->dc, r->in.credential, r->out.return_authenticator)) { dc 926 source3/rpc_server/srv_netlog_nt.c fn, r->in.computer_name, p->dc->mach_acct )); dc 932 source3/rpc_server/srv_netlog_nt.c secrets_store_schannel_session_info(p, r->in.computer_name, p->dc); dc 1022 source3/rpc_server/srv_netlog_nt.c p->dc->sess_key)) { dc 1073 source3/rpc_server/srv_netlog_nt.c memcpy(pipe_session_key, p->dc->sess_key, 16); dc 587 source3/rpcclient/cmd_netlogon.c netlogon_creds_client_step(cli->dc, &credential); dc 601 source3/rpcclient/cmd_netlogon.c if (!netlogon_creds_client_check(cli->dc, dc 650 source3/rpcclient/cmd_netlogon.c netlogon_creds_client_step(cli->dc, &credential); dc 663 source3/rpcclient/cmd_netlogon.c if (!netlogon_creds_client_check(cli->dc, dc 1085 source3/rpcclient/cmd_netlogon.c netlogon_creds_client_step(cli->dc, &clnt_creds); dc 1102 source3/rpcclient/cmd_netlogon.c if (!netlogon_creds_client_check(cli->dc, &srv_cred.cred)) { dc 1130 source3/rpcclient/cmd_netlogon.c netlogon_creds_client_step(cli->dc, &credential); dc 1143 source3/rpcclient/cmd_netlogon.c if (!netlogon_creds_client_check(cli->dc, dc 105 source3/utils/net_rpc_join.c domain, netlogon_pipe->dc, &pipe_hnd); dc 420 source3/utils/net_rpc_join.c PIPE_AUTH_LEVEL_PRIVACY, domain, pipe_hnd->dc, dc 50 source3/winbindd/idmap_adex/domain_util.c struct dc_info *dc = NULL; dc 60 source3/winbindd/idmap_adex/domain_util.c dc = dc_list_head(); dc 61 source3/winbindd/idmap_adex/domain_util.c while (dc) { dc 62 source3/winbindd/idmap_adex/domain_util.c if (strequal (dc->dns_name, domain)) dc 64 source3/winbindd/idmap_adex/domain_util.c dc = dc->next; dc 67 source3/winbindd/idmap_adex/domain_util.c if (dc) { dc 72 source3/winbindd/idmap_adex/domain_util.c dc = TALLOC_ZERO_P(NULL, struct dc_info); dc 73 source3/winbindd/idmap_adex/domain_util.c BAIL_ON_PTR_ERROR(dc, nt_status); dc 75 source3/winbindd/idmap_adex/domain_util.c dc->dns_name = talloc_strdup(dc, domain); dc 76 source3/winbindd/idmap_adex/domain_util.c BAIL_ON_PTR_ERROR(dc->dns_name, nt_status); dc 78 source3/winbindd/idmap_adex/domain_util.c DLIST_ADD_END(_dc_server_list, dc, struct dc_info*); dc 86 source3/winbindd/idmap_adex/domain_util.c talloc_destroy(dc); dc 99 source3/winbindd/idmap_adex/domain_util.c struct dc_info *dc = dc_list_head(); dc 101 source3/winbindd/idmap_adex/domain_util.c while (dc) { dc 102 source3/winbindd/idmap_adex/domain_util.c struct dc_info *p = dc->next; dc 104 source3/winbindd/idmap_adex/domain_util.c cell_destroy(dc->domain_cell); dc 105 source3/winbindd/idmap_adex/domain_util.c talloc_destroy(dc); dc 107 source3/winbindd/idmap_adex/domain_util.c dc = p; dc 167 source3/winbindd/idmap_adex/domain_util.c static NTSTATUS dc_do_search(struct dc_info *dc, dc 177 source3/winbindd/idmap_adex/domain_util.c status = cell_do_search(dc->domain_cell, search_base, dc 189 source3/winbindd/idmap_adex/domain_util.c struct dc_info *dc = dc_list_head(); dc 191 source3/winbindd/idmap_adex/domain_util.c if (!dc) dc 194 source3/winbindd/idmap_adex/domain_util.c while (dc) { dc 195 source3/winbindd/idmap_adex/domain_util.c if (strequal(dc->dns_name, dns_domain)) { dc 196 source3/winbindd/idmap_adex/domain_util.c return dc; dc 199 source3/winbindd/idmap_adex/domain_util.c dc = dc->next; dc 217 source3/winbindd/idmap_adex/domain_util.c struct dc_info *dc = NULL; dc 228 source3/winbindd/idmap_adex/domain_util.c if ((dc = dc_find_domain(dns_domain)) == NULL) { dc 235 source3/winbindd/idmap_adex/domain_util.c if (!dc->domain_cell) { dc 238 source3/winbindd/idmap_adex/domain_util.c base_dn = ads_build_dn(dc->dns_name); dc 241 source3/winbindd/idmap_adex/domain_util.c nt_status = cell_connect_dn(&dc->domain_cell, base_dn); dc 245 source3/winbindd/idmap_adex/domain_util.c nt_status = cell_lookup_settings(dc->domain_cell); dc 251 source3/winbindd/idmap_adex/domain_util.c cell_set_flags(dc->domain_cell, LWCELL_FLAG_SEARCH_FOREST); dc 257 source3/winbindd/idmap_adex/domain_util.c if (cell_flags(dc->domain_cell) & LWCELL_FLAG_USE_RFC2307_ATTRS) { dc 258 source3/winbindd/idmap_adex/domain_util.c nt_status = dc_do_search(dc, dn, LDAP_SCOPE_BASE, dc 271 source3/winbindd/idmap_adex/domain_util.c base = cell_search_base(dc->domain_cell); dc 274 source3/winbindd/idmap_adex/domain_util.c nt_status = dc_do_search(dc, base, LDAP_SCOPE_SUBTREE, dc 279 source3/winbindd/idmap_adex/domain_util.c *cell = dc->domain_cell; dc 1994 source3/winbindd/winbindd_cm.c if (!domain->conn.netlogon_pipe->dc) { dc 1998 source3/winbindd/winbindd_cm.c *ppdc = domain->conn.netlogon_pipe->dc; dc 2450 source3/winbindd/winbindd_cm.c PIPE_AUTH_LEVEL_PRIVACY, domain->name, netlogon_pipe->dc, dc 215 source4/heimdal/lib/hcrypto/imath/imath.c static mp_digit s_uadd(mp_digit *da, mp_digit *db, mp_digit *dc, dc 219 source4/heimdal/lib/hcrypto/imath/imath.c static void s_usub(mp_digit *da, mp_digit *db, mp_digit *dc, dc 223 source4/heimdal/lib/hcrypto/imath/imath.c static int s_kmul(mp_digit *da, mp_digit *db, mp_digit *dc, dc 227 source4/heimdal/lib/hcrypto/imath/imath.c static void s_umul(mp_digit *da, mp_digit *db, mp_digit *dc, dc 231 source4/heimdal/lib/hcrypto/imath/imath.c static int s_ksqr(mp_digit *da, mp_digit *dc, mp_size size_a); dc 234 source4/heimdal/lib/hcrypto/imath/imath.c static void s_usqr(mp_digit *da, mp_digit *dc, mp_size size_a); dc 243 source4/heimdal/lib/hcrypto/imath/imath.c static void s_dbmul(mp_digit *da, mp_digit b, mp_digit *dc, dc 470 source4/heimdal/lib/hcrypto/imath/imath.c mp_digit *da, *dc; dc 475 source4/heimdal/lib/hcrypto/imath/imath.c da = MP_DIGITS(a); dc = MP_DIGITS(c); dc 476 source4/heimdal/lib/hcrypto/imath/imath.c COPY(da, dc, ua); dc 2287 source4/heimdal/lib/hcrypto/imath/imath.c static mp_digit s_uadd(mp_digit *da, mp_digit *db, mp_digit *dc, dc 2300 source4/heimdal/lib/hcrypto/imath/imath.c for(pos = 0; pos < size_b; ++pos, ++da, ++db, ++dc) { dc 2302 source4/heimdal/lib/hcrypto/imath/imath.c *dc = LOWER_HALF(w); dc 2307 source4/heimdal/lib/hcrypto/imath/imath.c for(/* */; pos < size_a; ++pos, ++da, ++dc) { dc 2310 source4/heimdal/lib/hcrypto/imath/imath.c *dc = LOWER_HALF(w); dc 2322 source4/heimdal/lib/hcrypto/imath/imath.c static void s_usub(mp_digit *da, mp_digit *db, mp_digit *dc, dc 2332 source4/heimdal/lib/hcrypto/imath/imath.c for(pos = 0; pos < size_b; ++pos, ++da, ++db, ++dc) { dc 2336 source4/heimdal/lib/hcrypto/imath/imath.c *dc = LOWER_HALF(w); dc 2341 source4/heimdal/lib/hcrypto/imath/imath.c for(/* */; pos < size_a; ++pos, ++da, ++dc) { dc 2345 source4/heimdal/lib/hcrypto/imath/imath.c *dc = LOWER_HALF(w); dc 2357 source4/heimdal/lib/hcrypto/imath/imath.c static int s_kmul(mp_digit *da, mp_digit *db, mp_digit *dc, dc 2424 source4/heimdal/lib/hcrypto/imath/imath.c COPY(t1, dc, buf_size); dc 2425 source4/heimdal/lib/hcrypto/imath/imath.c carry = s_uadd(t3, dc + bot_size, dc + bot_size, dc 2429 source4/heimdal/lib/hcrypto/imath/imath.c carry = s_uadd(t2, dc + 2*bot_size, dc + 2*bot_size, dc 2436 source4/heimdal/lib/hcrypto/imath/imath.c s_umul(da, db, dc, size_a, size_b); dc 2446 source4/heimdal/lib/hcrypto/imath/imath.c static void s_umul(mp_digit *da, mp_digit *db, mp_digit *dc, dc 2452 source4/heimdal/lib/hcrypto/imath/imath.c for(a = 0; a < size_a; ++a, ++dc, ++da) { dc 2453 source4/heimdal/lib/hcrypto/imath/imath.c mp_digit *dct = dc; dc 2475 source4/heimdal/lib/hcrypto/imath/imath.c static int s_ksqr(mp_digit *da, mp_digit *dc, mp_size size_a) dc 2509 source4/heimdal/lib/hcrypto/imath/imath.c COPY(t1, dc, 2 * bot_size); dc 2510 source4/heimdal/lib/hcrypto/imath/imath.c carry = s_uadd(t3, dc + bot_size, dc + bot_size, dc 2514 source4/heimdal/lib/hcrypto/imath/imath.c carry = s_uadd(t2, dc + 2*bot_size, dc + 2*bot_size, dc 2522 source4/heimdal/lib/hcrypto/imath/imath.c s_usqr(da, dc, size_a); dc 2532 source4/heimdal/lib/hcrypto/imath/imath.c static void s_usqr(mp_digit *da, mp_digit *dc, mp_size size_a) dc 2537 source4/heimdal/lib/hcrypto/imath/imath.c for(i = 0; i < size_a; ++i, dc += 2, ++da) { dc 2538 source4/heimdal/lib/hcrypto/imath/imath.c mp_digit *dct = dc, *dat = da; dc 2638 source4/heimdal/lib/hcrypto/imath/imath.c static void s_dbmul(mp_digit *da, mp_digit b, mp_digit *dc, mp_size size_a) dc 2645 source4/heimdal/lib/hcrypto/imath/imath.c *dc++ = LOWER_HALF(w); dc 2651 source4/heimdal/lib/hcrypto/imath/imath.c *dc = LOWER_HALF(w); dc 66 source4/lib/ldb/ldb_ildap/ldb_ildap.c struct ildb_destructor_ctx *dc;