4a01095 Ticket 50053 - Subtree password policy overrides a user-defined password policy

Authored and Committed by mreynolds a year ago
    Ticket 50053 - Subtree password policy overrides a user-defined password policy
    
    Bug Description:
    
    When an entry contains an attribute that is also defined by a cos definition
    a specifier defines which values win: the real values that are in the entry or the
    virtual values that are cos defined.
    The specifier 'default' means that the real values are the winners (returned).
    'operational-default' has the same behavior but just specify that the attribute
    is operational.
    The bug is that when real values exists, the 'operational-default' specifier
    drops the real values in favor of the virtual ones.
    
    Fix Description:
    
    Change the test, so that real values are not kept for 'operation-default'
    Note: the full routine cos_cache_query_attr looks quite messy and error prone
    It would be nice to rewrite it when we have time
    
    https://pagure.io/389-ds-base/issue/50053