/sssd/src/responder/common/ |
H A D | responder_utils.c | 45 TALLOC_CTX *tmp_ctx; local 57 tmp_ctx = talloc_new(NULL); 58 if (tmp_ctx == NULL) { 63 ret = split_on_separator(tmp_ctx, conf_str, ',', true, true, 71 allow = talloc_zero_array(tmp_ctx, const char *, conf_list_size); 72 deny = talloc_zero_array(tmp_ctx, const char *, conf_list_size); 107 list = talloc_zero_array(tmp_ctx, const char *, list_size + 1); 150 talloc_free(tmp_ctx); 160 TALLOC_CTX *tmp_ctx; local 163 tmp_ctx [all...] |
/sssd/src/db/ |
H A D | sysdb_search.c | 76 TALLOC_CTX *tmp_ctx; local 86 tmp_ctx = talloc_new(NULL); 87 if (tmp_ctx == NULL) { 91 ret = sysdb_search_ts_entry(tmp_ctx, sysdb, sysdb_msg->dn, 132 talloc_zfree(tmp_ctx); 187 TALLOC_CTX *tmp_ctx; local 195 tmp_ctx = talloc_new(NULL); 196 if (!tmp_ctx) { 200 base_dn = sysdb_user_base_dn(tmp_ctx, domain); 206 ret = sss_filter_sanitize_for_dom(tmp_ctx, nam 243 TALLOC_CTX *tmp_ctx; local 308 TALLOC_CTX *tmp_ctx; local 355 TALLOC_CTX *tmp_ctx; local 421 TALLOC_CTX *tmp_ctx = NULL; local 460 TALLOC_CTX *tmp_ctx; local 492 TALLOC_CTX *tmp_ctx = NULL; local 557 TALLOC_CTX *tmp_ctx; local 647 TALLOC_CTX *tmp_ctx; local 740 TALLOC_CTX *tmp_ctx; local 832 TALLOC_CTX *tmp_ctx; local 896 TALLOC_CTX *tmp_ctx; local 988 TALLOC_CTX *tmp_ctx; local 1045 TALLOC_CTX *tmp_ctx; local 1153 TALLOC_CTX *tmp_ctx; local 1211 TALLOC_CTX *tmp_ctx; local 1311 TALLOC_CTX *tmp_ctx; local 1375 TALLOC_CTX *tmp_ctx; local 1490 TALLOC_CTX *tmp_ctx; local 1550 TALLOC_CTX *tmp_ctx; local 1635 TALLOC_CTX *tmp_ctx; local 1772 TALLOC_CTX *tmp_ctx; local 1882 TALLOC_CTX *tmp_ctx; local 1939 TALLOC_CTX *tmp_ctx; local 1998 TALLOC_CTX *tmp_ctx = NULL; local 2099 TALLOC_CTX *tmp_ctx; local 2171 TALLOC_CTX *tmp_ctx; local [all...] |
H A D | sysdb_autofs.c | 45 TALLOC_CTX *tmp_ctx; local 51 tmp_ctx = talloc_new(NULL); 52 if (!tmp_ctx) { 56 ret = sysdb_dn_sanitize(tmp_ctx, entry_name, &clean_name); 61 ret = sysdb_dn_sanitize(tmp_ctx, entry_value, &clean_value); 66 rdn = talloc_asprintf(tmp_ctx, "%s%s", clean_name, clean_value); 75 talloc_free(tmp_ctx); 107 TALLOC_CTX *tmp_ctx; local 111 tmp_ctx = talloc_new(NULL); 112 if (!tmp_ctx) { 190 TALLOC_CTX *tmp_ctx; local 254 TALLOC_CTX *tmp_ctx; local 358 TALLOC_CTX *tmp_ctx; local 417 TALLOC_CTX *tmp_ctx; local 441 TALLOC_CTX *tmp_ctx; local [all...] |
H A D | sysdb_ssh.c | 60 TALLOC_CTX *tmp_ctx; local 71 tmp_ctx = talloc_new(NULL); 72 if (!tmp_ctx) { 84 ret = sysdb_get_ssh_host(tmp_ctx, domain, name, search_attrs, &host); 190 talloc_free(tmp_ctx); 203 TALLOC_CTX *tmp_ctx; local 205 tmp_ctx = talloc_new(NULL); 206 if (!tmp_ctx) { 210 dn = sysdb_ssh_host_dn(tmp_ctx, domain, name); 219 talloc_free(tmp_ctx); 229 TALLOC_CTX *tmp_ctx; local 286 TALLOC_CTX *tmp_ctx; local 327 TALLOC_CTX *tmp_ctx; local 374 TALLOC_CTX *tmp_ctx; local [all...] |
H A D | sysdb_services.c | 49 TALLOC_CTX *tmp_ctx; local 58 tmp_ctx = talloc_new(NULL); 59 if (!tmp_ctx) { 63 ret = sss_filter_sanitize(tmp_ctx, name, &sanitized_name); 69 ret = sss_filter_sanitize(tmp_ctx, proto, &sanitized_proto); 75 subfilter = talloc_asprintf(tmp_ctx, SYSDB_SVC_BYNAME_FILTER, 98 talloc_free(tmp_ctx); 110 TALLOC_CTX *tmp_ctx; local 122 tmp_ctx = talloc_new(NULL); 123 if (!tmp_ctx) { 175 TALLOC_CTX *tmp_ctx; local 442 TALLOC_CTX *tmp_ctx; local 648 TALLOC_CTX *tmp_ctx; local 725 TALLOC_CTX *tmp_ctx; local 763 TALLOC_CTX *tmp_ctx; local 790 TALLOC_CTX *tmp_ctx; local [all...] |
H A D | sysdb_ops.c | 166 TALLOC_CTX *tmp_ctx; local 168 tmp_ctx = talloc_new(NULL); 169 if (!tmp_ctx) { 179 ret = sysdb_search_entry(tmp_ctx, sysdb, dn, 215 talloc_free(tmp_ctx); 231 TALLOC_CTX *tmp_ctx; local 235 tmp_ctx = talloc_new(NULL); 236 if (tmp_ctx == NULL) { 241 ret = ldb_search(ldb, tmp_ctx, &res, 258 talloc_zfree(tmp_ctx); 317 TALLOC_CTX *tmp_ctx; local 379 TALLOC_CTX *tmp_ctx; local 471 TALLOC_CTX *tmp_ctx; local 540 TALLOC_CTX *tmp_ctx; local 601 TALLOC_CTX *tmp_ctx; local 646 TALLOC_CTX *tmp_ctx; local 717 TALLOC_CTX *tmp_ctx; local 766 TALLOC_CTX *tmp_ctx; local 826 TALLOC_CTX *tmp_ctx; local 907 TALLOC_CTX *tmp_ctx; local 1047 TALLOC_CTX *tmp_ctx; local 1075 TALLOC_CTX *tmp_ctx; local 1146 TALLOC_CTX *tmp_ctx; local 1260 TALLOC_CTX *tmp_ctx; local 1303 TALLOC_CTX *tmp_ctx; local 1336 TALLOC_CTX *tmp_ctx; local 1371 TALLOC_CTX *tmp_ctx; local 1396 TALLOC_CTX *tmp_ctx; local 1573 TALLOC_CTX *tmp_ctx; local 1648 TALLOC_CTX *tmp_ctx; local 1737 TALLOC_CTX *tmp_ctx; local 1842 TALLOC_CTX *tmp_ctx; local 1994 TALLOC_CTX *tmp_ctx; local 2046 TALLOC_CTX *tmp_ctx; local 2206 TALLOC_CTX *tmp_ctx; local 2376 TALLOC_CTX *tmp_ctx; local 2484 TALLOC_CTX *tmp_ctx; local 2707 TALLOC_CTX *tmp_ctx; local 2897 TALLOC_CTX *tmp_ctx = talloc_new(NULL); local 2984 TALLOC_CTX *tmp_ctx; local 3066 TALLOC_CTX *tmp_ctx; local 3109 TALLOC_CTX *tmp_ctx; local 3164 TALLOC_CTX *tmp_ctx; local 3263 TALLOC_CTX *tmp_ctx; local 3314 TALLOC_CTX *tmp_ctx; local 3408 TALLOC_CTX *tmp_ctx; local 3510 TALLOC_CTX *tmp_ctx; local 3625 TALLOC_CTX *tmp_ctx; local 3727 TALLOC_CTX *tmp_ctx; local 3788 TALLOC_CTX *tmp_ctx; local 3840 TALLOC_CTX *tmp_ctx; local 3881 TALLOC_CTX *tmp_ctx; local 3939 TALLOC_CTX *tmp_ctx; local 4016 TALLOC_CTX *tmp_ctx; local 4083 TALLOC_CTX *tmp_ctx; local 4297 TALLOC_CTX *tmp_ctx = talloc_new(NULL); local 4481 TALLOC_CTX *tmp_ctx; local 4651 TALLOC_CTX *tmp_ctx; local 4730 TALLOC_CTX *tmp_ctx; local 4862 TALLOC_CTX *tmp_ctx; local 4908 TALLOC_CTX *tmp_ctx; local [all...] |
H A D | sysdb_views.c | 35 TALLOC_CTX *tmp_ctx; local 42 tmp_ctx = talloc_new(NULL); 43 if (tmp_ctx == NULL) { 47 view_base_dn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_TMPL_VIEW_BASE); 52 ret = ldb_search(sysdb->ldb, tmp_ctx, &res, view_base_dn, LDB_SCOPE_BASE, 84 talloc_free(tmp_ctx); 101 TALLOC_CTX *tmp_ctx; local 107 tmp_ctx = talloc_new(NULL); 108 if (tmp_ctx == NULL) { 112 ret = sysdb_get_view_name_ex(tmp_ctx, sysd 185 TALLOC_CTX *tmp_ctx; local 220 TALLOC_CTX *tmp_ctx; local 379 TALLOC_CTX *tmp_ctx; local 641 TALLOC_CTX *tmp_ctx; local 712 TALLOC_CTX *tmp_ctx; local 844 TALLOC_CTX *tmp_ctx; local 939 TALLOC_CTX *tmp_ctx; local 1086 TALLOC_CTX *tmp_ctx; local 1229 TALLOC_CTX *tmp_ctx; local 1357 TALLOC_CTX *tmp_ctx; local 1533 TALLOC_CTX *tmp_ctx = NULL; local 1571 TALLOC_CTX *tmp_ctx = NULL; local 1610 TALLOC_CTX *tmp_ctx = NULL; local [all...] |
H A D | sysdb_selinux.c | 40 TALLOC_CTX *tmp_ctx; local 43 tmp_ctx = talloc_new(NULL); 44 if (!tmp_ctx) { 48 msg = ldb_msg_new(tmp_ctx); 79 talloc_zfree(tmp_ctx); 87 TALLOC_CTX *tmp_ctx; local 98 tmp_ctx = talloc_new(NULL); 99 if (!tmp_ctx) { 111 ret = sysdb_dn_sanitize(tmp_ctx, name, &clean_name); 116 dn = ldb_dn_new_fmt(tmp_ctx, sysd 289 TALLOC_CTX *tmp_ctx; local [all...] |
H A D | sysdb_sudo.c | 77 TALLOC_CTX *tmp_ctx = NULL; local 89 tmp_ctx = talloc_new(NULL); 90 NULL_CHECK(tmp_ctx, ret, done); 112 tmp_ctx, &values); 135 tmp_ctx, &values); 171 talloc_free(tmp_ctx); 184 TALLOC_CTX *tmp_ctx = NULL; local 189 tmp_ctx = talloc_new(NULL); 190 NULL_CHECK(tmp_ctx, ret, done); 200 rules = talloc_realloc(tmp_ctx, rule 225 TALLOC_CTX *tmp_ctx; local 376 TALLOC_CTX *tmp_ctx; local 487 TALLOC_CTX *tmp_ctx; local 569 TALLOC_CTX *tmp_ctx; local 659 TALLOC_CTX *tmp_ctx = NULL; local 726 TALLOC_CTX *tmp_ctx; local 858 TALLOC_CTX *tmp_ctx; local 1020 TALLOC_CTX *tmp_ctx; local 1093 TALLOC_CTX *tmp_ctx; local [all...] |
/sssd/src/tests/cmocka/ |
H A D | test_search_bases.c | 70 TALLOC_CTX *tmp_ctx; local 74 tmp_ctx = talloc_new(NULL); 75 assert_non_null(tmp_ctx); 77 search_bases = generate_bases(tmp_ctx, dns, n); 78 check_leaks_push(tmp_ctx); 79 ret = sss_ldap_dn_in_search_bases(tmp_ctx, dn, search_bases, NULL); 80 assert_true(check_leaks_pop(tmp_ctx) == true); 82 talloc_free(tmp_ctx); 109 TALLOC_CTX *tmp_ctx; local 116 tmp_ctx [all...] |
H A D | test_ad_gpo.c | 78 TALLOC_CTX *tmp_ctx; local 80 tmp_ctx = talloc_new(global_talloc_context); 81 assert_non_null(tmp_ctx); 82 check_leaks_push(tmp_ctx); 84 ret = ad_gpo_populate_som_list(tmp_ctx, 113 assert_true(check_leaks_pop(tmp_ctx) == true); 114 talloc_free(tmp_ctx); 159 TALLOC_CTX *tmp_ctx; local 161 tmp_ctx = talloc_new(global_talloc_context); 162 assert_non_null(tmp_ctx); 279 TALLOC_CTX *tmp_ctx; local [all...] |
/sssd/src/providers/ad/ |
H A D | ad_pac_common.c | 37 TALLOC_CTX *tmp_ctx; local 39 tmp_ctx = talloc_new(NULL); 40 if (tmp_ctx == NULL) { 48 ndr_pull = ndr_pull_init_blob(&blob, tmp_ctx); 56 pac_data = talloc_zero(tmp_ctx, struct PAC_DATA); 83 talloc_free(tmp_ctx);
|
/sssd/src/responder/sudo/ |
H A D | sudosrv_query.c | 85 TALLOC_CTX *tmp_ctx = NULL; local 90 tmp_ctx = talloc_new(NULL); 91 if (tmp_ctx == NULL) { 97 ret = sudosrv_response_append_string(tmp_ctx, name, strlen(name) + 1, 104 ret = sudosrv_response_append_uint32(tmp_ctx, values_num, 120 ret = sudosrv_response_append_string(tmp_ctx, 136 talloc_free(tmp_ctx); 148 TALLOC_CTX *tmp_ctx = NULL; local 152 tmp_ctx = talloc_new(NULL); 153 if (tmp_ctx 202 TALLOC_CTX *tmp_ctx = NULL; local [all...] |
/sssd/src/tests/cwrap/ |
H A D | test_responder_common.c | 45 TALLOC_CTX *tmp_ctx; local 50 tmp_ctx = talloc_new(global_talloc_context); 51 assert_non_null(tmp_ctx); 53 check_leaks_push(tmp_ctx); 55 ret = csv_string_to_uid_array(tmp_ctx, "1, 2, 3", false, &count, &list); 63 assert_true(check_leaks_pop(tmp_ctx)); 64 talloc_free(tmp_ctx); 69 TALLOC_CTX *tmp_ctx; local 74 tmp_ctx = talloc_new(global_talloc_context); 75 assert_non_null(tmp_ctx); 92 TALLOC_CTX *tmp_ctx; local [all...] |
H A D | test_become_user.c | 77 TALLOC_CTX *tmp_ctx; local 83 tmp_ctx = talloc_new(global_talloc_context); 84 assert_non_null(tmp_ctx); 92 check_leaks_push(tmp_ctx); 94 ret = switch_creds(tmp_ctx, sssd->pw_uid, sssd->pw_gid, 108 ret = switch_creds(tmp_ctx, sssd->pw_uid, sssd->pw_gid, 122 assert_true(check_leaks_pop(tmp_ctx)); 123 talloc_free(tmp_ctx);
|
/sssd/src/providers/proxy/ |
H A D | proxy_services.c | 40 TALLOC_CTX *tmp_ctx; local 44 tmp_ctx = talloc_new(NULL); 45 if (!tmp_ctx) return ENOMEM; 47 cased_name = sss_get_cased_name(tmp_ctx, svc->s_name, 54 protocols = talloc_array(tmp_ctx, const char *, 2); 69 ret = sss_get_cased_name_list(tmp_ctx, 78 lc_alias = sss_tc_utf8_str_tolower(tmp_ctx, svc->s_name); 85 ret = add_string_to_list(tmp_ctx, lc_alias, 103 talloc_free(tmp_ctx); 116 TALLOC_CTX *tmp_ctx; local 161 TALLOC_CTX *tmp_ctx; local [all...] |
/sssd/src/util/ |
H A D | backup_file.c | 31 TALLOC_CTX *tmp_ctx = NULL; local 48 tmp_ctx = talloc_new(NULL); 49 if (!tmp_ctx) { 57 dst_file = talloc_asprintf(tmp_ctx, "%s.bak", src_file); 59 dst_file = talloc_asprintf(tmp_ctx, "%s.bak%d", src_file, i); 118 talloc_free(tmp_ctx);
|
H A D | sss_nss.c | 35 TALLOC_CTX *tmp_ctx = NULL; local 49 tmp_ctx = talloc_new(NULL); 50 if (!tmp_ctx) return NULL; 52 copy = talloc_strdup(tmp_ctx, template); 58 result = talloc_strdup(tmp_ctx, ""); 81 username = sss_output_name(tmp_ctx, homedir_ctx->username, 120 username = sss_output_name(tmp_ctx, homedir_ctx->username, 202 talloc_zfree(tmp_ctx);
|
H A D | sss_ssh.c | 33 TALLOC_CTX *tmp_ctx; local 40 tmp_ctx = talloc_new(NULL); 41 if (!tmp_ctx) { 52 res = talloc_zero(tmp_ctx, struct sss_ssh_ent); 109 talloc_free(tmp_ctx); 150 TALLOC_CTX *tmp_ctx; local 157 tmp_ctx = talloc_new(NULL); 158 if (!tmp_ctx) { 166 blob = sss_base64_encode(tmp_ctx, pubkey->data, pubkey->data_len); 172 ret = sss_ssh_get_pubkey_algorithm(tmp_ctx, pubke [all...] |
/sssd/src/util/crypto/nss/ |
H A D | nss_obfuscate.c | 66 TALLOC_CTX *tmp_ctx = NULL; local 82 tmp_ctx = talloc_new(mem_ctx); 83 if (!tmp_ctx) { 101 ret = nss_ctx_init(tmp_ctx, mech_props, NULL, 1, NULL, 1, &cctx); 114 plaintext = (unsigned char *) talloc_strndup(tmp_ctx, password, plen); 122 cryptotext = talloc_array(tmp_ctx, unsigned char, ct_maxsize); 166 obfbuf = talloc_array(tmp_ctx, unsigned char, obufsize); 191 talloc_free(tmp_ctx); 201 TALLOC_CTX *tmp_ctx = NULL; local 220 tmp_ctx [all...] |
/sssd/src/providers/ipa/ |
H A D | ipa_hbac_common.c | 37 TALLOC_CTX *tmp_ctx; local 39 tmp_ctx = talloc_new(NULL); 40 if (tmp_ctx == NULL) { 46 base_dn = sysdb_custom_subtree_dn(tmp_ctx, domain, subdir); 70 object_name = talloc_strndup(tmp_ctx, (const char *)el->values[0].data, 89 talloc_free(tmp_ctx); 215 TALLOC_CTX *tmp_ctx = NULL; local 219 tmp_ctx = talloc_new(mem_ctx); 220 if (tmp_ctx == NULL) return ENOMEM; 223 new_rules = talloc_array(tmp_ctx, struc 373 TALLOC_CTX *tmp_ctx = talloc_new(NULL); local 425 TALLOC_CTX *tmp_ctx; local 512 TALLOC_CTX *tmp_ctx; local 612 TALLOC_CTX *tmp_ctx; local 714 TALLOC_CTX *tmp_ctx; local [all...] |
/sssd/src/providers/ldap/ |
H A D | sdap_domain.c | 53 TALLOC_CTX *tmp_ctx = NULL; local 57 tmp_ctx = talloc_new(NULL); 58 if (tmp_ctx == NULL) { 63 if (sss_ldap_dn_in_search_bases_len(tmp_ctx, dn, sditer->search_bases, 65 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn, 67 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn, 69 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn, 71 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn, 73 || sss_ldap_dn_in_search_bases_len(tmp_ctx, dn, 75 || sss_ldap_dn_in_search_bases_len(tmp_ctx, d [all...] |
H A D | ldap_common.c | 77 TALLOC_CTX *tmp_ctx = NULL; local 85 tmp_ctx = talloc_new(NULL); 86 if (tmp_ctx == NULL) { 93 talloc_free(tmp_ctx); 104 talloc_free(tmp_ctx); 108 sockaddr = resolv_get_sockaddr_address(tmp_ctx, srvaddr, 112 talloc_free(tmp_ctx); 125 talloc_free(tmp_ctx); 138 talloc_free(tmp_ctx); 149 talloc_free(tmp_ctx); 200 TALLOC_CTX *tmp_ctx = NULL; local 276 TALLOC_CTX *tmp_ctx; local 415 TALLOC_CTX *tmp_ctx; local 488 TALLOC_CTX *tmp_ctx; local 613 TALLOC_CTX *tmp_ctx; local 757 TALLOC_CTX *tmp_ctx; local [all...] |
/sssd/src/tools/sssctl/ |
H A D | sssctl_domains.c | 80 TALLOC_CTX *tmp_ctx; local 86 tmp_ctx = talloc_new(NULL); 87 if (tmp_ctx == NULL) { 92 error = sssctl_sifp_send(tmp_ctx, sifp, &reply, domain_path, 111 talloc_free(tmp_ctx); 134 TALLOC_CTX *tmp_ctx; local 143 tmp_ctx = talloc_new(NULL); 144 if (tmp_ctx == NULL) { 149 error = sssctl_sifp_send(tmp_ctx, sifp, &reply, domain_path, 166 error = sssctl_sifp_send(tmp_ctx, sif 196 TALLOC_CTX *tmp_ctx; local [all...] |
/sssd/src/util/crypto/libcrypto/ |
H A D | crypto_obfuscate.c | 75 TALLOC_CTX *tmp_ctx = NULL; local 88 tmp_ctx = talloc_new(NULL); 89 if (!tmp_ctx) { 105 keybuf = talloc_array(tmp_ctx, unsigned char, mech_props->keylen); 111 ivbuf = talloc_array(tmp_ctx, unsigned char, mech_props->bsize); 122 cryptotext = talloc_array(tmp_ctx, unsigned char, ct_maxsize); 165 obfbuf = talloc_array(tmp_ctx, unsigned char, obufsize); 191 talloc_free(tmp_ctx); 201 TALLOC_CTX *tmp_ctx = NULL; local 219 tmp_ctx [all...] |