/sssd-io/src/util/ |
H A D | session_recording.h | 31 /** Scope of users/groups whose session should be recorded */ 33 SESSION_RECORDING_SCOPE_NONE, /**< None, no users/groups */ 34 SESSION_RECORDING_SCOPE_SOME, /**< Some users/groups specified elsewhere */ 35 SESSION_RECORDING_SCOPE_ALL /**< All users/groups */ 42 * whether to record nobody, everyone, or some users/groups 51 * NULL-terminated list of groups, members of which should have their 55 char **groups; member in struct:session_recording_conf
|
/sssd-io/src/sss_client/ |
H A D | nss_mc_initgr.c | 40 gid_t **groups, long int limit) 70 newgroups = (gid_t *)realloc((*groups), newsize * sizeof(**groups)); 74 *groups = newgroups; 79 SAFEALIGN_COPY_UINT32(&(*groups)[*start], data->gids + i, NULL); 88 gid_t **groups, long int limit) 161 ret = sss_nss_mc_parse_result(rec, start, size, groups, limit); 38 sss_nss_mc_parse_result(struct sss_mc_rec *rec, long int *start, long int *size, gid_t **groups, long int limit) argument 86 sss_nss_mc_initgroups_dyn(const char *name, size_t name_len, gid_t group, long int *start, long int *size, gid_t **groups, long int limit) argument
|
/sssd-io/src/tests/intg/ |
H A D | sssd_id.py | 30 for given user. It will gather groups only provided by sssd. 49 groups = POINTER(c_uint32)() 50 p_groups = pointer(groups) 76 for given user. It will gather groups only provided by sssd. 100 @param int gid ID of groups which should be converted to string. 113 for given user. It will gather groups only provided by sssd. 118 @return (int, int, List[string]) (err, errno, groups) 119 groups should contain names of user groups 124 groups [all...] |
H A D | test_files_provider.py | 388 res, _, groups = sssd_id.get_user_groups(name) 389 return res, groups 797 def groupadd_list(grp_ops, groups): 798 for grp in groups: 807 def user_and_group_setup(pwd_ops, grp_ops, users, groups, reverse): 815 groupadd_list(grp_ops, groups) 817 groupadd_list(grp_ops, groups) 828 res, groups = sssd_id_sync(member) 830 assert group['name'] in groups 906 res, groups [all...] |
/sssd-io/src/tests/ |
H A D | pyhbac-test.py | 79 self.assertCountEqual(el.groups, []) 87 groups = ["abc", "def"] 88 el = pyhbac.HbacRuleElement(groups=groups) 89 self.assertCountEqual(el.groups, groups) 98 groups = ["abc", "def"] 100 self.assertCountEqual(el.groups, []) 101 el.groups = groups [all...] |
H A D | ipa_hbac-tests.c | 86 rule->services->groups = NULL; 92 rule->users->groups = NULL; 98 rule->targethosts->groups = NULL; 104 rule->srchosts->groups = NULL; 120 new_user->groups = talloc_array(new_user, const char *, 3); 121 fail_if(new_user->groups == NULL); 123 new_user->groups[0] = talloc_strdup(new_user->groups, HBAC_TEST_GROUP1); 124 fail_if(new_user->groups[0] == NULL); 126 new_user->groups[ [all...] |
/sssd-io/src/providers/ipa/ |
H A D | ipa_rules_common.h | 49 struct sysdb_attrs **groups; member in struct:ipa_common_entries 61 struct sysdb_attrs **groups);
|
H A D | ipa_hbac_users.c | 72 /* RDN, groups, accounts, and at least one DC= */ 100 /* and the second component is "cn=groups" */ 111 if (strncasecmp("groups", 114 /* The second component value is not "groups" */ 116 "Expected groups second component, got %s\n", 226 new_users->groups = talloc_array(new_users, 229 if (new_users->groups == NULL) { 289 "Original DN matched multiple groups. " 311 new_users->groups[num_groups] = 312 talloc_strdup(new_users->groups, shortnam [all...] |
H A D | ipa_hbac_hosts.c | 97 new_hosts->groups = talloc_array(new_hosts, 100 if (new_hosts->groups == NULL) { 181 new_hosts->groups[num_hostgroups] = 182 talloc_strdup(new_hosts->groups, name); 183 if (new_hosts->groups[num_hostgroups] == NULL) { 202 new_hosts->groups[num_hostgroups] = NULL; 212 new_hosts->groups = talloc_realloc(new_hosts, new_hosts->groups, 214 if (new_hosts->groups == NULL) {
|
H A D | ipa_hbac_common.c | 49 el->groups = talloc_array(el, const char *, 1); 50 if (!el->groups) return ENOMEM; 52 el->groups[0] = NULL; 310 /* Get user the user name and groups, 327 /* Get the PAM service and service groups */ 420 * Get all the groups the user is a member of. 421 * This includes both POSIX and non-POSIX groups. 438 DEBUG(SSSDBG_TRACE_LIBS, "No groups for [%s]\n", users->name); 443 "[%u] groups for [%s]\n", res->count - 1, username); 446 users->groups [all...] |
H A D | ipa_subdomains_ext_groups.c | 93 /* no IPA groups, try next external group. */ 182 char **groups = NULL; local 266 groups = talloc_zero_array(mem_ctx, char *, g_count + 1); 267 if (groups == NULL) { 282 groups[c] = talloc_strdup(groups, entry->key.str); 283 if (groups[c] == NULL) { 301 *_groups = groups; 311 char **groups, 329 for (c = 0; groups[ 308 add_ad_user_to_cached_groups(struct ldb_dn *user_dn, struct sss_domain_info *user_dom, struct sss_domain_info *group_dom, char **groups, bool *missing_groups) argument 619 char **groups = NULL; local 695 char **groups; member in struct:add_ad_membership_state 704 ipa_add_ad_memberships_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_id_ctx *sdap_id_ctx, struct ldb_dn *user_dn, struct sss_domain_info *user_dom, char **groups, struct sss_domain_info *group_dom) argument [all...] |
H A D | ipa_hbac_services.c | 189 * There's no reason to try to process groups 260 /* Look up service groups */ 289 struct sysdb_attrs **groups; local 295 &groups); 304 groups); 330 *target = talloc_steal(state->servicegroups, groups[i]); 448 new_services->groups = talloc_array(new_services, 451 if (new_services->groups == NULL) { 517 "Original DN matched multiple service groups. " 531 new_services->groups[num_servicegroup [all...] |
/sssd-io/src/lib/ipa_hbac/ |
H A D | hbac_evaluator.c | 95 if (el->names == NULL && el->groups == NULL) return false; 98 || (el->groups && el->groups[0] != NULL)) 332 if (rule_el->groups) { 336 for (i = 0; rule_el->groups[i]; i++) { 337 rule_name = (const uint8_t *) rule_el->groups[i]; 339 for (j = 0; req_el->groups[j]; j++) { 340 req_name = (const uint8_t *) req_el->groups[j]; 354 /* Not found in groups either */ 409 if (el->groups) { [all...] |
H A D | ipa_hbac.h | 135 * - Users: user groups (POSIX or non-POSIX) 137 * - Services: PAM service groups. 139 const char **groups; member in struct:hbac_rule_element 150 * Services and service groups 156 * Users and groups for which this 193 * - Users: user groups (POSIX or non-POSIX) 195 * - Services: PAM service groups. 197 const char **groups; member in struct:hbac_request_element 208 * requested, as well as all parent groups 215 * requested, as well as all parent groups [all...] |
/sssd-io/src/sss_client/idmap/ |
H A D | sss_nss_ex.c | 40 gid_t *groups; member in struct:sss_nss_initgr_rep 98 &(inp->result.initgrrep.groups), 148 || inp->result.initgrrep.groups == NULL) { 258 new_groups = realloc(inp->result.initgrrep.groups, 266 inp->result.initgrrep.groups = new_groups; 274 &(inp->result.initgrrep.groups[*(inp->result.initgrrep.start)]), 484 gid_t *groups, int *ngroups, 500 inp.result.initgrrep.groups = malloc(new_ngroups * sizeof(gid_t)); 501 if (inp.result.initgrrep.groups == NULL) { 505 inp.result.initgrrep.groups[ 483 sss_nss_getgrouplist_timeout(const char *name, gid_t group, gid_t *groups, int *ngroups, uint32_t flags, unsigned int timeout) argument [all...] |
/sssd-io/src/tests/cmocka/ |
H A D | test_responder_cache_req.c | 54 } groups[] = {{"test-group1", "S-1-5-21-3623811015-3361044348-30300820-2001", 2001}, variable in typeref:struct:test_group 379 groups[0].short_name, exp_ret); 389 cache_refresh_percent, groups[0].gid, exp_ret); 499 prepare_group(ctx->tctx->dom, &groups[0], 1000, time(NULL)); 503 prepare_group(ctx->tctx->dom, &groups[1], 1000, time(NULL)); 513 prepare_group(domain, &groups[0], 1000, time(NULL)); 1584 prepare_group(domain, &groups[0], 1000, time(NULL)); 1589 mock_parse_inp(groups[0].short_name, NULL, ERR_OK); 1594 check_group(test_ctx, &groups[0], domain); 1606 mock_parse_inp(groups[ [all...] |
/sssd-io/src/sss_client/nfs/ |
H A D | nfsidmap_internal.h | 52 int (*gss_princ_to_grouplist)(char *secname, char *princ, gid_t *groups,
|
/sssd-io/src/python/ |
H A D | pyhbac.c | 296 PyObject *groups; member in struct:__anon17 312 self->groups = PyList_New(0); 313 if (!self->names || !self->groups || !self->category) { 326 Py_CLEAR(self->groups); 341 Py_VISIT(self->groups); 351 hbac_rule_element_set_groups(HbacRuleElement *self, PyObject *groups, 360 const char * const kwlist[] = { "names", "groups", "category", NULL }; 362 PyObject *groups = NULL; local 369 &names, &groups, &category)) { 379 if (groups) { 427 hbac_rule_element_set_groups(HbacRuleElement *self, PyObject *groups, void *closure) argument 1144 PyObject *groups; member in struct:__anon19 1216 PyObject *groups = NULL; local 1273 hbac_request_element_set_groups(HbacRequestElement *self, PyObject *groups, void *closure) argument [all...] |
/sssd-io/src/tools/ |
H A D | sss_useradd.c | 53 { "groups", 'G', POPT_ARG_STRING, NULL, 'G', _("Groups"), NULL }, 62 char *groups = NULL; local 85 groups = poptGetOptArg(pc); 86 if (!groups) { 137 if (groups) { 138 ret = parse_groups(tctx, groups, &tctx->octx->addgroups); 141 "Cannot parse groups to add the user to\n"); 150 "Cannot parse FQDN groups to add the user to\n"); 292 free(groups);
|
H A D | tools_util.c | 133 char **groups) 140 if (!groups) { 144 for (i = 0; groups[i]; ++i) { 145 ret = sss_parse_name(tctx, tctx->snctx, groups[i], &domain, &name); 149 groups[i], ret); 160 talloc_zfree(groups[i]); 161 groups[i] = talloc_strdup(tctx, name); 162 if (groups[i] == NULL) { 132 parse_group_name_domain(struct tools_ctx *tctx, char **groups) argument
|
/sssd-io/src/responder/sudo/ |
H A D | sudosrv_get_sudorules.c | 174 char **groups, 182 filter = sysdb_sudo_filter_expired(NULL, username, groups, uid); 308 char **groups, 329 cli_uid, orig_uid, username, groups, 336 orig_uid, username, groups, 420 char **groups, 437 cli_uid, orig_uid, username, groups, 491 char **groups) 511 ret = sudosrv_expired_rules(state, domain, uid, username, groups, 628 char **groups; member in struct:sudosrv_get_rules_state 170 sudosrv_expired_rules(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, uid_t uid, const char *username, char **groups, struct sysdb_attrs ***_rules, uint32_t *_num_rules) argument 303 sudosrv_cached_rules(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, uid_t cli_uid, uid_t orig_uid, const char *username, char **groups, bool inverse_order, struct sysdb_attrs ***_rules, uint32_t *_num_rules) argument 414 sudosrv_fetch_rules(TALLOC_CTX *mem_ctx, enum sss_sudo_type type, struct sss_domain_info *domain, uid_t cli_uid, uid_t orig_uid, const char *username, char **groups, bool inverse_order, struct sysdb_attrs ***_rules, uint32_t *_num_rules) argument 484 sudosrv_refresh_rules_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct resp_ctx *rctx, struct sss_domain_info *domain, int threshold, uid_t uid, const char *username, char **groups) argument [all...] |
/sssd-io/src/providers/data_provider/ |
H A D | dp_target_id.c | 81 uint32_t *groups; member in struct:dp_initgr_ctx 133 ctx->groups = talloc_array(mem_ctx, uint32_t, res->count); 134 if (ctx->groups == NULL) { 142 ctx->groups[ctx->gnum] = ldb_msg_find_attr_as_uint(res->msgs[i], 145 if (ctx->groups[ctx->gnum] != 0) { 196 &ctx->groups, num, 288 /* If we have groups in config and are not yet enabled */ 289 if (be->sr_conf.groups != NULL && 290 be->sr_conf.groups[0] != NULL && 337 for (conf_group = be->sr_conf.groups; [all...] |
/sssd-io/src/responder/nss/ |
H A D | nss_iface.c | 27 int gnum, uint32_t *groups) 75 * all the original groups */ 76 memcpy(gids, groups, gnum * sizeof(uint32_t)); 87 /* Also invalidate his groups */ 104 /* we couldn't find a match, this means the groups have 114 /* we found an un-cleared groups, this means the groups 125 id = groups[i]; 165 DEBUG(SSSDBG_TRACE_LIBS, "Invalidating all groups in memory cache\n"); 188 uint32_t *groups, 25 nss_update_initgr_memcache(struct nss_ctx *nctx, const char *fq_name, const char *domain, int gnum, uint32_t *groups) argument 184 nss_memorycache_update_initgroups(struct sbus_request *sbus_req, void *data, const char *user, const char *domain, uint32_t *groups, int num_groups) argument [all...] |
/sssd-io/src/providers/ldap/ |
H A D | sdap_async_private.h | 167 struct sysdb_attrs **groups, size_t num_groups, 174 struct sysdb_attrs **groups, 184 struct sysdb_attrs **groups,
|
/sssd-io/src/providers/files/ |
H A D | files_ops.c | 152 struct group **groups = NULL; local 165 groups = talloc_zero_array(mem_ctx, struct group *, 167 if (groups == NULL) { 177 grp = talloc_zero(groups, struct group); 215 groups[n_groups] = grp; 218 groups = talloc_realloc(mem_ctx, 219 groups, 221 talloc_array_length(groups) + FILES_REALLOC_CHUNK); 222 if (groups == NULL) { 230 groups[n_group 674 struct group **groups = NULL; local [all...] |