PacketFence - BTS - PacketFence
View Issue Details
0001426PacketFencehardware modulespublic2012-04-17 14:372012-04-23 11:01
fgaudreault 
obilodeau 
urgentmajoralways
closedfixed 
devel 
3.3.23.3.2 
281279277cb8c9e792a016cede8b56c37f2c4454
0001426: RADIUS CoA Broken on WLC 5500
When configuring CoA for the WLC 5500, I had this error :
DEBUG - instantiating new SwitchFactory object
DEBUG - reading config file /usr/local/pf/conf/switches.conf
DEBUG - creating new pf::SNMP::Cisco::WLC_5500 object
DEBUG - start handling 'deauthenticate' command
Odd number of elements in anonymous hash at /usr/local/pf/lib/pf/SNMP.pm line
    2615 (0000001)
    (W misc) You specified an odd number of elements to initialize a hash,
    which is odd, because hashes come in key/value pairs.
    
Use of uninitialized value in concatenation (.) or string at
    /usr/lib/perl5/vendor_perl/5.8.8/Net/Radius/Packet.pm line 391 (0000002)
    (W uninitialized) An undefined value was used as if it were already
    defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.
    
    To help you figure out what was undefined, perl tells you what operation
    you used the undefined value in. Note, however, that perl optimizes your
    program and the operation displayed in the warning may not necessarily
    appear literally in your program. For example, "that $foo" is
    usually optimized into "that " . $foo, and the warning will refer to
    the concatenation (.) operator, even though there is no . in your
    program.
    
Unknown RADIUS tuple HASH(0x1a57eed0) =>
 at /usr/local/pf/lib/pf/util/radius.pm line 131
WARN - Unable to perform RADIUS Disconnect-Request. Disconnect-NAK received with Error-Cause: Missing-Attribute.
DEBUG - finished handling 'deauthenticate' command

It appears to be related to the way we handle the additional attributes.
To fix, change :
$attributes_ref = { %$attributes_ref, $add_attributes_ref };

To:
$attributes_ref = { %$attributes_ref, %$add_attributes_ref };
No tags attached.
related to 0001437closed obilodeau RADIUS-based Disconnects not working for Aruba, AeroHIVE 
Issue History
2012-04-17 14:37fgaudreaultNew Issue
2012-04-18 16:34obilodeauStatusnew => assigned
2012-04-18 16:34obilodeauAssigned To => obilodeau
2012-04-18 16:35obilodeauNote Added: 0002666
2012-04-18 16:35obilodeauPrioritynormal => urgent
2012-04-18 16:35obilodeauSeverityminor => major
2012-04-19 11:24obilodeaugit revision => 281279277cb8c9e792a016cede8b56c37f2c4454
2012-04-19 11:24obilodeauNote Added: 0002668
2012-04-19 11:24obilodeauStatusassigned => resolved
2012-04-19 11:24obilodeauFixed in Version => +1
2012-04-19 11:24obilodeauResolutionopen => fixed
2012-04-23 11:00obilodeauTarget Version => 3.3.2
2012-04-23 11:00obilodeauFixed in Version+1 => 3.3.2
2012-04-23 11:01obilodeauNote Added: 0002681
2012-04-23 11:01obilodeauStatusresolved => closed
2012-04-30 13:42obilodeauRelationship addedrelated to 0001437

Notes
(0002666)
obilodeau   
2012-04-18 16:35   
This affects all CoA based hardware modules. Increasing priority.
(0002668)
obilodeau   
2012-04-19 11:24   
fixed in stable with a regression test
(0002681)
obilodeau   
2012-04-23 11:01   
fix released in 3.3.2