adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

9b959b9 Ticket 449 - Allow macro aci keywords to be case-insensitive

3 files Authored by nkinder 7 years ago, Committed by nhosoi 7 years ago,
    Ticket 449 - Allow macro aci keywords to be case-insensitive
    
    This allows the macro aci keywords ($attr and $dn) to be
    case-insensitive.  We were allowing the keywords to be set
    regardless of case, but we were only processing them properly
    if they were lowercase.  This patch makes the processing
    case-insensitive as well.
    
    I also added validation of the attribute name that is appended
    to the $attr keyword.  We previously performed no validation.  The
    patch ensures that the attribute name is legal per RFC 4512, but
    we don't check if it is defined in the schema.  This will allow an
    aci to be set prior to adding the attribute to the schema.  It
    also allows attributes that are used in an extensibleObject entry
    to work properly with macro acis.
    
    (cherry picked from commit 95214606df95deb1cf9a30044fe64f780c030b34)