Searched defs:tmp_ctx (Results 1 - 25 of 186) sorted by relevance

12345678

/sssd-io/src/db/
H A Dsysdb_domain_resolution_order.c33 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 Dsysdb_certmap.c79 TALLOC_CTX *tmp_ctx; local
82 tmp_ctx = talloc_new(NULL);
83 if (tmp_ctx == NULL) {
88 msg = ldb_msg_new(tmp_ctx);
95 msg->dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
135 el = talloc_zero(tmp_ctx, struct ldb_message_element);
195 talloc_zfree(tmp_ctx);
273 TALLOC_CTX *tmp_ctx = NULL; local
289 tmp_ctx = talloc_new(NULL);
290 if (tmp_ctx
[all...]
H A Dsysdb_idmap.c58 TALLOC_CTX *tmp_ctx; local
67 tmp_ctx = talloc_new(NULL);
68 if (!tmp_ctx) return ENOMEM;
70 dn = sysdb_idmap_dn(tmp_ctx, domain, dom_sid);
76 update_msg = ldb_msg_new(tmp_ctx);
93 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, dn, LDB_SCOPE_BASE,
273 talloc_free(tmp_ctx);
284 TALLOC_CTX *tmp_ctx; local
288 tmp_ctx = talloc_new(NULL);
289 if (!tmp_ctx) retur
[all...]
/sssd-io/src/providers/ad/
H A Dad_pac_common.c37 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/providers/ldap/
H A Dsdap_range.c36 TALLOC_CTX *tmp_ctx; local
44 tmp_ctx = talloc_new(NULL);
45 if (!tmp_ctx) return ENOMEM;
63 base = talloc_strndup(tmp_ctx, attr_desc,
140 talloc_free(tmp_ctx);
H A Dsdap_domain.c53 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 Dsdap_reinit.c126 TALLOC_CTX *tmp_ctx = NULL; local
134 tmp_ctx = talloc_new(NULL);
135 if (tmp_ctx == NULL) {
147 ret = sysdb_search_users(tmp_ctx, domain,
157 ret = sysdb_search_groups(tmp_ctx, domain, "", attrs, &msgs_num, &msgs);
166 ret = sysdb_search_services(tmp_ctx, domain, "", attrs, &msgs_num, &msgs);
192 talloc_free(tmp_ctx);
256 TALLOC_CTX *tmp_ctx = NULL; local
265 tmp_ctx = talloc_new(NULL);
266 if (tmp_ctx
[all...]
/sssd-io/src/tests/cmocka/
H A Dtest_find_uid.c67 TALLOC_CTX *tmp_ctx; local
72 tmp_ctx = talloc_new(NULL);
73 assert_true(tmp_ctx != NULL);
75 ret = get_uid_table(tmp_ctx, &table);
93 talloc_free(tmp_ctx);
/sssd-io/src/tests/
H A Dfind_uid-tests.c69 TALLOC_CTX *tmp_ctx; local
74 tmp_ctx = talloc_new(NULL);
75 fail_unless(tmp_ctx != NULL, "talloc_new failed.");
77 ret = get_uid_table(tmp_ctx, &table);
97 talloc_free(tmp_ctx);
/sssd-io/src/tools/sssctl/
H A Dsssctl_config.c48 TALLOC_CTX *tmp_ctx = NULL; local
56 tmp_ctx = talloc_new(NULL);
57 init_data = sss_ini_initdata_init(tmp_ctx);
96 ret = sss_ini_call_validators_strs(tmp_ctx, init_data,
/sssd-io/src/util/
H A Dbackup_file.c31 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 Dsss_nss.c35 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,
98 username = sss_output_name(tmp_ctx, homedir_ctx->username,
137 username = sss_output_name(tmp_ctx, homedir_ctx->username,
219 talloc_zfree(tmp_ctx);
H A Dsss_ssh.c33 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/providers/proxy/
H A Dproxy_netgroup.c139 TALLOC_CTX *tmp_ctx = NULL; local
151 tmp_ctx = talloc_new(NULL);
152 if (tmp_ctx == NULL) {
158 attrs = sysdb_new_attrs(tmp_ctx);
204 talloc_free(tmp_ctx);
/sssd-io/src/responder/common/cache_req/plugins/
H A Dcache_req_group_by_filter.c34 TALLOC_CTX *tmp_ctx; local
43 tmp_ctx = talloc_new(NULL);
44 if (tmp_ctx == NULL) {
48 name = sss_get_cased_name(tmp_ctx, cr->data->name.name,
55 name = sss_reverse_replace_space(tmp_ctx, name, cr->rctx->override_space);
67 talloc_free(tmp_ctx);
H A Dcache_req_user_by_filter.c34 TALLOC_CTX *tmp_ctx; local
43 tmp_ctx = talloc_new(NULL);
44 if (tmp_ctx == NULL) {
48 name = sss_get_cased_name(tmp_ctx, cr->data->name.name,
55 name = sss_reverse_replace_space(tmp_ctx, name, cr->rctx->override_space);
67 talloc_free(tmp_ctx);
H A Dcache_req_netgroup_by_name.c34 TALLOC_CTX *tmp_ctx; local
43 tmp_ctx = talloc_new(NULL);
44 if (tmp_ctx == NULL) {
48 name = sss_get_cased_name(tmp_ctx, cr->data->name.name,
61 talloc_free(tmp_ctx);
H A Dcache_req_object_by_name.c78 TALLOC_CTX *tmp_ctx; local
87 tmp_ctx = talloc_new(NULL);
88 if (tmp_ctx == NULL) {
92 name = sss_get_cased_name(tmp_ctx, cr->data->name.name,
99 name = sss_reverse_replace_space(tmp_ctx, name, cr->rctx->override_space);
105 name = sss_create_internal_fqname(tmp_ctx, name, domain->name);
117 talloc_free(tmp_ctx);
H A Dcache_req_svc_by_name.c35 TALLOC_CTX *tmp_ctx; local
45 tmp_ctx = talloc_new(NULL);
46 if (tmp_ctx == NULL) {
50 name = sss_get_cased_name(tmp_ctx, data->svc.name->name,
60 protocol = sss_get_cased_name(tmp_ctx, data->svc.protocol.name,
76 talloc_free(tmp_ctx);
/sssd-io/src/tests/cwrap/
H A Dtest_become_user.c77 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/tools/
H A Dsssd_check_socket_activated_responders.c42 TALLOC_CTX *tmp_ctx; local
44 tmp_ctx = talloc_new(NULL);
45 if (tmp_ctx == NULL) {
142 talloc_free(tmp_ctx);
/sssd-io/src/util/crypto/libcrypto/
H A Dcrypto_base64.c78 TALLOC_CTX *tmp_ctx = NULL; local
80 tmp_ctx = talloc_new(NULL);
81 if (!tmp_ctx) {
85 in_dup = talloc_size(tmp_ctx, inlen+1);
131 talloc_free(tmp_ctx);
/sssd-io/src/providers/files/
H A Dfiles_init.c34 TALLOC_CTX *tmp_ctx = NULL; local
48 tmp_ctx = talloc_new(NULL);
49 if (tmp_ctx == NULL) {
78 ret = confdb_get_string(be_ctx->cdb, tmp_ctx, be_ctx->conf_path,
86 ret = confdb_get_string(be_ctx->cdb, tmp_ctx, be_ctx->conf_path,
94 ret = split_on_separator(tmp_ctx, conf_passwd_files, ',', true, true,
102 passwd_files = talloc_zero_array(tmp_ctx, const char *,
122 ret = split_on_separator(tmp_ctx, conf_group_files, ',', true, true,
130 group_files = talloc_zero_array(tmp_ctx, const char *,
154 talloc_free(tmp_ctx);
[all...]
/sssd-io/src/responder/common/cache_req/
H A Dcache_req_sr_overlay.c124 TALLOC_CTX *tmp_ctx = NULL; local
137 tmp_ctx = talloc_new(NULL);
138 if (tmp_ctx == NULL) {
159 ret = sss_output_fqname(tmp_ctx, result->domain, name,
184 enabled_str = talloc_strdup(tmp_ctx, enabled ? "TRUE" : "FALSE");
203 talloc_free_children(tmp_ctx);
210 talloc_zfree(tmp_ctx);
234 TALLOC_CTX *tmp_ctx = NULL; local
247 tmp_ctx = talloc_new(NULL);
248 if (tmp_ctx
[all...]
/sssd-io/src/responder/ifp/
H A Difp_iface_nodes.c42 TALLOC_CTX *tmp_ctx; local
51 tmp_ctx = talloc_new(NULL);
52 if (tmp_ctx == NULL) {
63 ret = ifp_cache_list_domains(tmp_ctx, ifp_ctx->rctx->domains,
71 nodes = talloc_zero_array(tmp_ctx, const char *, num_paths + 1);
87 talloc_free(tmp_ctx);
92 talloc_free(tmp_ctx);

Completed in 56 milliseconds

12345678