LDAP map_ldap_attributes function modified