Searched refs:id (Results 1 - 25 of 89) sorted by relevance

1234

/sssd-io/src/providers/
H A Ddata_provider_opts.c318 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 Ddata_provider.h296 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-io/contrib/ci/
H A Dmisc.sh63 declare id
65 for id in "${GROUPS[@]}"; do
66 if [ "$id" == "$group_id" ]; then
/sssd-io/src/responder/common/cache_req/plugins/
H A Dcache_req_group_by_id.c34 return talloc_asprintf(mem_ctx, "GID:%"PRIu32"@%s", data->id, domain->name);
45 ret = sss_ncache_check_gid(ncache, domain, data->id);
51 return sss_ncache_check_gid(ncache, NULL, data->id);
66 return sss_ncache_set_gid(ncache, false, NULL, data->id);
74 return sss_ncache_set_gid(ncache, false, domain, data->id);
90 return sysdb_getgrgid_with_views(mem_ctx, domain, data->id, _result);
101 uint32_t id; local
103 *_id = cr->data->id;
122 id = ldb_msg_find_attr_as_uint64(result->msgs[0], SYSDB_GIDNUM, 0);
123 if (id
145 uint32_t id; local
[all...]
H A Dcache_req_user_by_id.c34 return talloc_asprintf(mem_ctx, "UID:%"PRIu32"@%s", data->id, domain->name);
45 ret = sss_ncache_check_uid(ncache, domain, data->id);
51 return sss_ncache_check_uid(ncache, NULL, data->id);
66 return sss_ncache_set_uid(ncache, false, NULL, data->id);
74 return sss_ncache_set_uid(ncache, false, domain, data->id);
89 return sysdb_getpwuid_with_views(mem_ctx, domain, data->id, _result);
100 uint32_t id; local
102 *_id = cr->data->id;
121 id = ldb_msg_find_attr_as_uint64(result->msgs[0], SYSDB_UIDNUM, 0);
122 if (id
144 uint32_t id; local
[all...]
H A Dcache_req_object_by_id.c34 return talloc_asprintf(mem_ctx, "ID:%"PRIu32"@%s", data->id, domain->name);
44 ret = sss_ncache_check_uid(ncache, domain, data->id);
46 ret = sss_ncache_check_gid(ncache, domain, data->id);
73 ret = sss_ncache_set_uid(ncache, false, NULL, data->id);
78 ret = sss_ncache_set_gid(ncache, false, NULL, data->id);
93 ret = sss_ncache_set_uid(ncache, false, domain, data->id);
98 ret = sss_ncache_set_gid(ncache, false, domain, data->id);
119 return sysdb_search_object_by_id(mem_ctx, domain, data->id,
132 cr->data->id, NULL);
142 nret = sss_ncache_check_locate_uid(rctx->ncache, domain, data->id);
214 cache_req_object_by_id_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct resp_ctx *rctx, struct sss_nc_ctx *ncache, int cache_refresh_percent, const char *domain, uint32_t id, const char **attrs) argument
[all...]
/sssd-io/src/sss_client/libwbclient/
H A Dwbc_idmap_sssd.c34 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-io/src/providers/ipa/
H A Dipa_common.c189 ipa_opts->id = talloc_zero(ipa_opts, struct sdap_options);
190 if (!ipa_opts->id) {
194 ipa_opts->id->dp = dp;
196 ret = sdap_domain_add(ipa_opts->id,
204 ret = dp_get_options(ipa_opts->id, cdb, conf_path,
207 &ipa_opts->id->basic);
219 if (NULL == dp_opt_get_string(ipa_opts->id->basic, SDAP_SEARCH_BASE)) {
227 ret = dp_opt_set_string(ipa_opts->id->basic,
234 ipa_opts->id->basic[SDAP_SEARCH_BASE].opt_name,
235 dp_opt_get_string(ipa_opts->id
[all...]
/sssd-io/src/config/etc/sssd.api.d/
H A Dsssd-local.conf9 [provider/local/id]
H A Dsssd-proxy.conf4 [provider/proxy/id]
/sssd-io/src/lib/winbind_idmap_sss/
H A Dwinbind_idmap_sss.h50 uint32_t id; member in struct:unixid
93 NTSTATUS (*allocate_id)(struct idmap_domain *dom, struct unixid *id);
H A Dwinbind_idmap_sss.c88 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-io/src/lib/idmap/
H A Dsss_idmap.h112 * Structure for id ranges
142 * NULL malloc() id used
145 * NULL free() id used
268 * @param[in] range TBD Some information about the id ranges of this
290 * @param[in] range TBD Some information about the id ranges of this
327 * @param[in] range TBD Some information about the id ranges of this
370 * @param[in] n_range The new id range
394 * @param[in] o_range The first id range
404 * @param[in] n_range The second id range
431 * @param[out] id Returne
[all...]
H A Dsss_idmap.c111 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);
295 get_helper_by_id(struct idmap_range_params *helpers, const char *id) argument
300 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
924 uint32_t id; local
1132 sss_idmap_check_sid_unix(struct sss_idmap_ctx *ctx, const char *sid, uint32_t id) argument
1206 sss_idmap_unix_to_sid(struct sss_idmap_ctx *ctx, uint32_t id, char **_sid) argument
1267 sss_idmap_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t *id) argument
1289 sss_idmap_bin_sid_to_unix(struct sss_idmap_ctx *ctx, uint8_t *bin_sid, size_t length, uint32_t *id) argument
1312 sss_idmap_smb_sid_to_unix(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid, uint32_t *id) argument
1334 sss_idmap_check_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t id) argument
1356 sss_idmap_check_bin_sid_unix(struct sss_idmap_ctx *ctx, uint8_t *bin_sid, size_t length, uint32_t id) argument
1379 sss_idmap_check_smb_sid_unix(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid, uint32_t id) argument
1400 sss_idmap_unix_to_dom_sid(struct sss_idmap_ctx *ctx, uint32_t id, struct sss_dom_sid **_dom_sid) argument
1432 sss_idmap_unix_to_bin_sid(struct sss_idmap_ctx *ctx, uint32_t id, uint8_t **_bin_sid, size_t *_length) argument
[all...]
/sssd-io/src/providers/ad/
H A Dad_sudo.c49 ad_options->id->sudorule_map = ldap_options->sudorule_map;
/sssd-io/src/providers/ldap/
H A Dsdap_idmap.h57 id_t *id);
/sssd-io/src/sss_client/idmap/
H A Dsss_nss_idmap.h71 * @param[in] id POSIX UID or GID
79 int sss_nss_getsidbyid(uint32_t id, char **sid, enum sss_id_type *type);
99 * @param[out] id POSIX ID related to the SID
105 int sss_nss_getidbysid(const char *sid, uint32_t *id,
332 * @param[in] id POSIX UID or GID
341 int sss_nss_getsidbyid_timeout(uint32_t id, unsigned int timeout,
364 * @param[out] id POSIX ID related to the SID
371 uint32_t *id, enum sss_id_type *id_type);
H A Dsss_nss_idmap.c40 uint32_t id; member in union:input
48 uint32_t id; member in union:output::__anon31
250 rd.data = &inp.id;
321 out->d.id = c;
390 int sss_nss_getsidbyid_timeout(uint32_t id, unsigned int timeout, argument
401 inp.id = id;
412 int sss_nss_getsidbyid(uint32_t id, char **sid, enum sss_id_type *type) argument
414 return sss_nss_getsidbyid_timeout(id, NO_TIMEOUT, sid, type);
446 uint32_t *id, enu
445 sss_nss_getidbysid_timeout(const char *sid, unsigned int timeout, uint32_t *id, enum sss_id_type *id_type) argument
467 sss_nss_getidbysid(const char *sid, uint32_t *id, enum sss_id_type *id_type) argument
[all...]
/sssd-io/src/lib/cifs_idmap_sss/
H A Dcifs_idmap_sss.c127 /* 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-io/src/tests/
H A Dsss_idmap-tests.c304 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-io/src/responder/nss/
H A Dnss_get_object.c62 uint32_t id,
69 ret = sss_mmap_cache_pw_invalidate_uid(nss_ctx->pwd_mc_ctx, (uid_t)id);
72 ret = sss_mmap_cache_gr_invalidate_gid(nss_ctx->grp_mc_ctx, (gid_t)id);
94 uint32_t id,
128 } else if (id == 0) {
134 } else if (id != 0) {
135 ret = memcache_delete_entry_by_id(nss_ctx, id, type);
139 id, dom->name);
61 memcache_delete_entry_by_id(struct nss_ctx *nss_ctx, uint32_t id, enum sss_mc_type type) argument
90 memcache_delete_entry(struct nss_ctx *nss_ctx, struct resp_ctx *rctx, struct sss_domain_info *domain, const char *name, uint32_t id, enum sss_mc_type type) argument
H A Dnss_iface.c34 uint32_t id; local
92 id = ldb_msg_find_attr_as_uint(res->msgs[i], SYSDB_GIDNUM, 0);
93 if (id == 0) {
98 if (gids[j] == id) {
125 id = groups[i];
127 ret = sss_mmap_cache_gr_invalidate_gid(nctx->grp_mc_ctx, id);
/sssd-io/src/tests/cmocka/
H A Dtest_sss_idmap.c314 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-io/src/responder/common/cache_req/
H A Dcache_req_data.c124 data->id = input->id;
266 uint32_t id)
270 input.id = id;
278 uint32_t id,
283 input.id = id;
264 cache_req_data_id(TALLOC_CTX *mem_ctx, enum cache_req_type type, uint32_t id) argument
276 cache_req_data_id_attrs(TALLOC_CTX *mem_ctx, enum cache_req_type type, uint32_t id, const char **attrs) argument
/sssd-io/src/python/
H A Dpysss_nss_idmap.c31 #define SSS_ID_KEY "id"
160 long id; local
169 id = PyInt_AS_LONG(py_id);
173 id = PyLong_AsLong(py_id);
180 id = strtol(id_str, &endptr, 10);
186 if (id < 0 || id > UINT32_MAX) {
190 ret = sss_nss_getsidbyid((uint32_t) id, &sid, &id_type);
276 uint32_t id; local
285 ret = sss_nss_getidbysid(sid, &id,
[all...]

Completed in 140 milliseconds

1234