James,
What is the category associated with that mac ? (b8:27:eb:ba:41:15)
The error message state that the returned VLAN is *empty* which means
that the mac address didn't matched any category and since you don't
have a default return value for getNormalVlan, PF is not returning any
vlan...
On 2012-11-09 9:44 AM, James Spencer wrote:
Hello Everyone,
Newbie here trying out PacketFence for the first time.
Background: PacketFence setup with a Cisco Catalyst 3560 with the
latest 15 series ios. Setup the switch for Radius and mab. PacketFence
and the switch were working great together before I started working
with vlan categories.
Here is my custom.pm <http://custom.pm> settings:
sub getNormalVlan {
#Category: default
if (defined($node_info->{'category'}) &&
lc($node_info->{'category'}) eq "default") {
return $switch->getVlanByName('normalVlan');
}
#Custom Category: BYOD
if (defined($node_info->{'category'}) &&
lc($node_info->{'category'}) eq "BYOD") {
return $switch->getVlanByName('customVlan1');
}
#Custom Category: guest
if (defined($node_info->{'category'}) &&
lc($node_info->{'category'}) eq "guest") {
return $switch->getVlanByName('guestVlan');
}
return $switch->getVlanByName('normalVlan');
}
Problem: When I connect a device to the switch I get the following in
the packetfence.log
Nov 09 09:33:50 pf::WebAPI(2722) INFO: MAC: b8:27:eb:ba:41:15, PID: 1,
Status: reg. Returned VLAN: (pf::vlan::fetchVlanForNode)
Nov 09 09:33:50 pf::WebAPI(2722) WARN: new VLAN is not a managed VLAN
-> Returning FAIL. Is the target vlan in the vlans=... list?
(pf::radius::authorize)
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
--
Derek Wuelfrath
[email protected] :: +1.514.447.4918 (x110) :: www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
(www.packetfence.org)
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users