/sssd/src/responder/common/ |
H A D | negcache_files.h | 29 bool is_group_local_by_gid(uid_t gid);
|
H A D | negcache_files.c | 96 bool is_group_local_by_gid(uid_t gid) argument 104 ret = getgrgid_r(gid, &grp, buffer, BUFFER_SIZE, &grp_result); 107 "Group with GID %"SPRIgid" is a local group\n", gid);
|
H A D | negcache.h | 43 gid_t gid); 69 struct sss_domain_info *dom, gid_t gid);
|
/sssd/src/tests/cwrap/ |
H A D | test_usertools.c | 34 gid_t gid; local 37 ret = sss_user_by_name_or_uid("123", &uid, &gid); 40 assert_int_equal(gid, 456); 46 gid_t gid; local 49 ret = sss_user_by_name_or_uid("sssd", &uid, &gid); 52 assert_int_equal(gid, 456); 58 gid_t gid; local 65 ret = sss_user_by_name_or_uid("sssd", NULL, &gid); 67 assert_int_equal(gid, 456);
|
/sssd/src/tests/intg/ |
H A D | sssd_id.py | 35 def call_sssd_initgroups(user, gid): 42 @param int gid the additional gid will be also added to the list. 64 res = func(c_char_p(user), c_uint32(gid), start, size, p_groups, limit, 71 "one gid" 77 if gid not in gids: 78 gids.append(gid) 97 gid = pwd_user.pw_gid 101 return call_sssd_initgroups(user, gid) 104 def gid_to_str(gid) [all...] |
H A D | test_memory_cache.py | 213 dict(name='user1', passwd='*', uid=1001, gid=2001, 217 dict(name='user1', passwd='*', uid=1001, gid=2001, 222 dict(name='user2', passwd='*', uid=1002, gid=2002, 226 dict(name='user2', passwd='*', uid=1002, gid=2002, 231 dict(name='user3', passwd='*', uid=1003, gid=2003, 235 dict(name='user3', passwd='*', uid=1003, gid=2003, 240 dict(name='user11', passwd='*', uid=1011, gid=2001, 244 dict(name='user11', passwd='*', uid=1011, gid=2001, 249 dict(name='user12', passwd='*', uid=1012, gid=2002, 253 dict(name='user12', passwd='*', uid=1012, gid [all...] |
H A D | test_ldap.py | 306 dict(name='usr\\001', passwd='*', uid=181818, gid=181818, 312 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001', 314 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002', 316 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003', 322 dict(name='group1', passwd='*', gid=2001, mem=ent.contains_only()), 323 dict(name='group2', passwd='*', gid=2002, mem=ent.contains_only()), 324 dict(name='group3', passwd='*', gid=2003, mem=ent.contains_only()), 325 dict(name='empty_group', passwd='*', gid=2010, 327 dict(name='two_user_group', passwd='*', gid=2012, 344 dict(name='user1', passwd='*', uid=1001, gid [all...] |
H A D | test_enumeration.py | 269 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001', 271 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002', 273 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003', 279 dict(name='group1', passwd='*', gid=2001, mem=ent.contains_only()), 280 dict(name='group2', passwd='*', gid=2002, mem=ent.contains_only()), 281 dict(name='group3', passwd='*', gid=2003, mem=ent.contains_only()), 282 dict(name='empty_group', passwd='*', gid=2010, 284 dict(name='two_user_group', passwd='*', gid=2012, 301 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001', 303 dict(name='user2', passwd='*', uid=1002, gid [all...] |
H A D | test_local_domain.py | 172 ent.assert_group_by_name("foo", dict(name="foo", gid=10001)) 192 dict(name="group10009", passwd="*", gid=10009, 213 dict(name="group_parent", passwd="*", gid=10008, 227 ent.assert_group_by_name("foo@LOCAL", dict(name="foo@LOCAL", gid=10001)) 250 dict(name="group10009@LOCAL", passwd="*", gid=10009, 275 dict(name="group_parent@LOCAL", passwd="*", gid=10008,
|
H A D | ldap_local_override_test.py | 192 user1 = dict(name='user1', passwd='*', uid=10001, gid=20001, 196 user2 = dict(name='user2', passwd='*', uid=10002, gid=20001, 217 user1 = dict(name=name1, passwd='*', uid=10010, gid=20010, 222 user2 = dict(name=name2, passwd='*', uid=10020, gid=20020, 347 dict(name='root', uid=0, gid=0)) 375 # Override does not have to happen completly, trying to set uid or gid 379 dict(name='ov_user1', passwd='*', uid=10001, gid=20001, 388 dict(name='root', passwd='*', uid=10020, gid=20020, 418 dict(name='user1', passwd='*', uid=10001, gid=20001, 438 dict(name='ov_user1', passwd='*', uid=10010, gid [all...] |
H A D | ent_test.py | 55 USER1 = dict(name="user1", passwd="x", uid=1001, gid=2001, 57 USER2 = dict(name="user2", passwd="x", uid=1002, gid=2002, 64 EMPTY_GROUP = dict(name="empty_group", passwd="x", gid=2000, 66 GROUP1 = dict(name="group1", passwd="x", gid=2001, 68 GROUP2 = dict(name="group2", passwd="x", gid=2002, 70 ONE_USER_GROUP1 = dict(name="one_user_group1", passwd="x", gid=2011, 72 ONE_USER_GROUP2 = dict(name="one_user_group2", passwd="x", gid=2012, 74 TWO_USER_GROUP = dict(name="two_user_group", passwd="x", gid=2020, 83 GROUP_GID_DICT = dict((g["gid"], g) for g in GROUP_LIST) 89 "{name}:{passwd}:{uid}:{gid} [all...] |
/sssd/src/providers/krb5/ |
H A D | krb5_ccache.h | 38 errno_t sss_krb5_precreate_ccache(const char *ccname, uid_t uid, gid_t gid); 40 errno_t sss_krb5_cc_destroy(const char *ccname, uid_t uid, gid_t gid); 46 errno_t sss_krb5_cc_verify_ccache(const char *ccname, uid_t uid, gid_t gid, 54 uid_t uid, gid_t gid);
|
/sssd/src/util/ |
H A D | check_and_open.c | 33 uid_t uid, gid_t gid, 37 uid_t uid, uid_t gid, mode_t mode, mode_t mask, 61 return perform_checks(stat_buf, uid, gid, mode, mask); 64 errno_t check_fd(int fd, uid_t uid, gid_t gid, argument 86 return perform_checks(stat_buf, uid, gid, mode, mask); 90 uid_t uid, gid_t gid, 119 if (gid != (gid_t)(-1) && stat_buf->st_gid != gid) { 120 DEBUG(SSSDBG_TRACE_LIBS, "File must be owned by gid [%d].\n", gid); 36 check_file(const char *filename, uid_t uid, uid_t gid, mode_t mode, mode_t mask, struct stat *caller_stat_buf, bool follow_symlink) argument 89 perform_checks(struct stat *stat_buf, uid_t uid, gid_t gid, mode_t mode, mode_t mask) argument 127 check_and_open_readonly(const char *filename, int *fd, uid_t uid, gid_t gid, mode_t mode, mode_t mask) argument [all...] |
H A D | become_user.c | 28 errno_t become_user(uid_t uid, gid_t gid) argument 34 "Trying to become user [%"SPRIuid"][%"SPRIgid"].\n", uid, gid); 52 /* change gid so that root cannot be regained (changes saved gid too) */ 53 ret = setresgid(gid, gid, gid); 76 gid_t gid; member in struct:sss_creds 86 uid_t uid, gid_t gid, 96 DEBUG(SSSDBG_FUNC_DATA, "Switch user to [%d][%d].\n", uid, gid); 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 [all...] |
/sssd/src/sss_client/libwbclient/ |
H A D | wbc_idmap_common.c | 40 /* Convert a Windows SID to a Unix gid if there already is a mapping */ 48 /* Convert a Unix gid to a Windows SID if there already is a mapping */ 49 wbcErr wbcQueryGidToSid(gid_t gid, argument 62 wbcErr wbcSetGidMapping(gid_t gid, const struct wbcDomainSid *sid) argument 74 wbcErr wbcRemoveGidMapping(gid_t gid, const struct wbcDomainSid *sid) argument
|
H A D | wbc_idmap_sssd.c | 85 /** @brief Convert a Windows SID to a Unix gid, allocating a gid if needed 122 /* Convert a Unix gid to a Windows SID, allocating a SID if needed */ 123 wbcErr wbcGidToSid(gid_t gid, struct wbcDomainSid *sid) argument 130 ret = sss_nss_getsidbyid(gid, &str_sid, &type); 156 /* Obtain a new gid from Winbind */ 192 ids[c].id.gid = (gid_t) id; 218 wbc_status = wbcGidToSid(ids[c].id.gid, &sids[c]);
|
/sssd/src/sss_client/nfs/ |
H A D | nfsidmap_internal.h | 46 int (*princ_to_ids)(char *secname, char *princ, uid_t *uid, gid_t *gid, 49 int (*name_to_gid)(char *name, gid_t *gid); 51 int (*gid_to_name)(gid_t gid, char *domain, char *name, size_t len);
|
H A D | sss_nfs_client.c | 103 static int get_gid_from_mc(id_t *gid, const char *name) argument 130 *gid = grp.gr_gid; 181 static int get_group_from_mc(char *name, size_t len, id_t gid) argument 201 rc = sss_nss_mc_getgrgid(gid, &grp, buf, buflen); 211 IDMAP_LOG(1, ("found gid %i in memcache", gid)); 214 IDMAP_LOG(1, ("gid %i not in memcache", gid)); 441 gid_t *gid, extra_mapping_params **ex) 478 static int sss_nfs_name_to_gid(char *name, gid_t *gid) argument 440 sss_nfs_princ_to_ids(char *secname, char *princ, uid_t *uid, gid_t *gid, extra_mapping_params **ex) argument 529 sss_nfs_gid_to_name(gid_t gid, char *domain, char *name, size_t len) argument [all...] |
/sssd/src/providers/data_provider/ |
H A D | dp.c | 43 provider->uid, provider->gid, true, 73 gid_t gid) 86 provider->gid = gid; 70 dp_init(struct tevent_context *ev, struct be_ctx *be_ctx, uid_t uid, gid_t gid) argument
|
/sssd/src/tests/cmocka/ |
H A D | common_mock_sysdb_objects.h | 41 gid_t gid,
|
/sssd/src/tools/ |
H A D | tools_util.h | 86 gid_t gid, 92 uid_t uid, gid_t gid); 119 mode_t mode_root, uid_t uid, gid_t gid); 124 uid_t uid, gid_t gid,
|
/sssd/src/responder/nss/ |
H A D | nsssrv_mmap_cache.h | 43 uid_t uid, gid_t gid, 51 gid_t gid, size_t memnum, 68 errno_t sss_mmap_cache_gr_invalidate_gid(struct sss_mc_ctx *mcc, gid_t gid);
|
/sssd/src/tests/ |
H A D | check_and_open-tests.c | 39 gid_t gid; variable 58 gid = getgid(); 83 uid, gid, S_IFREG|mode, 0); 108 ret = check_file(newpath, uid, gid, S_IFREG|mode, 0, NULL, false); 135 ret = check_file(newpath, uid, gid, S_IFREG|mode, 0, NULL, true); 148 ret = check_and_open_readonly("/dev/null", &fd, uid, gid, S_IFREG|mode, 0); 159 ret = check_and_open_readonly(filename, &fd, uid+1, gid, S_IFREG|mode, 0); 170 ret = check_and_open_readonly(filename, &fd, uid, gid+1, S_IFREG|mode, 0); 172 "check_and_open_readonly succeeded with wrong gid"); 182 uid, gid, S_IFRE [all...] |
/sssd/src/providers/simple/ |
H A D | simple_access_check.c | 209 gid_t gid; member in struct:simple_resolve_group_state 224 gid_t gid) 237 state->gid = gid; 264 ar->filter_value = talloc_asprintf(ar, "%llu", (unsigned long long) gid); 301 ret = sysdb_search_group_by_gid(state, state->domain, state->gid, 308 "Could not look up group by gid [%"SPRIgid"]: [%d][%s]\n", 309 state->gid, ret, sss_strerror(ret)); 383 gid_t gid; member in struct:simple_group 405 gid_t gid); 220 simple_resolve_group_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct simple_ctx *ctx, struct sss_domain_info *domain, gid_t gid) argument 426 gid_t gid; local 582 gid_t gid; local 649 simple_check_get_groups_primary(struct simple_check_groups_state *state, gid_t gid) argument [all...] |
/sssd/src/responder/common/cache_req/plugins/ |
H A D | cache_req_group_by_id.c | 133 gid_t gid) 137 data = cache_req_data_id(mem_ctx, CACHE_REQ_GROUP_BY_ID, gid); 127 cache_req_group_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, gid_t gid) argument
|