/sssd/src/providers/ |
H A D | data_provider_opts.c | 318 int id, const char *location) 320 if (opts[id].type != DP_OPT_STRING) { 324 location, opts[id].opt_name, 325 dp_opt_type_to_string(opts[id].type)); 328 return opts[id].val.cstring; 332 int id, const char *location) 334 if (opts[id].type != DP_OPT_STRING) { 338 location, opts[id].opt_name, 339 dp_opt_type_to_string(opts[id].type)); 342 return opts[id] 317 _dp_opt_get_cstring(struct dp_option *opts, int id, const char *location) argument 331 _dp_opt_get_string(struct dp_option *opts, int id, const char *location) argument 345 _dp_opt_get_blob(struct dp_option *opts, int id, const char *location) argument 359 _dp_opt_get_int(struct dp_option *opts, int id, const char *location) argument 373 _dp_opt_get_bool(struct dp_option *opts, int id, const char *location) argument 388 _dp_opt_set_string(struct dp_option *opts, int id, const char *s, const char *location) argument 414 _dp_opt_set_blob(struct dp_option *opts, int id, struct dp_opt_blob b, const char *location) argument 441 _dp_opt_set_int(struct dp_option *opts, int id, int i, const char *location) argument 458 _dp_opt_set_bool(struct dp_option *opts, int id, bool b, const char *location) argument [all...] |
H A D | data_provider.h | 296 int id, const char *location); 298 int id, const char *location); 300 int id, const char *location); 302 int id, const char *location); 304 int id, const char *location); 311 int _dp_opt_set_string(struct dp_option *opts, int id, 313 int _dp_opt_set_blob(struct dp_option *opts, int id, 315 int _dp_opt_set_int(struct dp_option *opts, int id, 317 int _dp_opt_set_bool(struct dp_option *opts, int id,
|
/sssd/src/responder/common/cache_req/plugins/ |
H A D | cache_req_group_by_id.c | 34 return talloc_asprintf(mem_ctx, "GID:%d@%s", data->id, domain->name); 42 return sss_ncache_check_gid(ncache, NULL, data->id); 49 return sss_ncache_set_gid(ncache, false, NULL, data->id); 59 return sysdb_getgrgid_with_views(mem_ctx, domain, data->id, _result); 70 uint32_t id; local 72 *_id = cr->data->id; 91 id = ldb_msg_find_attr_as_uint64(result->msgs[0], SYSDB_GIDNUM, 0); 92 if (id == 0) { 93 DEBUG(SSSDBG_CRIT_FAILURE, "Bug: id cannot be 0\n"); 98 /* Now we have the original name and id [all...] |
H A D | cache_req_user_by_id.c | 34 return talloc_asprintf(mem_ctx, "UID:%d@%s", data->id, domain->name); 42 return sss_ncache_check_uid(ncache, NULL, data->id); 49 return sss_ncache_set_uid(ncache, false, NULL, data->id); 59 return sysdb_getpwuid_with_views(mem_ctx, domain, data->id, _result); 70 uint32_t id; local 72 *_id = cr->data->id; 91 id = ldb_msg_find_attr_as_uint64(result->msgs[0], SYSDB_UIDNUM, 0); 92 if (id == 0) { 93 DEBUG(SSSDBG_CRIT_FAILURE, "Bug: id cannot be 0\n"); 98 /* Now we have the original name and id [all...] |
/sssd/contrib/ci/ |
H A D | misc.sh | 63 declare id 65 for id in "${GROUPS[@]}"; do 66 if [ "$id" == "$group_id" ]; then
|
H A D | distro.sh | 38 DISTRO_ID=`lsb_release --id | sed -e 's/^[^:]*:\s*\(.*\)$/\L\1\E/'` 55 # https://bugzilla.redhat.com/show_bug.cgi?id=1215208 is fixed
|
/sssd/src/sss_client/libwbclient/ |
H A D | wbc_idmap_sssd.c | 34 uint32_t id; local 43 ret = sss_nss_getidbysid(sid_str, &id, &type); 53 *puid = (uid_t) id; 98 uint32_t id; local 107 ret = sss_nss_getidbysid(sid_str, &id, &type); 117 *pgid = (gid_t) id; 169 uint32_t id; local 178 ret = sss_nss_getidbysid(sid_str, &id, &type); 188 ids[c].id.uid = (uid_t) id; [all...] |
/sssd/src/providers/ipa/ |
H A D | ipa_common.c | 188 ipa_opts->id = talloc_zero(ipa_opts, struct sdap_options); 189 if (!ipa_opts->id) { 194 ret = sdap_domain_add(ipa_opts->id, 202 ret = dp_get_options(ipa_opts->id, cdb, conf_path, 205 &ipa_opts->id->basic); 217 if (NULL == dp_opt_get_string(ipa_opts->id->basic, SDAP_SEARCH_BASE)) { 225 ret = dp_opt_set_string(ipa_opts->id->basic, 232 ipa_opts->id->basic[SDAP_SEARCH_BASE].opt_name, 233 dp_opt_get_string(ipa_opts->id->basic, SDAP_SEARCH_BASE)); 235 ret = sdap_parse_search_base(ipa_opts->id, ipa_opt [all...] |
/sssd/src/config/etc/sssd.api.d/ |
H A D | sssd-proxy.conf | 4 [provider/proxy/id]
|
H A D | sssd-local.conf | 9 [provider/local/id]
|
/sssd/src/sss_client/idmap/ |
H A D | sss_nss_idmap.h | 68 * @param[in] id POSIX UID or GID 76 int sss_nss_getsidbyid(uint32_t id, char **sid, enum sss_id_type *type); 96 * @param[out] id POSIX ID related to the SID 102 int sss_nss_getidbysid(const char *sid, uint32_t *id,
|
H A D | sss_nss_idmap.c | 36 uint32_t id; member in union:input 43 uint32_t id; member in union:output::__anon27 174 rd.data = &inp.id; 237 out->d.id = c; 288 int sss_nss_getsidbyid(uint32_t id, char **sid, enum sss_id_type *type) argument 298 inp.id = id; 331 int sss_nss_getidbysid(const char *sid, uint32_t *id, enum sss_id_type *id_type) argument 337 if (id == NULL || id_type == NULL || sid == NULL || *sid == '\0') { 345 *id [all...] |
/sssd/src/responder/common/cache_req/ |
H A D | cache_req_data.c | 76 if (input->id == 0) { 77 DEBUG(SSSDBG_CRIT_FAILURE, "Bug: id cannot be 0!\n"); 82 data->id = input->id; 139 uint32_t id) 143 input.id = id; 137 cache_req_data_id(TALLOC_CTX *mem_ctx, enum cache_req_type type, uint32_t id) argument
|
H A D | cache_req_private.h | 67 uint32_t id; member in struct:cache_req_data
|
/sssd/src/lib/winbind_idmap_sss/ |
H A D | winbind_idmap_sss.h | 50 uint32_t id; member in struct:unixid 93 NTSTATUS (*allocate_id)(struct idmap_domain *dom, struct unixid *id);
|
H A D | winbind_idmap_sss.c | 88 ret = sss_nss_getsidbyid(map[c]->xid.id, &sid_str, &id_type); 135 uint32_t id; local 156 ret = sss_nss_getidbysid(sid_str, &id, &id_type); 179 map[c]->xid.id = id;
|
/sssd/src/tests/cmocka/ |
H A D | test_sss_idmap.c | 314 uint32_t id; local 321 err = sss_idmap_sid_to_unix(test_ctx->idmap_ctx, TEST_DOM_SID"1-1", &id); 325 &id); 331 err = sss_idmap_sid_to_unix(test_ctx->idmap_ctx, TEST_DOM_SID"-0", &id); 333 assert_int_equal(id, TEST_RANGE_MIN); 335 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, id, &sid); 341 TEST_DOM_SID"-"TEST_OFFSET_STR, &id); 343 assert_int_equal(id, TEST_RANGE_MIN+TEST_OFFSET); 345 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, id, &sid); 352 /* ID mapping - bug in computing max id fo 362 uint32_t id; local 407 uint32_t id; local 449 uint32_t id; local [all...] |
/sssd/src/lib/idmap/ |
H A D | sss_idmap.h | 108 * Structure for id ranges 138 * NULL malloc() id used 141 * NULL free() id used 264 * @param[in] range TBD Some information about the id ranges of this 286 * @param[in] range TBD Some information about the id ranges of this 323 * @param[in] range TBD Some information about the id ranges of this 366 * @param[in] n_range The new id range 390 * @param[in] o_range The first id range 400 * @param[in] n_range The second id range 427 * @param[out] id Returne [all...] |
H A D | sss_idmap.c | 111 char *id, 116 if (src == NULL || id == NULL || _dst == NULL) { 129 dst->range_id = id; 135 static bool id_is_in_range(uint32_t id, argument 139 if (id == 0 || rp == NULL) { 143 if (id >= rp->min_id && id <= rp->max_id) { 145 *rid = rp->first_rid + (id - rp->min_id); 279 get_helper_by_id(struct idmap_range_params *helpers, const char *id) argument 284 if (strcmp(it->range_id, id) 109 construct_range(struct sss_idmap_ctx *ctx, const struct idmap_range_params *src, char *id, struct idmap_range_params **_dst) argument 898 uint32_t id; local 1106 sss_idmap_check_sid_unix(struct sss_idmap_ctx *ctx, const char *sid, uint32_t id) argument 1180 sss_idmap_unix_to_sid(struct sss_idmap_ctx *ctx, uint32_t id, char **_sid) argument 1241 sss_idmap_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t *id) argument 1263 sss_idmap_bin_sid_to_unix(struct sss_idmap_ctx *ctx, uint8_t *bin_sid, size_t length, uint32_t *id) argument 1286 sss_idmap_smb_sid_to_unix(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid, uint32_t *id) argument 1308 sss_idmap_check_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t id) argument 1330 sss_idmap_check_bin_sid_unix(struct sss_idmap_ctx *ctx, uint8_t *bin_sid, size_t length, uint32_t id) argument 1353 sss_idmap_check_smb_sid_unix(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid, uint32_t id) argument 1374 sss_idmap_unix_to_dom_sid(struct sss_idmap_ctx *ctx, uint32_t id, struct sss_dom_sid **_dom_sid) argument 1406 sss_idmap_unix_to_bin_sid(struct sss_idmap_ctx *ctx, uint32_t id, uint8_t **_bin_sid, size_t *_length) argument [all...] |
/sssd/src/providers/ad/ |
H A D | ad_sudo.c | 49 ad_options->id->sudorule_map = ldap_options->sudorule_map;
|
/sssd/src/providers/ldap/ |
H A D | sdap_idmap.h | 57 id_t *id);
|
/sssd/src/lib/cifs_idmap_sss/ |
H A D | cifs_idmap_sss.c | 127 /* FIXME: Map Samba Unix SIDs? (sid->id and use getpwuid)? */ 192 id_t id; local 195 if (sscanf(sid, "S-1-22-%hhu-%u", &type, &id) != 2) 201 cuxid->id.uid = id; 205 cuxid->id.gid = id; 221 err = sss_nss_getidbysid(sid, (uint32_t *)&cuxid->id.uid, &id_type); 279 debug("setting uid of %s to %d", sid, cuxid[i].id.uid); 307 err = sss_nss_getsidbyid((uint32_t)cuxid[i].id [all...] |
/sssd/src/tests/ |
H A D | sss_idmap-tests.c | 304 uint32_t id; local 306 err = sss_idmap_sid_to_unix(idmap_ctx, "S-1-5-21-1-2-3333-1000", &id); 310 err = sss_idmap_sid_to_unix(idmap_ctx, "S-1-5-21-1-2-3-10000", &id); 314 err = sss_idmap_sid_to_unix(idmap_ctx, "S-1-5-21-1-2-3-1000", &id); 316 fail_unless(id == (1000 + IDMAP_RANGE_MIN), 317 "sss_idmap_sid_to_unix returned wrong id, " 318 "got [%d], expected [%d].", id, 1000 + IDMAP_RANGE_MIN); 325 uint32_t id; local 329 err = sss_idmap_sid_to_unix(idmap_ctx, "S-1-5-21-1-2-3333-1000", &id); 334 err = sss_idmap_sid_to_unix(idmap_ctx, "S-1-5-21-1-2-3-4000000", &id); 357 uint32_t id; local 386 uint32_t id; local 403 uint32_t id; local 464 uint32_t id; local 485 uint32_t id; local [all...] |
/sssd/src/python/ |
H A D | pysss_nss_idmap.c | 29 #define SSS_ID_KEY "id" 130 long id; local 139 id = PyInt_AS_LONG(py_id); 143 id = PyLong_AsLong(py_id); 150 id = strtol(id_str, &endptr, 10); 156 if (id < 0 || id > UINT32_MAX) { 160 ret = sss_nss_getsidbyid((uint32_t) id, &sid, &id_type); 195 uint32_t id; local 204 ret = sss_nss_getidbysid(sid, &id, [all...] |
/sssd/src/providers/proxy/ |
H A D | proxy_child.c | 60 uint32_t id; member in struct:pc_ctx 395 DEBUG(SSSDBG_TRACE_FUNC, "Got id ack from proxy child\n"); 402 static errno_t proxy_child_send_id(struct sbus_connection *conn, uint32_t id) argument 409 DBUS_TYPE_UINT32, &id); 415 DEBUG(SSSDBG_TRACE_FUNC, "Sending ID to Proxy Backend: (%"PRIu32")\n", id); 456 ret = proxy_child_send_id(ctx->conn, ctx->id); 467 const char *pam_target, uint32_t id) 480 ctx->id = id; 512 long id; local 465 proxy_child_process_init(TALLOC_CTX *mem_ctx, const char *domain, struct tevent_context *ev, struct confdb_ctx *cdb, const char *pam_target, uint32_t id) argument [all...] |