Hello

Thanks for the suggestions to my problem but here's the patch which 
*really* solves it:

Symtom:
  logfile: LDAP got radiuscisco-avpair: ip:idletime=89 ip:addr=1.2.3.4
  output:  cisco-avpair = "ip:idletime=89" (and no more)

Reason:
  For some strange reason there's always only the first element of the 
  return array used.

Patch:
--- AuthLDAP2.pm.orig   Mon May 29 16:17:16 2000
+++ AuthLDAP2.pm        Mon May 29 16:27:58 2000
@@ -408,7 +408,12 @@
                             }
                            else
                            {
-                               $user->get_reply->add_attr($attrib, $vals[0]);
+                               # Sometimes we like to have more than one attribute 
+with
+                               # the same name.
+                               my($value);
+                               foreach $value (@vals) {
+                                       $user->get_reply->add_attr($attrib, $value);
+                               }
                            }
                        }
                    }

(BTW: Mike, you're indent-style is horrible :-))

bye,

 -christian-

-- 
Christian Hammers    WESTEND GmbH - Aachen und Dueren     Tel 0241/701333-0
[EMAIL PROTECTED]     Internet & Security for Professionals    Fax 0241/911879

===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to