Lines Matching refs:tmp_ctx

77     TALLOC_CTX *tmp_ctx = NULL;
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;
189 tmp_ctx = talloc_new(NULL);
190 NULL_CHECK(tmp_ctx, ret, done);
200 rules = talloc_realloc(tmp_ctx, rules, struct sysdb_attrs *,
214 talloc_free(tmp_ctx);
225 TALLOC_CTX *tmp_ctx;
231 tmp_ctx = talloc_new(NULL);
232 if (tmp_ctx == NULL) {
236 filter = talloc_asprintf(tmp_ctx, "(%s=ALL)", attr);
242 ret = sss_filter_sanitize(tmp_ctx, username, &sanitized_name);
263 ret = sss_filter_sanitize(tmp_ctx, groupnames[i], &sanitized_name);
280 talloc_free(tmp_ctx);
376 TALLOC_CTX *tmp_ctx;
394 tmp_ctx = talloc_new(NULL);
395 NULL_CHECK(tmp_ctx, ret, done);
397 ret = sysdb_search_user_by_name(tmp_ctx, domain, username, attrs, &msg);
421 sysdb_groupnames = talloc_array(tmp_ctx, char *, num_groups + 1);
442 ret = sysdb_search_group_by_gid(tmp_ctx, domain, gid, group_attrs,
453 sysdb_groupnames = talloc_realloc(tmp_ctx, sysdb_groupnames,
479 talloc_free(tmp_ctx);
487 TALLOC_CTX *tmp_ctx;
494 tmp_ctx = talloc_new(NULL);
495 if (!tmp_ctx) {
500 dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb,
508 lret = ldb_search(domain->sysdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE,
515 msg = ldb_msg_new(tmp_ctx);
561 talloc_free(tmp_ctx);
569 TALLOC_CTX *tmp_ctx;
576 tmp_ctx = talloc_new(NULL);
577 if (tmp_ctx == NULL) {
581 dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb, SYSDB_TMPL_CUSTOM_SUBTREE,
588 lret = ldb_search(domain->sysdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE,
616 talloc_free(tmp_ctx);
659 TALLOC_CTX *tmp_ctx = NULL;
662 tmp_ctx = talloc_new(NULL);
663 NULL_CHECK(tmp_ctx, ret, done);
665 base_dn = sysdb_custom_subtree_dn(tmp_ctx, domain, SUDORULE_SUBDIR);
678 talloc_free(tmp_ctx);
726 TALLOC_CTX *tmp_ctx;
740 tmp_ctx = talloc_new(NULL);
741 if (tmp_ctx == NULL) {
746 ret = sysdb_search_custom(tmp_ctx, domain, filter,
758 ret = sysdb_msg2attrs(tmp_ctx, count, msgs, &rules);
768 talloc_free(tmp_ctx);
858 TALLOC_CTX *tmp_ctx;
867 tmp_ctx = talloc_new(NULL);
868 if (tmp_ctx == NULL) {
872 ret = sysdb_attrs_get_string_array(rule, SYSDB_SUDO_CACHE_AT_USER, tmp_ctx,
887 lowered = sss_tc_utf8_str_tolower(tmp_ctx, users[i]);
911 talloc_zfree(tmp_ctx);
1020 TALLOC_CTX *tmp_ctx;
1027 tmp_ctx = talloc_new(NULL);
1028 NULL_CHECK(tmp_ctx, ret, done);
1030 dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb, SYSDB_TMPL_CUSTOM_SUBTREE,
1039 filter = talloc_asprintf(tmp_ctx, "(%s)", SUDO_ALL_FILTER);
1041 filter = talloc_asprintf(tmp_ctx, "(&%s%s)",
1053 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, dn,
1073 talloc_zfree(tmp_ctx);
1093 TALLOC_CTX *tmp_ctx;
1095 tmp_ctx = talloc_new(NULL);
1096 if (tmp_ctx == NULL) {
1100 dn = sysdb_sudo_rule_dn(tmp_ctx, domain, name);
1106 talloc_free(tmp_ctx);