/sssd-io/src/tests/intg/ |
H A D | sssd_id.py | 36 @return (int, int, List[int]) (err, errno, gids) 37 gids should contain user group IDs if err is NssReturnCode.SUCCESS 57 gids = [] 64 gids.append(int(p_groups.contents[i])) 67 if gid not in gids: 68 gids.append(gid) 70 return (int(res), errno[0], gids) 81 @return (int, int, List[int]) (err, errno, gids) 82 gids should contain user group IDs if err is NssReturnCode.SUCCESS 123 (res, errno, gids) [all...] |
H A D | test_ldap.py | 780 (res, errno, gids) = sssd_id.call_sssd_initgroups("user1", primary_gid) 783 assert sorted(gids) == sorted(expected_gids), \ 785 ", ".join(["%s" % s for s in sorted(gids)]), 1280 (res, errno, gids) = sssd_id.call_sssd_initgroups("user1", 1001) 1283 assert sorted(gids) == sorted(user1_expected_gids), \ 1285 ", ".join(["%s" % s for s in sorted(gids)]), 1296 (res, errno, gids) = sssd_id.call_sssd_initgroups("user2", 1002) 1299 assert sorted(gids) == sorted(user1_expected_gids), \ 1301 ", ".join(["%s" % s for s in sorted(gids)]), 1374 (res, errno, gids) [all...] |
H A D | test_memory_cache.py | 407 (res, errno, gids) = sssd_id.get_user_gids(user) 411 assert sorted(gids) == sorted(expected_gids), \ 413 ", ".join(["%s" % s for s in sorted(gids)]), 445 (res, errno, gids) = sssd_id.call_sssd_initgroups(user, primary_gid) 449 assert sorted(gids) == sorted(expected_gids), \ 451 ", ".join(["%s" % s for s in sorted(gids)]),
|
H A D | test_ts_cache.py | 269 (res, errno, gids) = sssd_id.call_sssd_initgroups(name, primary_gid)
|
/sssd-io/src/util/ |
H A D | become_user.c | 78 gid_t gids[]; member in struct:sss_creds 87 int num_gids, gid_t *gids, 120 size = getgroups(ssc->num_gids, ssc->gids); 160 ret = setgroups(num_gids, gids); 211 saved_creds->gids, NULL); 85 switch_creds(TALLOC_CTX *mem_ctx, uid_t uid, gid_t gid, int num_gids, gid_t *gids, struct sss_creds **saved_creds) argument
|
H A D | mmap_cache.h | 147 uint32_t gids[0]; /* array of all groups member in struct:sss_mc_initgr_data 149 * after gids */
|
H A D | util.h | 645 int num_gids, gid_t *gids,
|
/sssd-io/src/responder/nss/ |
H A D | nss_iface.c | 35 uint32_t gids[gnum]; local 76 memcpy(gids, groups, gnum * sizeof(uint32_t)); 98 if (gids[j] == id) { 99 gids[j] = 0; 113 if (gids[j] != 0) {
|
H A D | nsssrv_mmap_cache.c | 32 /* short group name and no gids (private user group */ 479 *_offset = offsetof(struct sss_mc_initgr_data, gids); 558 /* name_ptr must point to some data in the strs/gids area of the data 999 /* array of gids + name + unique_name */ 1029 memcpy((char *)data->gids + pos, gids_buf, num_groups * sizeof(uint32_t)); 1032 memcpy((char *)data->gids + pos, unique_name->str, unique_name->len); 1033 data->strs = data->unique_name = MC_PTR_DIFF((char *)data->gids + pos, data); 1036 memcpy((char *)data->gids + pos, name->str, name->len); 1037 data->name = MC_PTR_DIFF((char *)data->gids + pos, data);
|
/sssd-io/src/sss_client/ |
H A D | nss_mc_initgr.c | 79 SAFEALIGN_COPY_UINT32(&(*groups)[*start], data->gids + i, NULL); 96 const size_t data_offset = offsetof(struct sss_mc_initgr_data, gids);
|
/sssd-io/src/sss_client/libwbclient/ |
H A D | wbc_pwd_sssd.c | 619 gid_t *gids = NULL; local 628 gids = calloc(gr_size, sizeof(gid_t)); 629 if (gids == NULL) { 636 gids[0] = pwd->pw_gid; 640 &gr_size, &gids, -1, &nss_errno); 646 *_groups = gids; 655 free(gids);
|
/sssd-io/src/providers/proxy/ |
H A D | proxy_id.c | 1502 gid_t *gids; local 1511 gids = talloc_size(memctx, size); 1512 if (!gids) { 1518 gids[0] = pwd->pw_gid; 1525 &num, &gids, limit, &ret); 1538 gids = talloc_realloc_size(memctx, gids, size); 1539 if (!gids) { 1558 ret = get_gr_gid(memctx, ctx, sysdb, dom, gids[i], now);
|
/sssd-io/src/tests/cmocka/ |
H A D | test_nss_srv.c | 424 gid_t *gids, size_t num_gids) 439 assert_int_equal(cur_gid, gids[i]); 423 check_initgr_packet(uint8_t *body, size_t blen, gid_t *gids, size_t num_gids) argument
|