218a261 Extend ipa-range-check DS plugin to handle range types

1 file Authored by tbabej 9 years ago, Committed by mkosek 9 years ago,
    Extend ipa-range-check DS plugin to handle range types
    
    The ipa-range-check plugin used to determine the range type depending
    on the value of the attributes such as RID or secondary RID base. This
    approached caused variety of issues since the portfolio of ID range
    types expanded.
    
    The patch makes sure the following rules are implemented:
        * No ID range pair can overlap on base ranges, with exception
          of two ipa-ad-trust-posix ranges belonging to the same forest
        * For any ID range pair of ranges belonging to the same domain:
            * Both ID ranges must be of the same type
            * For ranges of ipa-ad-trust type or ipa-local type:
                * Primary RID ranges can not overlap
            * For ranges of ipa-local type:
                * Primary and secondary RID ranges can not overlap
                * Secondary RID ranges cannot overlap
    
    For the implementation part, the plugin was extended with a domain ID
    to forest root domain ID mapping derivation capabilities.
    
    https://fedorahosted.org/freeipa/ticket/4137
    
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>