| /sssd-io/src/db/ |
| H A D | sysdb_domain_resolution_order.c | 33 TALLOC_CTX *tmp_ctx; local 38 tmp_ctx = talloc_new(NULL); 39 if (tmp_ctx == NULL) { 43 ret = ldb_search(sysdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE, attrs, 72 talloc_free(tmp_ctx); 82 TALLOC_CTX *tmp_ctx; local 87 tmp_ctx = talloc_new(NULL); 88 if (tmp_ctx == NULL) { 93 tmp_ctx, sysdb, dn, attrs, &domain_resolution_order); 112 talloc_free(tmp_ctx); 121 TALLOC_CTX *tmp_ctx; local [all...] |
| 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, 133 talloc_zfree(tmp_ctx); 188 TALLOC_CTX *tmp_ctx; local 196 tmp_ctx = talloc_new(NULL); 197 if (!tmp_ctx) { 201 base_dn = sysdb_user_base_dn(tmp_ctx, domain); 207 ret = sss_filter_sanitize_for_dom(tmp_ctx, nam 260 TALLOC_CTX *tmp_ctx; local 325 TALLOC_CTX *tmp_ctx; local 373 TALLOC_CTX *tmp_ctx; local 439 TALLOC_CTX *tmp_ctx = NULL; local 479 TALLOC_CTX *tmp_ctx; local 510 TALLOC_CTX *tmp_ctx = NULL; local 551 TALLOC_CTX *tmp_ctx = NULL; local 605 TALLOC_CTX *tmp_ctx; local 706 TALLOC_CTX *tmp_ctx; local 799 TALLOC_CTX *tmp_ctx; local 891 TALLOC_CTX *tmp_ctx; local 954 TALLOC_CTX *tmp_ctx; local 1046 TALLOC_CTX *tmp_ctx; local 1102 TALLOC_CTX *tmp_ctx; local 1220 TALLOC_CTX *tmp_ctx; local 1278 TALLOC_CTX *tmp_ctx; local 1378 TALLOC_CTX *tmp_ctx; local 1442 TALLOC_CTX *tmp_ctx; local 1557 TALLOC_CTX *tmp_ctx; local 1618 TALLOC_CTX *tmp_ctx; local 1703 TALLOC_CTX *tmp_ctx; local 1841 TALLOC_CTX *tmp_ctx; local 1953 TALLOC_CTX *tmp_ctx; local 2010 TALLOC_CTX *tmp_ctx; local 2069 TALLOC_CTX *tmp_ctx = NULL; local 2170 TALLOC_CTX *tmp_ctx; local 2242 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 | 208 TALLOC_CTX *tmp_ctx; local 210 tmp_ctx = talloc_new(NULL); 211 if (!tmp_ctx) { 221 ret = sysdb_search_entry(tmp_ctx, sysdb, dn, 257 talloc_free(tmp_ctx); 273 TALLOC_CTX *tmp_ctx; local 277 tmp_ctx = talloc_new(NULL); 278 if (tmp_ctx == NULL) { 283 ret = ldb_search(ldb, tmp_ctx, &res, 300 talloc_zfree(tmp_ctx); 359 TALLOC_CTX *tmp_ctx; local 420 TALLOC_CTX *tmp_ctx; local 473 TALLOC_CTX *tmp_ctx; local 572 TALLOC_CTX *tmp_ctx; local 642 TALLOC_CTX *tmp_ctx; local 717 TALLOC_CTX *tmp_ctx; local 762 TALLOC_CTX *tmp_ctx; local 833 TALLOC_CTX *tmp_ctx; local 882 TALLOC_CTX *tmp_ctx; local 942 TALLOC_CTX *tmp_ctx; local 1023 TALLOC_CTX *tmp_ctx; local 1163 TALLOC_CTX *tmp_ctx; local 1191 TALLOC_CTX *tmp_ctx; local 1262 TALLOC_CTX *tmp_ctx; local 1376 TALLOC_CTX *tmp_ctx; local 1419 TALLOC_CTX *tmp_ctx; local 1452 TALLOC_CTX *tmp_ctx; local 1487 TALLOC_CTX *tmp_ctx; local 1512 TALLOC_CTX *tmp_ctx; local 1695 TALLOC_CTX *tmp_ctx; local 1770 TALLOC_CTX *tmp_ctx; local 1859 TALLOC_CTX *tmp_ctx; local 1964 TALLOC_CTX *tmp_ctx; local 2148 TALLOC_CTX *tmp_ctx; local 2200 TALLOC_CTX *tmp_ctx; local 2377 TALLOC_CTX *tmp_ctx; local 2576 TALLOC_CTX *tmp_ctx; local 2684 TALLOC_CTX *tmp_ctx; local 2907 TALLOC_CTX *tmp_ctx; local 3097 TALLOC_CTX *tmp_ctx = talloc_new(NULL); local 3184 TALLOC_CTX *tmp_ctx; local 3266 TALLOC_CTX *tmp_ctx; local 3309 TALLOC_CTX *tmp_ctx; local 3380 TALLOC_CTX *tmp_ctx; local 3430 TALLOC_CTX *tmp_ctx; local 3506 TALLOC_CTX *tmp_ctx; local 3557 TALLOC_CTX *tmp_ctx; local 3651 TALLOC_CTX *tmp_ctx; local 3725 TALLOC_CTX *tmp_ctx; local 3816 TALLOC_CTX *tmp_ctx; local 3931 TALLOC_CTX *tmp_ctx; local 4005 TALLOC_CTX *tmp_ctx; local 4096 TALLOC_CTX *tmp_ctx; local 4157 TALLOC_CTX *tmp_ctx; local 4209 TALLOC_CTX *tmp_ctx; local 4250 TALLOC_CTX *tmp_ctx; local 4308 TALLOC_CTX *tmp_ctx; local 4385 TALLOC_CTX *tmp_ctx; local 4452 TALLOC_CTX *tmp_ctx; local 4666 TALLOC_CTX *tmp_ctx = talloc_new(NULL); local 4850 TALLOC_CTX *tmp_ctx; local 4974 TALLOC_CTX *tmp_ctx; local 5180 TALLOC_CTX *tmp_ctx; local 5259 TALLOC_CTX *tmp_ctx; local 5391 TALLOC_CTX *tmp_ctx; local 5459 TALLOC_CTX *tmp_ctx; local 5488 TALLOC_CTX *tmp_ctx; 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 378 TALLOC_CTX *tmp_ctx; local 516 TALLOC_CTX *tmp_ctx; local 598 TALLOC_CTX *tmp_ctx; local 688 TALLOC_CTX *tmp_ctx = NULL; local 755 TALLOC_CTX *tmp_ctx; local 887 TALLOC_CTX *tmp_ctx; local 1038 TALLOC_CTX *tmp_ctx; local 1111 TALLOC_CTX *tmp_ctx; local [all...] |
| /sssd-io/src/responder/ssh/ |
| H A D | ssh_known_hosts.c | 36 TALLOC_CTX *tmp_ctx; local 42 tmp_ctx = talloc_new(NULL); 43 if (!tmp_ctx) { 47 name = talloc_strdup(tmp_ctx, ent->name); 59 result = talloc_strdup(tmp_ctx, ""); 65 ret = sss_ssh_format_pubkey(tmp_ctx, &ent->pubkeys[i], &pubkey); 82 talloc_free(tmp_ctx); 91 TALLOC_CTX *tmp_ctx; local 97 tmp_ctx = talloc_new(NULL); 98 if (!tmp_ctx) { 171 TALLOC_CTX *tmp_ctx; local 261 TALLOC_CTX *tmp_ctx; local [all...] |
| /sssd-io/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-io/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-io/src/tools/sssctl/ |
| H A D | sssctl_access_report.c | 39 TALLOC_CTX *tmp_ctx; local 44 tmp_ctx = talloc_new(NULL); 45 if (tmp_ctx == NULL) { 49 dn = ldb_dn_new(tmp_ctx, sysdb_ctx_get_ldb(dom->sysdb), dn_attr); 62 rdn_str = talloc_strndup(tmp_ctx, 73 talloc_zfree(tmp_ctx); 84 TALLOC_CTX *tmp_ctx; local 89 tmp_ctx = talloc_new(NULL); 90 if (tmp_ctx == NULL) { 94 dn = ldb_dn_new(tmp_ctx, sysdb_ctx_get_ld 148 TALLOC_CTX *tmp_ctx = NULL; local 272 TALLOC_CTX *tmp_ctx; local 323 TALLOC_CTX *tmp_ctx = NULL; local [all...] |
| /sssd-io/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-io/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-io/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-io/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 | util_ext.c | 43 TALLOC_CTX *tmp_ctx = NULL; local 49 tmp_ctx = talloc_new(NULL); 50 if (tmp_ctx == NULL) { 87 list = talloc_realloc(tmp_ctx, list, char*, num_strings + 2); 106 list = talloc(tmp_ctx, char *); 121 talloc_free(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-io/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); 200 TALLOC_CTX *tmp_ctx = NULL; local 219 tmp_ctx [all...] |
| /sssd-io/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...] |
| /sssd-io/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...] |
| /sssd-io/src/tests/ |
| H A D | common_dom.c | 37 TALLOC_CTX *tmp_ctx = NULL; local 42 tmp_ctx = talloc_new(NULL); 43 if (tmp_ctx == NULL) { 48 cdb_path = talloc_asprintf(tmp_ctx, "%s/%s", tests_path, cdb_file); 56 ret = confdb_init(tmp_ctx, &cdb, cdb_path); 66 talloc_free(tmp_ctx); 79 TALLOC_CTX *tmp_ctx = NULL; local 88 tmp_ctx = talloc_new(NULL); 89 if (tmp_ctx == NULL) { 95 ret = confdb_get_string(cdb, tmp_ctx, "confi 312 TALLOC_CTX *tmp_ctx = NULL; local [all...] |
| /sssd-io/src/confdb/ |
| H A D | confdb.c | 64 TALLOC_CTX *tmp_ctx; local 73 tmp_ctx = talloc_new(mem_ctx); 74 if (!tmp_ctx) return ENOMEM; 80 dn = talloc_asprintf(tmp_ctx, "cn=%s", s); 105 talloc_free(tmp_ctx); 115 TALLOC_CTX *tmp_ctx = NULL; local 123 tmp_ctx = talloc_new(NULL); 124 if (!tmp_ctx) { 129 ret = parse_section(tmp_ctx, section, &secdn, &rdn_name); 134 dn = ldb_dn_new(tmp_ctx, cd 229 TALLOC_CTX *tmp_ctx; local 305 TALLOC_CTX *tmp_ctx; local 429 TALLOC_CTX *tmp_ctx; local 485 TALLOC_CTX *tmp_ctx; local 536 TALLOC_CTX *tmp_ctx; local 822 TALLOC_CTX *tmp_ctx; local 867 TALLOC_CTX *tmp_ctx; local 1476 TALLOC_CTX *tmp_ctx; local 1569 TALLOC_CTX *tmp_ctx = NULL; local 1635 TALLOC_CTX *tmp_ctx = NULL; local 1721 need_implicit_files_domain(TALLOC_CTX *tmp_ctx, struct confdb_ctx *cdb, struct ldb_result *doms) argument 1798 TALLOC_CTX *tmp_ctx = NULL; local 1836 TALLOC_CTX *tmp_ctx = NULL; local 1871 TALLOC_CTX *tmp_ctx; local 2021 TALLOC_CTX *tmp_ctx = NULL; local 2143 TALLOC_CTX *tmp_ctx; local [all...] |