eed2073 LDAP: Try all attributes when saving an entry

Authored and Committed by jhrozek 9 years ago
    LDAP: Try all attributes when saving an entry
    
    The same LDAP attribute might be used several times for the same user or
    group attribute. For instance, some servers have a global "ID" number
    that should be used for both UID and GID. However, our
    sdap_parse_entry() function only copied the LDAP attribute to the first
    matching sysdb attribute.
    
    This patch adds a second nested loop that checks if any of the other
    LDAP attributes are eligible.
    
    Reviewed-by: Michal Židek <mzidek@redhat.com>
    
        
file modified
+24 -3
file modified
+55 -0