Lines Matching refs:groups

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 = talloc_array(users, const char *, res->count);
447 if (users->groups == NULL) {
454 /* Only groups from the IPA domain can be referenced from HBAC rules. To
455 * avoid evaluating groups which might even have the same name, but come
482 users->groups[num_groups] = talloc_steal(users->groups, shortname);
484 users->groups[num_groups], users->name);
487 users->groups[num_groups] = NULL;
491 users->groups = talloc_realloc(users, users->groups, const char *,
493 if (users->groups == NULL) {
547 /* We won't be able to identify any groups
563 /* Service is not a member of any groups
572 svc->groups = talloc_array(svc, const char *, el->num_values + 1);
573 if (svc->groups == NULL) {
594 svc->groups[j] = talloc_steal(svc->groups, name);
598 svc->groups[j] = NULL;
639 * So we can't determine it's groups either.
657 /* We won't be able to identify any groups
673 /* Host is not a member of any groups
682 host->groups = talloc_array(host, const char *, el->num_values + 1);
683 if (host->groups == NULL) {
704 host->groups[j] = talloc_steal(host->groups, name);
708 host->groups[j] = NULL;