Lines Matching refs:tmp_ctx
49 TALLOC_CTX *tmp_ctx;
58 tmp_ctx = talloc_new(NULL);
59 if (!tmp_ctx) {
63 ret = sss_filter_sanitize(tmp_ctx, name, &sanitized_name);
69 ret = sss_filter_sanitize(tmp_ctx, proto, &sanitized_proto);
75 subfilter = talloc_asprintf(tmp_ctx, SYSDB_SVC_BYNAME_FILTER,
98 talloc_free(tmp_ctx);
110 TALLOC_CTX *tmp_ctx;
122 tmp_ctx = talloc_new(NULL);
123 if (!tmp_ctx) {
128 ret = sss_filter_sanitize(tmp_ctx, proto, &sanitized_proto);
134 subfilter = talloc_asprintf(tmp_ctx, SYSDB_SVC_BYPORT_FILTER,
158 talloc_free(tmp_ctx);
175 TALLOC_CTX *tmp_ctx;
184 tmp_ctx = talloc_new(NULL);
185 if (!tmp_ctx) return ENOMEM;
204 ret = sysdb_getservbyport(tmp_ctx, domain, port, NULL, &res);
216 ldb_dn_canonical_string(tmp_ctx,
223 ldb_dn_canonical_string(tmp_ctx,
250 ldb_dn_canonical_string(tmp_ctx,
257 ldb_dn_canonical_string(tmp_ctx,
270 ret = sysdb_getservbyname(tmp_ctx, domain, primary_name, NULL, &res);
288 ldb_dn_canonical_string(tmp_ctx,
295 ldb_dn_canonical_string(tmp_ctx,
315 ldb_dn_canonical_string(tmp_ctx,
325 ldb_dn_canonical_string(tmp_ctx,
332 update_dn = talloc_steal(tmp_ctx, res->msgs[i]->dn);
354 ret = sysdb_svc_add(tmp_ctx, domain, primary_name, port,
361 attrs = sysdb_new_attrs(tmp_ctx);
407 talloc_free(tmp_ctx);
442 TALLOC_CTX *tmp_ctx;
446 tmp_ctx = talloc_new(NULL);
447 if (!tmp_ctx) return ENOMEM;
449 msg = ldb_msg_new(tmp_ctx);
523 talloc_free(tmp_ctx);
648 TALLOC_CTX *tmp_ctx;
654 tmp_ctx = talloc_new(NULL);
655 if (!tmp_ctx) {
668 ret = sysdb_getservbyname(tmp_ctx, domain, name, proto, &res);
676 ret = sysdb_getservbyport(tmp_ctx, domain, port, proto, &res);
714 talloc_zfree(tmp_ctx);
725 TALLOC_CTX *tmp_ctx;
731 tmp_ctx = talloc_new(NULL);
732 if (!tmp_ctx) {
751 talloc_free(tmp_ctx);
763 TALLOC_CTX *tmp_ctx;
765 tmp_ctx = talloc_new(NULL);
766 if (!tmp_ctx) {
770 dn = sysdb_svc_dn(domain->sysdb, tmp_ctx, domain->name, name);
779 talloc_free(tmp_ctx);
790 TALLOC_CTX *tmp_ctx;
795 tmp_ctx = talloc_new(NULL);
796 if (!tmp_ctx) {
800 basedn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb,
808 filter = talloc_asprintf(tmp_ctx, "(&(%s)%s)", SYSDB_SC, sub_filter);
825 talloc_zfree(tmp_ctx);
835 talloc_zfree(tmp_ctx);