If using AuthLDAP2 and one attribute is repeated in the LDAP response, only the first one is currently added to the Radius query with AuthAttrDef, unless using GENERIC. The following small patch will add multiple Radius attribute/values for an LDAP attribute that occurs multiple times. Maybe this is helpful for others, too. Robert
*** AuthLDAP2.pm.orig Thu Apr 26 01:47:28 2001 --- AuthLDAP2.pm Mon Jul 2 17:10:08 2001 *************** *** 423,429 **** } else { ! $user->get_check->add_attr($attrib, $$vals[0]); } } elsif ($type eq 'reply') --- 423,431 ---- } else { ! foreach my $val (@$vals) { ! $user->get_check->add_attr($attrib, $val); ! } } } elsif ($type eq 'reply') *************** *** 434,440 **** } else { ! $user->get_reply->add_attr($attrib, $$vals[0]); } } elsif ($type eq 'request') --- 436,444 ---- } else { ! foreach my $val (@$vals) { ! $user->get_reply->add_attr($attrib, $val); ! } } } elsif ($type eq 'request') *************** *** 445,451 **** } else { ! $p->add_attr($attrib, $$vals[0]); } } } --- 449,457 ---- } else { ! foreach my $val (@$vals) { ! $p->add_attr($attrib, $val); ! } } } }