Searched defs:tmp_str (Results 1 - 17 of 17) sorted by relevance

/sssd-io/src/db/
H A Dsysdb_certmap.c275 const char *tmp_str; local
340 tmp_str = ldb_msg_find_attr_as_string(res->msgs[c], SYSDB_NAME, NULL);
341 if (tmp_str == NULL) {
348 maps[c]->name = talloc_strdup(maps, tmp_str);
354 tmp_str = ldb_msg_find_attr_as_string(res->msgs[c],
356 if (tmp_str != NULL) {
357 maps[c]->map_rule = talloc_strdup(maps, tmp_str);
365 tmp_str = ldb_msg_find_attr_as_string(res->msgs[c],
367 if (tmp_str != NULL) {
368 maps[c]->match_rule = talloc_strdup(maps, tmp_str);
[all...]
H A Dsysdb_ranges.c60 const char *tmp_str; local
93 tmp_str = ldb_msg_find_attr_as_string(res->msgs[c], SYSDB_NAME, NULL);
94 if (tmp_str == NULL) {
101 list[c]->name = talloc_strdup(list, tmp_str);
107 tmp_str = ldb_msg_find_attr_as_string(res->msgs[c], SYSDB_DOMAIN_ID,
109 if (tmp_str != NULL) {
110 list[c]->trusted_dom_sid = talloc_strdup(list, tmp_str);
145 tmp_str = ldb_msg_find_attr_as_string(res->msgs[c], SYSDB_ID_RANGE_TYPE,
147 if (tmp_str != NULL) {
148 list[c]->range_type = talloc_strdup(list, tmp_str);
[all...]
H A Dsysdb_subdomains.c541 const char *tmp_str; local
583 tmp_str = ldb_msg_find_attr_as_string(res->msgs[0], SYSDB_SUBDOMAIN_REALM,
585 if (tmp_str != NULL &&
586 (domain->realm == NULL || strcasecmp(tmp_str, domain->realm) != 0)) {
588 domain->realm = talloc_strdup(domain, tmp_str);
595 tmp_str = ldb_msg_find_attr_as_string(res->msgs[0], SYSDB_SUBDOMAIN_FLAT,
597 if (tmp_str != NULL &&
599 strcasecmp(tmp_str, domain->flat_name) != 0)) {
601 domain->flat_name = talloc_strdup(domain, tmp_str);
608 tmp_str
915 const char *tmp_str; local
[all...]
H A Dsysdb_search.c2071 const char *tmp_str; local
2138 tmp_str = ldb_msg_find_attr_as_string(direct_sysdb_groups[i],
2140 if (!tmp_str) {
2145 direct_parents[pi] = talloc_strdup(direct_parents, tmp_str);
H A Dsysdb_upgrade.c1354 const char *tmp_str; local
1381 tmp_str = ldb_msg_find_attr_as_string(dom_res->msgs[i], "cn", NULL);
1382 if (tmp_str == NULL) {
1389 basedn = ldb_dn_new_fmt(ctx, sysdb->ldb, SYSDB_DOM_BASE, tmp_str);
1392 "Failed to build base dn for subdomain %s\n", tmp_str);
1400 "Failed to search subdomain %s\n", tmp_str);
1443 const char *tmp_str; local
1499 tmp_str = ldb_msg_find_attr_as_string(res->msgs[i], SYSDB_NAME, NULL);
1500 if (tmp_str == NULL) {
1515 newdn = ldb_dn_new_fmt(ctx, sysdb->ldb, SYSDB_TMPL_RANGE, tmp_str);
[all...]
H A Dsysdb_views.c39 const char *tmp_str; local
75 tmp_str = ldb_msg_find_attr_as_string(res->msgs[0], SYSDB_VIEW_NAME,
77 if (tmp_str == NULL) {
83 *_view_name = talloc_steal(mem_ctx, discard_const(tmp_str));
105 char *tmp_str; local
115 ret = sysdb_get_view_name_ex(tmp_ctx, sysdb, &tmp_str,
123 if (strcmp(tmp_str, view_name) == 0) {
131 "View name changed from [%s] to [%s].\n", tmp_str, view_name);
/sssd-io/src/responder/nss/
H A Dnsssrv.c154 char *tmp_str; local
206 CONFDB_IFP_USER_ATTR_LIST, NULL, &tmp_str);
209 if (tmp_str == NULL) {
211 CONFDB_IFP_USER_ATTR_LIST, NULL, &tmp_str);
215 if (tmp_str != NULL) {
216 nctx->extra_attributes = parse_attr_list_ex(nctx, tmp_str, NULL);
H A Dnss_protocol_sid.c516 const char *tmp_str; local
535 tmp_str = sss_get_name_from_msg(result->domain, result->msgs[c]);
536 if (tmp_str == NULL) {
539 to_sized_string(&(sz_names[c]), tmp_str);
579 const char *tmp_str; local
610 tmp_str = sss_get_name_from_msg(results[d]->domain,
612 if (tmp_str == NULL) {
615 to_sized_string(&(sz_names[iter]), tmp_str);
/sssd-io/src/tools/sssctl/
H A Dsssctl_user_checks.c72 const char *tmp_str; local
106 &tmp_str);
118 fprintf(stdout, " - %s: %s\n", ifp_user_attr[c].name, tmp_str);
/sssd-io/src/lib/certmap/
H A Dsss_cert_content_nss.c107 char *tmp_str; local
129 tmp_str = CERT_GetOidString(oids[c]);
132 if (tmp_str == NULL || strncmp(tmp_str, "OID.", 4) != 0) {
133 PR_smprintf_free(tmp_str);
138 oids_list[c] = talloc_strdup(oids_list, tmp_str + 4);
139 PR_smprintf_free(tmp_str);
165 const char *tmp_str = NULL; local
202 tmp_str = talloc_strdup(mem_ctx, tmp_name);
204 if (tmp_str
375 char *tmp_str; local
552 char *tmp_str; local
[all...]
H A Dsss_certmap.c278 char *tmp_str = NULL; local
283 cert_content->cert_der_size, &tmp_str);
289 tmp_str = sss_base64_encode(ctx, cert_content->cert_der,
291 if (tmp_str == NULL) {
306 *expanded = tmp_str;
308 talloc_free(tmp_str);
545 char *tmp_str = NULL; local
551 ret = rdn_list_2_dn_str(ctx, NULL, item->rdn_list, &tmp_str);
552 if (ret != 0 || tmp_str == NULL) {
555 match = (regexec(&regexp, tmp_str,
602 char *tmp_str; local
[all...]
/sssd-io/src/providers/ldap/
H A Dldap_child.c281 char *tmp_str = NULL; local
401 tmp_str = getenv("KRB5_CANONICALIZE");
402 if (tmp_str != NULL && strcasecmp(tmp_str, "true") == 0) {
/sssd-io/src/providers/ipa/
H A Dipa_subdomains_ext_groups.c821 char *tmp_str; local
865 tmp_str = sss_create_internal_fqname(state, fq_name,
868 if (tmp_str != NULL) {
869 fq_name = tmp_str;
H A Dipa_selinux.c424 const char *tmp_str; local
457 tmp_str = sss_selinux_map_get_seuser(usermaps[j]);
459 if (tmp_str && !strcasecmp(tmp_str, mo_ctx->order_array[i])) {
464 seuser_mls_str = talloc_strdup(tmp_ctx, tmp_str);
1183 const char *tmp_str; local
1211 SYSDB_SELINUX_SEEALSO, &tmp_str);
1295 const char *tmp_str; local
1302 &tmp_str);
1308 *default_user = talloc_strdup(mem_ctx, tmp_str);
[all...]
H A Dipa_s2n_exop.c2184 const char *tmp_str; local
2224 ORIGINALAD_PREFIX SYSDB_NAME, &tmp_str);
2226 name = talloc_strdup(tmp_ctx, tmp_str);
2241 SYSDB_DEFAULT_OVERRIDE_NAME, &tmp_str);
2244 tmp_str);
2255 ret = sysdb_attrs_get_string(attrs->sysdb_attrs, SYSDB_UPN, &tmp_str);
2257 upn = talloc_strdup(tmp_ctx, tmp_str);
/sssd-io/src/tests/cmocka/
H A Dtest_sysdb_views.c225 char *tmp_str; local
232 tmp_str = talloc_strdup(orig, "ORIGNAME");
233 assert_non_null(tmp_str);
234 ret = ldb_msg_add_string(orig, SYSDB_NAME, tmp_str);
237 tmp_str = talloc_strdup(orig, "ORIGGECOS");
238 assert_non_null(tmp_str);
239 ret = ldb_msg_add_string(orig, SYSDB_GECOS, tmp_str);
245 tmp_str = talloc_strdup(override, "OVERRIDENAME");
246 assert_non_null(tmp_str);
247 ret = ldb_msg_add_string(override, SYSDB_NAME, tmp_str);
293 char *tmp_str; local
321 char *tmp_str; local
[all...]
/sssd-io/src/providers/krb5/
H A Dkrb5_child.c2768 char *tmp_str = NULL; local
2782 &tmp_str);
2787 fast_principal = talloc_strdup(kr, tmp_str);
2792 free(tmp_str);

Completed in 249 milliseconds