I had a problem similar to this, and it ended up being the "lc" in custom.pm.
If you are using named categories, the custom.pm (out of the box anyway)
lowercases before testing the match.
Nick
From: Jose [mailto:[email protected]]
Sent: Friday, July 08, 2011 3:21 AM
To: [email protected]
Subject: [Packetfence-users] PF doing nothing in new ports / custom
vlanassignment
Hello,
I am new to Packetfence and I've been testing it in a lab environment, but now
i have several problems and i hope you can help me with them.
I'm running packetfence 2.2.1 in CentOS with a Cisco 3560 switch with
port-security.
1) I got PF running correctly some time ago but now it's only working in the
ports it already knows the MAC addresses of the connected devices, if i connect
these or new devices to a new switch port, the switch generates the
port-security traps, but PF does nothing and the new nodes doesn't appear on
the wed GUI. No entry in packetfence log neither.
2)I edited custom.pm file in order to asign vlans that correspon exactly with
the name of the categories (that will be the vlan numbers), so i don't need to
edit the customs vlans in switches.conf neither write a lot of "ifs" in the
code, one for each category.
The new code is:
my $correctVlan=1;
if (ref($node_info) eq 'HASH' && defined($node_info->{'category'}) &&
lc($node_info->{'category'}) > 1) {
$correctVlan = lc($node_info->{'category'});
}
return $correctVlan;
Everything is working fine when i use a category name with numbers, but when i
try to change to "default" or "No category", an error messages appear refering
to the "if" line (i think it doesn't like letters). Even that, the vlan changes
and it works fine, but i would like to avoid this message appearing.
3) I would also like to know if it's possible to delete a node in the web GUI
that it is not connected anymore.
Thanks a lot for your help!
José
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users