Lines Matching refs:tmp_ctx
37 TALLOC_CTX *tmp_ctx;
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;
219 tmp_ctx = talloc_new(mem_ctx);
220 if (tmp_ctx == NULL) return ENOMEM;
223 new_rules = talloc_array(tmp_ctx, struct hbac_rule *,
243 ret = hbac_ctx_to_eval_request(tmp_ctx, hbac_ctx, &new_request);
254 talloc_free(tmp_ctx);
373 TALLOC_CTX *tmp_ctx = talloc_new(NULL);
374 if (tmp_ctx == NULL) return ENOMEM;
377 tmp_ctx, &categories);
396 talloc_free(tmp_ctx);
425 TALLOC_CTX *tmp_ctx;
432 tmp_ctx = talloc_new(mem_ctx);
433 if (tmp_ctx == NULL) return ENOMEM;
435 eval_req = talloc_zero(tmp_ctx, struct hbac_eval_req);
499 talloc_free(tmp_ctx);
512 TALLOC_CTX *tmp_ctx;
520 tmp_ctx = talloc_new(mem_ctx);
521 if (tmp_ctx == NULL) return ENOMEM;
523 users = talloc_zero(tmp_ctx, struct hbac_request_element);
529 ret = sss_parse_internal_fqname(tmp_ctx, username, &shortname, NULL);
540 ret = sysdb_search_user_by_name(tmp_ctx, domain, username,
600 talloc_free(tmp_ctx);
612 TALLOC_CTX *tmp_ctx;
620 tmp_ctx = talloc_new(mem_ctx);
621 if (tmp_ctx == NULL) return ENOMEM;
623 svc = talloc_zero(tmp_ctx, struct hbac_request_element);
631 svc_dn = sysdb_custom_dn(tmp_ctx, domain, svc->name, HBAC_SERVICES_SUBDIR);
638 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, svc_dn,
675 ret = get_ipa_servicegroupname(tmp_ctx, domain->sysdb,
702 talloc_free(tmp_ctx);
714 TALLOC_CTX *tmp_ctx;
722 tmp_ctx = talloc_new(mem_ctx);
723 if (tmp_ctx == NULL) return ENOMEM;
725 host = talloc_zero(tmp_ctx, struct hbac_request_element);
741 host_dn = sysdb_custom_dn(tmp_ctx, domain, host->name, HBAC_HOSTS_SUBDIR);
748 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, host_dn,
785 ret = get_ipa_hostgroupname(tmp_ctx, domain->sysdb,
812 talloc_free(tmp_ctx);