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);
378 TALLOC_CTX *tmp_ctx;
392 tmp_ctx = talloc_new(NULL);
393 NULL_CHECK(tmp_ctx, ret, done);
400 ret = sysdb_initgroups_with_views(tmp_ctx, domain, username, &res);
439 sysdb_groupnames = talloc_zero_array(tmp_ctx, char *, res->count);
467 ret = sysdb_search_group_by_gid(tmp_ctx, domain, gid, group_attrs,
478 sysdb_groupnames = talloc_realloc(tmp_ctx, sysdb_groupnames,
508 talloc_free(tmp_ctx);
516 TALLOC_CTX *tmp_ctx;
523 tmp_ctx = talloc_new(NULL);
524 if (!tmp_ctx) {
529 dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb,
537 lret = ldb_search(domain->sysdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE,
544 msg = ldb_msg_new(tmp_ctx);
590 talloc_free(tmp_ctx);
598 TALLOC_CTX *tmp_ctx;
605 tmp_ctx = talloc_new(NULL);
606 if (tmp_ctx == NULL) {
610 dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb, SYSDB_TMPL_CUSTOM_SUBTREE,
617 lret = ldb_search(domain->sysdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE,
645 talloc_free(tmp_ctx);
688 TALLOC_CTX *tmp_ctx = NULL;
691 tmp_ctx = talloc_new(NULL);
692 NULL_CHECK(tmp_ctx, ret, done);
694 base_dn = sysdb_custom_subtree_dn(tmp_ctx, domain, SUDORULE_SUBDIR);
707 talloc_free(tmp_ctx);
755 TALLOC_CTX *tmp_ctx;
769 tmp_ctx = talloc_new(NULL);
770 if (tmp_ctx == NULL) {
775 ret = sysdb_search_custom(tmp_ctx, domain, filter,
787 ret = sysdb_msg2attrs(tmp_ctx, count, msgs, &rules);
797 talloc_free(tmp_ctx);
887 TALLOC_CTX *tmp_ctx;
895 tmp_ctx = talloc_new(NULL);
896 if (tmp_ctx == NULL) {
900 ret = sysdb_attrs_get_string_array(rule, SYSDB_SUDO_CACHE_AT_USER, tmp_ctx,
929 talloc_zfree(tmp_ctx);
1038 TALLOC_CTX *tmp_ctx;
1045 tmp_ctx = talloc_new(NULL);
1046 NULL_CHECK(tmp_ctx, ret, done);
1048 dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb, SYSDB_TMPL_CUSTOM_SUBTREE,
1057 filter = talloc_asprintf(tmp_ctx, "(%s)", SUDO_ALL_FILTER);
1059 filter = talloc_asprintf(tmp_ctx, "(&%s%s)",
1071 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, dn,
1091 talloc_zfree(tmp_ctx);
1111 TALLOC_CTX *tmp_ctx;
1113 tmp_ctx = talloc_new(NULL);
1114 if (tmp_ctx == NULL) {
1118 dn = sysdb_sudo_rule_dn(tmp_ctx, domain, name);
1124 talloc_free(tmp_ctx);