Lines Matching refs:tmp_ctx
64 TALLOC_CTX *tmp_ctx;
73 tmp_ctx = talloc_new(mem_ctx);
74 if (!tmp_ctx) return ENOMEM;
80 dn = talloc_asprintf(tmp_ctx, "cn=%s", s);
105 talloc_free(tmp_ctx);
115 TALLOC_CTX *tmp_ctx = NULL;
123 tmp_ctx = talloc_new(NULL);
124 if (!tmp_ctx) {
129 ret = parse_section(tmp_ctx, section, &secdn, &rdn_name);
134 dn = ldb_dn_new(tmp_ctx, cdb->ldb, secdn);
137 ret = ldb_search(cdb->ldb, tmp_ctx, &res,
144 msg = ldb_msg_new(tmp_ctx);
214 talloc_free(tmp_ctx);
229 TALLOC_CTX *tmp_ctx;
238 tmp_ctx = talloc_new(mem_ctx);
239 if (!tmp_ctx)
242 ret = parse_section(tmp_ctx, section, &secdn, NULL);
247 dn = ldb_dn_new(tmp_ctx, cdb->ldb, secdn);
253 ret = ldb_search(cdb->ldb, tmp_ctx, &res,
291 talloc_free(tmp_ctx);
305 TALLOC_CTX *tmp_ctx;
311 tmp_ctx = talloc_new(NULL);
312 if (!tmp_ctx) {
316 ret = parse_section(tmp_ctx, section, &secdn, NULL);
321 dn = ldb_dn_new(tmp_ctx, cdb->ldb, secdn);
327 msg = ldb_msg_new(tmp_ctx);
363 talloc_free(tmp_ctx);
429 TALLOC_CTX *tmp_ctx;
431 tmp_ctx = talloc_new(NULL);
432 if (tmp_ctx == NULL) {
437 ret = confdb_get_param(cdb, tmp_ctx, section, attribute, &values);
465 talloc_free(tmp_ctx);
471 talloc_free(tmp_ctx);
485 TALLOC_CTX *tmp_ctx;
487 tmp_ctx = talloc_new(NULL);
488 if (tmp_ctx == NULL) {
493 ret = confdb_get_param(cdb, tmp_ctx, section, attribute, &values);
516 talloc_free(tmp_ctx);
522 talloc_free(tmp_ctx);
536 TALLOC_CTX *tmp_ctx;
538 tmp_ctx = talloc_new(NULL);
539 if (tmp_ctx == NULL) {
544 ret = confdb_get_param(cdb, tmp_ctx, section, attribute, &values);
573 talloc_free(tmp_ctx);
579 talloc_free(tmp_ctx);
822 TALLOC_CTX *tmp_ctx;
827 tmp_ctx = talloc_new(NULL);
828 if (tmp_ctx == NULL) {
832 dn = ldb_dn_new_fmt(tmp_ctx, cdb->ldb, "cn=%s,%s", name, section);
838 ret = ldb_search(cdb->ldb, tmp_ctx, &res, dn,
856 talloc_free(tmp_ctx);
867 TALLOC_CTX *tmp_ctx;
876 tmp_ctx = talloc_new(mem_ctx);
877 if (!tmp_ctx) return ENOMEM;
879 ret = confdb_get_domain_section(tmp_ctx, cdb, CONFDB_DOMAIN_BASEDN,
1027 ret = confdb_get_string(cdb, tmp_ctx, CONFDB_MONITOR_CONF_ENTRY,
1469 talloc_free(tmp_ctx);
1476 TALLOC_CTX *tmp_ctx;
1486 tmp_ctx = talloc_new(NULL);
1487 if (!tmp_ctx) return ENOMEM;
1489 ret = confdb_get_string_as_list(cdb, tmp_ctx,
1539 talloc_free(tmp_ctx);
1569 TALLOC_CTX *tmp_ctx = NULL;
1578 tmp_ctx = talloc_new(NULL);
1579 if (tmp_ctx == NULL) {
1583 dn = ldb_dn_new(tmp_ctx, cdb->ldb, CONFDB_DOMAIN_BASEDN);
1589 ret = ldb_search(cdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_ONELEVEL,
1596 names = talloc_zero_array(tmp_ctx, char*, res->count + 1);
1625 talloc_free(tmp_ctx);
1635 TALLOC_CTX *tmp_ctx = NULL;
1646 tmp_ctx = talloc_new(mem_ctx);
1647 if (tmp_ctx == NULL) {
1651 ret = parse_section(tmp_ctx, section, &secdn, NULL);
1656 base = ldb_dn_new(tmp_ctx, cdb->ldb, secdn);
1664 ret = ldb_search(cdb->ldb, tmp_ctx, &res, base, LDB_SCOPE_SUBTREE,
1671 names = talloc_zero_array(tmp_ctx, char *, res->count + 1);
1717 talloc_free(tmp_ctx);
1721 static bool need_implicit_files_domain(TALLOC_CTX *tmp_ctx,
1731 ret = confdb_get_string_as_list(cdb, tmp_ctx,
1798 TALLOC_CTX *tmp_ctx = NULL;
1807 tmp_ctx = talloc_new(NULL);
1808 if (tmp_ctx == NULL) {
1812 dn = ldb_dn_new(tmp_ctx, cdb->ldb, CONFDB_DOMAIN_BASEDN);
1818 ret = ldb_search(cdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_ONELEVEL,
1825 need_files_dom = need_implicit_files_domain(tmp_ctx, cdb, res);
1829 talloc_free(tmp_ctx);
1836 TALLOC_CTX *tmp_ctx = NULL;
1841 tmp_ctx = talloc_new(NULL);
1842 if (tmp_ctx == NULL) {
1847 cdb_path = talloc_asprintf(tmp_ctx, CONFDB_DOMAIN_PATH_TMPL, name);
1863 talloc_free(tmp_ctx);
1871 TALLOC_CTX *tmp_ctx;
1875 tmp_ctx = talloc_new(NULL);
1876 if (tmp_ctx == NULL) {
1880 ret = confdb_get_string(cdb, tmp_ctx,
1891 domlist[0] = talloc_asprintf(tmp_ctx, "%s,%s", name, monitor_domlist);
1913 talloc_free(tmp_ctx);
2021 TALLOC_CTX *tmp_ctx = NULL;
2023 tmp_ctx = talloc_new(NULL);
2024 if (tmp_ctx == NULL) {
2029 domain_dn = ldb_dn_new_fmt(tmp_ctx,
2041 ret = confdb_get_parent_domain(tmp_ctx, name, cdb,
2051 replace_msg = ldb_msg_copy(tmp_ctx, parent_domain->msgs[0]);
2079 app_msg = ldb_msg_new(tmp_ctx);
2135 talloc_free(tmp_ctx);
2143 TALLOC_CTX *tmp_ctx;
2146 tmp_ctx = talloc_new(NULL);
2147 if (tmp_ctx == NULL) {
2151 ret = confdb_get_string_as_list(cdb, tmp_ctx,
2164 ret = confdb_get_domain_section(tmp_ctx, cdb,
2178 ret = confdb_add_app_domain(tmp_ctx, cdb, domlist[i]);
2197 talloc_free(tmp_ctx);