Searched defs:id (Results 1 - 25 of 43) sorted by relevance

12

/sssd/src/responder/common/cache_req/
H A Dcache_req_data.c76 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 Dcache_req_private.h67 uint32_t id; member in struct:cache_req_data
/sssd/src/lib/winbind_idmap_sss/
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;
H A Dwinbind_idmap_sss.h50 uint32_t id; member in struct:unixid
93 NTSTATUS (*allocate_id)(struct idmap_domain *dom, struct unixid *id);
/sssd/src/responder/common/cache_req/plugins/
H A Dcache_req_group_by_id.c34 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 Dcache_req_user_by_id.c34 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/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/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...]
/sssd/src/providers/ipa/
H A Dipa_subdomains.h125 uint32_t id; member in union:req_input::__anon9
H A Dipa_views.c37 uint32_t id; local
86 id = strtouint32(ar->filter_value, &endptr, 10);
88 DEBUG(SSSDBG_CRIT_FAILURE, "Invalid id value [%s].\n",
98 id);
106 id);
114 id,
116 id);
120 "Unexpected entry type [%d] for id filter.\n",
/sssd/src/sss_client/idmap/
H A Dsss_nss_idmap.c36 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/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/src/providers/ad/
H A Dad_common.h91 struct sdap_options *id; member in struct:ad_options
/sssd/src/providers/ldap/
H A Dsdap_idmap.c282 /* This is the first time we're setting up id-mapping
459 id_t *id)
468 (uint32_t *)id);
496 (uint32_t *)id);
457 sdap_idmap_sid_to_unix(struct sdap_idmap_ctx *idmap_ctx, const char *sid_str, id_t *id) argument
/sssd/src/providers/proxy/
H A Dproxy.h123 uint32_t id; member in struct:proxy_child_ctx
H A Dproxy_child.c60 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...]
/sssd/src/python/
H A Dpysss_nss_idmap.c29 #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/responder/nss/
H A Dnsssrv_private.h49 uint32_t id; member in struct:nss_cmd_ctx
/sssd/src/tools/
H A Dtools_util.c244 int id_in_range(uint32_t id, argument
247 if (id &&
248 ((id < dom->id_min) ||
249 (dom->id_max && id > dom->id_max))) {
/sssd/src/responder/ifp/
H A Difp_groups.c179 uint32_t id)
191 ctx->rctx->ncache, 0, NULL, id);
177 ifp_groups_find_by_id(struct sbus_request *sbus_req, void *data, uint32_t id) argument
H A Difp_users.c160 uint32_t id)
172 ctx->rctx->ncache, 0, NULL, id);
158 ifp_users_find_by_id(struct sbus_request *sbus_req, void *data, uint32_t id) argument
/sssd/src/sss_client/nfs/
H A Dsss_nfs_client.c223 static int name_to_id(const char *name, id_t *id, enum sss_cli_command cmd) argument
234 rc = reply_to_id(id, rep, rep_len);
242 static int id_to_name(char *name, size_t len, id_t id, argument
251 memcpy(req, &id, req_len);
291 id_t id; local
317 SAFEALIGN_COPY_UINT32(&id, rep + REPLY_ID_OFFSET, NULL);
318 *idp = id;
/sssd/src/sss_client/
H A Dnss_group.c60 } id; member in struct:sss_nss_getgr_data
69 free(sss_nss_getgr_data.id.grname);
94 ret = strcmp(name, sss_nss_getgr_data.id.grname);
101 if (sss_nss_getgr_data.id.gid != gid) {
144 sss_nss_getgr_data.id.grname = strdup(name);
145 if (!sss_nss_getgr_data.id.grname) {
155 sss_nss_getgr_data.id.gid = gid;
/sssd/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/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...]

Completed in 1766 milliseconds

12