Lines Matching refs:tmp_ctx

45     TALLOC_CTX *tmp_ctx;
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;
111 tmp_ctx = talloc_new(NULL);
112 if (!tmp_ctx) {
117 attrs = sysdb_new_attrs(tmp_ctx);
171 talloc_free(tmp_ctx);
190 TALLOC_CTX *tmp_ctx;
202 tmp_ctx = talloc_new(NULL);
203 if (!tmp_ctx) return ENOMEM;
205 ret = sss_filter_sanitize(tmp_ctx, map_name, &safe_map_name);
213 filter = talloc_asprintf(tmp_ctx, "(&(objectclass=%s)(%s=%s))",
220 ret = sysdb_search_custom(tmp_ctx, domain, filter,
242 talloc_free(tmp_ctx);
254 TALLOC_CTX *tmp_ctx;
262 tmp_ctx = talloc_new(NULL);
263 if (!tmp_ctx) {
268 attrs = sysdb_new_attrs(tmp_ctx);
297 name = talloc_asprintf(tmp_ctx, "%s%s", key, value);
310 dn = sysdb_autofsentry_dn(tmp_ctx, domain, map, key, value);
316 msg = ldb_msg_new(tmp_ctx);
329 talloc_free(tmp_ctx);
358 TALLOC_CTX *tmp_ctx;
369 tmp_ctx = talloc_new(NULL);
370 if (!tmp_ctx) {
374 mapdn = sysdb_autofsmap_dn(tmp_ctx, domain, mapname);
380 filter = talloc_asprintf(tmp_ctx, "(objectclass=%s)",
387 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, mapdn, LDB_SCOPE_ONELEVEL,
405 talloc_free(tmp_ctx);
417 TALLOC_CTX *tmp_ctx;
419 tmp_ctx = talloc_new(NULL);
420 if (!tmp_ctx) {
424 dn = sysdb_autofsmap_dn(tmp_ctx, domain, name);
433 talloc_free(tmp_ctx);
441 TALLOC_CTX *tmp_ctx;
455 tmp_ctx = talloc_new(NULL);
456 if (!tmp_ctx) return ENOMEM;
458 filter = talloc_asprintf(tmp_ctx, "(&(objectclass=%s)(%s=*))",
465 ret = sysdb_search_custom(tmp_ctx, domain, filter,
477 sys_attrs = sysdb_new_attrs(tmp_ctx);
525 talloc_free(tmp_ctx);