/sssd-io/src/lib/winbind_idmap_sss/ |
H A D | winbind_idmap_sss.c | 68 char *sid_str; local 88 ret = sss_nss_getsidbyid(map[c]->xid.id, &sid_str, &id_type); 107 free(sid_str); 111 err = sss_idmap_sid_to_smb_sid(ctx->idmap_ctx, sid_str, &sid); 112 free(sid_str); 131 char *sid_str; local 151 err = sss_idmap_smb_sid_to_sid(ctx->idmap_ctx, map[c]->sid, &sid_str); 156 ret = sss_nss_getidbysid(sid_str, &id, &id_type); 157 sss_idmap_free_sid(ctx->idmap_ctx, sid_str);
|
/sssd-io/src/sss_client/libwbclient/ |
H A D | wbc_idmap_sssd.c | 33 char *sid_str; local 38 wbc_status = wbcSidToString(sid, &sid_str); 43 ret = sss_nss_getidbysid(sid_str, &id, &type); 44 wbcFreeMemory(sid_str); 97 char *sid_str; local 102 wbc_status = wbcSidToString(sid, &sid_str); 107 ret = sss_nss_getidbysid(sid_str, &id, &type); 108 wbcFreeMemory(sid_str); 168 char *sid_str; local 176 wbc_status = wbcSidToString(&sids[c], &sid_str); [all...] |
/sssd-io/src/providers/ad/ |
H A D | ad_domain_info.c | 276 char *sid_str; local 317 &sid_str); 325 state->sid = talloc_steal(state, sid_str);
|
H A D | ad_pac.c | 160 char *sid_str = NULL; local 212 sid_str = talloc_zero_size(tmp_ctx, user_dom_sid_str_len + 12); 213 if (sid_str == NULL) { 218 rid_start = sid_str + user_dom_sid_str_len; 220 memcpy(sid_str, user_dom_sid_str, user_dom_sid_str_len); 231 user_sid_str = talloc_strdup(tmp_ctx, sid_str); 238 key.str = sid_str; 250 primary_group_sid_str = talloc_strdup(tmp_ctx, sid_str); 257 key.str = sid_str; 279 key.str = sid_str; [all...] |
H A D | ad_subdomains.c | 411 char *sid_str = NULL; local 454 el->values[0].length, &sid_str); 462 mpg = sdap_idmap_domain_has_algorithmic_mapping(idmap_ctx, name, sid_str); 471 ret = sysdb_subdomain_store(domain->sysdb, name, realm, flat, sid_str, 480 sss_idmap_free_sid(idmap_ctx->map, sid_str);
|
/sssd-io/src/providers/ldap/ |
H A D | sdap_idmap.c | 140 const char *sid_str; local 253 sid_str = ldb_msg_find_attr_as_string(res->msgs[i], 256 if (!sid_str) { 272 sid_str, slice_num); 277 dom_name, sid_str, slice_num, strerror(ret)); 295 sid_str = dp_opt_get_string(idmap_ctx->id_ctx->opts->basic, SDAP_IDMAP_DEFAULT_DOMAIN_SID); 296 if (sid_str) { 298 domain->domain_id = talloc_strdup(domain, sid_str); 306 sid_str, 0); 310 dom_name, sid_str, 457 sdap_idmap_sid_to_unix(struct sdap_idmap_ctx *idmap_ctx, const char *sid_str, id_t *id) argument [all...] |
H A D | sdap_async_users.c | 58 char *sid_str, 89 ret = sdap_idmap_get_dom_sid_from_object(tmpctx, sid_str, 93 "Could not parse domain SID from [%s]\n", sid_str); 199 char *sid_str; local 224 &sid_str); 226 ret = sysdb_attrs_add_string(user_attrs, SYSDB_SID_STR, sid_str); 234 sid_str = NULL; 238 sid_str = NULL; 253 if (sid_str != NULL) { 254 subdomain = find_domain_by_sid(get_domains_head(dom), sid_str); 56 sdap_get_idmap_primary_gid(struct sdap_options *opts, struct sysdb_attrs *attrs, char *sid_str, char *dom_sid_str, gid_t *_gid) argument [all...] |
H A D | ldap_common.c | 891 char *sid_str; local 904 sid_str = talloc_strndup(mem_ctx, (char *) el->values[0].data, 906 if (sid_str == NULL) { 914 &sid_str); 923 *_sid_str = talloc_steal(mem_ctx, sid_str);
|
H A D | sdap_async_initgroups_ad.c | 380 char *sid_str = NULL; local 429 el->values[i].length, &sid_str); 437 state->sids[i] = talloc_move(state->sids, &sid_str);
|
H A D | sdap_async_groups.c | 515 char *sid_str; local 533 &sid_str); 535 ret = sysdb_attrs_add_string(group_attrs, SYSDB_SID_STR, sid_str); 544 sid_str = NULL; 548 sid_str = NULL; 564 if (sid_str != NULL) { 566 sid_str); 571 "domain\n", sid_str); 603 sid_str); 607 if (sid_str [all...] |
H A D | sdap_async_initgroups.c | 53 char *sid_str = NULL; local 128 &sid_str); 132 if (sid_str == NULL) { 145 groupname, sid_str); 148 ret = sdap_idmap_sid_to_unix(opts->idmap_ctx, sid_str, 226 original_dn, sid_str, 237 original_dn, sid_str, uuid, posix, 3253 char *sid_str; local 3324 &sid_str); 3328 ret = sdap_idmap_get_dom_sid_from_object(tmp_ctx, sid_str, 3561 sdap_handle_id_collision_for_incomplete_groups(struct data_provider *dp, struct sss_domain_info *domain, const char *name, gid_t gid, const char *original_dn, const char *sid_str, const char *uuid, bool posix, time_t now) argument [all...] |
/sssd-io/src/providers/ipa/ |
H A D | ipa_subdomains_ext_groups.c | 934 const char *sid_str, 958 ret = sss_filter_sanitize(tmp_ctx, sid_str, &sanitized_sid); 964 sid_str, attrs, &msg); 969 sid_str, attrs, &msg); 977 DEBUG(SSSDBG_TRACE_FUNC, "Found %s in sysdb\n", sid_str); 982 "Could not find %s in sysdb", sid_str); 987 sid_str, ret, sss_strerror(ret)); 932 search_user_or_group_by_sid_str(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, const char *sid_str, enum sysdb_member_type *_member_type, struct ldb_message **_msg) argument
|
H A D | ipa_s2n_exop.c | 478 char *sid_str; member in union:resp_attrs::__anon9 790 char *sid_str; local 932 tag = ber_scanf(ber, "a}", &sid_str); 939 attrs->a.sid_str = talloc_strdup(attrs, sid_str); 940 if (attrs->a.sid_str == NULL) { 1285 const char *sid_str; local 1319 &sid_str); 1328 ret = get_dp_id_data_for_sid(state, sid_str, state->obj_domain->name, &ar); 1768 const char *sid_str; local 2183 const char *sid_str; local 2693 const char *sid_str; local [all...] |
/sssd-io/src/tests/cmocka/ |
H A D | test_sysdb_ts_cache.c | 151 const char *sid_str) 153 return create_str_attrs(mem_ctx, SYSDB_SID_STR, sid_str); 150 create_sidstr_attrs(TALLOC_CTX *mem_ctx, const char *sid_str) argument
|
/sssd-io/src/tests/ |
H A D | sysdb-tests.c | 197 const char *sid_str; member in struct:test_data 384 data->sid_str, NULL, true, 0); 5248 data->sid_str = "S-5-4-3-2-1"; 5271 data->sid_str, NULL, &msg); 5313 data->sid_str = "S-5-4-3-2-1"; 5328 data->sid_str, NULL, &msg); 5575 data->sid_str = "S-1-2-3-4"; 5582 data->sid_str, NULL, &msg); 5587 ret = sysdb_delete_by_sid(test_ctx->sysdb, test_ctx->domain, data->sid_str); 5593 data->sid_str, NUL [all...] |
/sssd-io/src/db/ |
H A D | sysdb_ops.c | 355 const char *sid_str, 379 filter = talloc_asprintf(tmp_ctx, filter_str, sid_str); 624 const char *sid_str, 632 sid_str, attrs, msg); 814 const char *sid_str, 822 sid_str, attrs, msg); 2372 const char *sid_str, 2383 const char *values[] = { sid_str, uuid, original_dn, NULL }; 2451 if (sid_str) { 2452 ret = sysdb_attrs_add_string(attrs, SYSDB_SID_STR, sid_str); 351 sysdb_search_entry_by_sid_str(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, const char *search_base, const char *filter_str, const char *sid_str, const char **attrs, struct ldb_message **msg) argument 622 sysdb_search_user_by_sid_str(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, const char *sid_str, const char **attrs, struct ldb_message **msg) argument 812 sysdb_search_group_by_sid_str(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, const char *sid_str, const char **attrs, struct ldb_message **msg) argument 2368 sysdb_add_incomplete_group(struct sss_domain_info *domain, const char *name, gid_t gid, const char *original_dn, const char *sid_str, const char *uuid, bool posix, time_t now) argument 4246 sysdb_delete_by_sid(struct sysdb_ctx *sysdb, struct sss_domain_info *domain, const char *sid_str) argument 5005 sysdb_search_object_by_sid(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, const char *sid_str, const char **attrs, struct ldb_result **res) argument [all...] |