adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

d589950 Issue 49122 - Filtered nsrole that uses nsrole crashes the

Authored and Committed by mreynolds 7 years ago
    Issue 49122 - Filtered nsrole that uses nsrole crashes the
     server
    
    Bug Description:  When evaluating a filter role that uses "nsrole" in the filter
                      crashes the server due infinite loop that leads to a stack
                      overflow.
    
    Fix Description:  Virtual attributes are not allowed to be used in role filters.
                      We were already checking for COS attributes, but not nsrole.
    
                      Also did some minor code cleanup
    
    https://pagure.io/389-ds-base/issue/49122
    
    Reviewed by: nhosoi(Thanks!)
    
    (cherry picked from commit a95889def41d3869692d7259a9213b1f9238f3c8)