Lines Matching refs:tmp_ctx
35 TALLOC_CTX *tmp_ctx;
42 tmp_ctx = talloc_new(NULL);
43 if (tmp_ctx == NULL) {
47 view_base_dn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_TMPL_VIEW_BASE);
52 ret = ldb_search(sysdb->ldb, tmp_ctx, &res, view_base_dn, LDB_SCOPE_BASE,
84 talloc_free(tmp_ctx);
101 TALLOC_CTX *tmp_ctx;
107 tmp_ctx = talloc_new(NULL);
108 if (tmp_ctx == NULL) {
112 ret = sysdb_get_view_name_ex(tmp_ctx, sysdb, &tmp_str,
134 msg = ldb_msg_new(tmp_ctx);
141 msg->dn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_TMPL_VIEW_BASE);
178 talloc_free(tmp_ctx);
185 TALLOC_CTX *tmp_ctx;
188 tmp_ctx = talloc_new(NULL);
189 if (tmp_ctx == NULL) {
194 dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_TMPL_VIEW_SEARCH_BASE,
211 talloc_free(tmp_ctx);
220 TALLOC_CTX *tmp_ctx;
227 tmp_ctx = talloc_new(NULL);
228 if (tmp_ctx == NULL) {
233 msg = ldb_msg_new(tmp_ctx);
240 base_dn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_BASE);
275 ret = ldb_search(sysdb->ldb, tmp_ctx, &res, base_dn, LDB_SCOPE_SUBTREE,
298 ret = ldb_search(sysdb->ldb, tmp_ctx, &res, base_dn, LDB_SCOPE_SUBTREE,
339 talloc_free(tmp_ctx);
379 TALLOC_CTX *tmp_ctx;
398 tmp_ctx = talloc_new(NULL);
399 if (tmp_ctx == NULL) {
415 override_dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb,
438 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, obj_dn, LDB_SCOPE_BASE,
503 msg = ldb_msg_new(tmp_ctx);
583 msg = ldb_msg_new(tmp_ctx);
630 talloc_zfree(tmp_ctx);
641 TALLOC_CTX *tmp_ctx;
646 tmp_ctx = talloc_new(NULL);
647 if (tmp_ctx == NULL) {
652 ret = ldb_search(domain->sysdb->ldb, tmp_ctx, &orig_obj, obj_dn,
663 orig_attr_name = talloc_asprintf(tmp_ctx, "%s%s",
703 talloc_free(tmp_ctx);
712 TALLOC_CTX *tmp_ctx;
734 tmp_ctx = talloc_new(NULL);
735 if (tmp_ctx == NULL) {
740 attrs = sysdb_new_attrs(tmp_ctx);
820 talloc_free(tmp_ctx);
844 TALLOC_CTX *tmp_ctx;
852 tmp_ctx = talloc_new(NULL);
853 if (!tmp_ctx) {
857 base_dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb,
865 ret = sss_cert_derb64_to_ldap_filter(tmp_ctx, cert, SYSDB_USER_CERT,
873 ret = ldb_search(domain->sysdb->ldb, tmp_ctx, &override_res, base_dn,
905 base_dn = ldb_dn_new(tmp_ctx, domain->sysdb->ldb, orig_obj_dn);
912 ret = ldb_search(domain->sysdb->ldb, tmp_ctx, &orig_res, base_dn,
927 talloc_zfree(tmp_ctx);
939 TALLOC_CTX *tmp_ctx;
948 tmp_ctx = talloc_new(NULL);
949 if (!tmp_ctx) {
953 base_dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb,
961 ret = sss_filter_sanitize_for_dom(tmp_ctx, name, domain,
968 ret = ldb_search(domain->sysdb->ldb, tmp_ctx, &override_res, base_dn,
1001 base_dn = ldb_dn_new(tmp_ctx, domain->sysdb->ldb, orig_obj_dn);
1008 ret = ldb_search(domain->sysdb->ldb, tmp_ctx, &orig_res, base_dn,
1024 talloc_zfree(tmp_ctx);
1086 TALLOC_CTX *tmp_ctx;
1097 tmp_ctx = talloc_new(NULL);
1098 if (!tmp_ctx) {
1102 base_dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb,
1126 ret = ldb_search(domain->sysdb->ldb, tmp_ctx, &override_res, base_dn,
1158 base_dn = ldb_dn_new(tmp_ctx, domain->sysdb->ldb, orig_obj_dn);
1165 ret = ldb_search(domain->sysdb->ldb, tmp_ctx, &orig_res, base_dn,
1181 talloc_zfree(tmp_ctx);
1229 TALLOC_CTX *tmp_ctx;
1254 tmp_ctx = talloc_new(NULL);
1255 if (tmp_ctx == NULL) {
1278 override_dn = ldb_dn_new(tmp_ctx, domain->sysdb->ldb, override_dn_str);
1303 ret = ldb_search(domain->sysdb->ldb, tmp_ctx, &res, override_dn,
1345 talloc_free(tmp_ctx);
1357 TALLOC_CTX *tmp_ctx;
1368 tmp_ctx = talloc_new(NULL);
1369 if (tmp_ctx == NULL) {
1375 ret = sysdb_get_user_members_recursively(tmp_ctx, domain, obj->dn,
1466 ret = sss_parse_internal_fqname(tmp_ctx, orig_name,
1485 memberuid = sss_create_internal_fqname(tmp_ctx, memberuid,
1523 talloc_free(tmp_ctx);
1533 TALLOC_CTX *tmp_ctx = NULL;
1538 tmp_ctx = talloc_new(NULL);
1539 if (tmp_ctx == NULL) {
1545 override_attr_name = talloc_asprintf(tmp_ctx, "%s%s", OVERRIDE_PREFIX,
1562 talloc_free(tmp_ctx);
1571 TALLOC_CTX *tmp_ctx = NULL;
1576 tmp_ctx = talloc_new(NULL);
1577 if (tmp_ctx == NULL) {
1583 override_attr_name = talloc_asprintf(tmp_ctx, "%s%s", OVERRIDE_PREFIX,
1601 talloc_free(tmp_ctx);
1610 TALLOC_CTX *tmp_ctx = NULL;
1615 tmp_ctx = talloc_new(NULL);
1616 if (tmp_ctx == NULL) {
1622 override_attr_name = talloc_asprintf(tmp_ctx, "%s%s", OVERRIDE_PREFIX,
1640 talloc_free(tmp_ctx);