URL: https://github.com/SSSD/sssd/pull/234
Title: #234: HBAC: Use memberof ASQ search instead of originalMemberOf

jhrozek commented:
"""
On Fri, May 12, 2017 at 04:48:29AM -0700, sumit-bose wrote:
> sumit-bose commented on this pull request.
> 
> 
> 
> > -            DEBUG(SSSDBG_TRACE_LIBS, "Added group [%s] for user [%s]\n",
> -                      users->groups[num_groups], users->name);
> -            num_groups++;
> +        }
> +
> +        /* ..the rest should be a DN in the form of:
> +         *      cn=groups,cn=ipa_domain_name,cn=sysdb
> +         *  If not, just skip this DN. Skipping is safe here, because the 
> rules
> +         *  only allow access, never deny, so at worst the user would be 
> denied
> +         *  legitimate access
> +         */
> +        if (ldb_dn_compare(ipa_groups_basedn, member_group_container) != 0) {
> +            DEBUG(SSSDBG_FUNC_DATA, "Skipping non-IPA group %s\n", 
> fqgroupname);
> +            continue;
> +        }
> +
> 
> Most of the groups will be skipped, so reading fqgroupname here and not 
> earlier would save some cycles.

Done (locally so far)

"""

See the full comment at 
https://github.com/SSSD/sssd/pull/234#issuecomment-301746063
_______________________________________________
sssd-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to