I restarted the service but did not restart the server. After just now
restarting the server it is working as expected. I apologize for missing
such a basic troubleshooting step and wasting your time.

Thanks,
James

On Thu, Nov 15, 2012 at 12:58 PM, Derek Wuelfrath <[email protected]>wrote:

>  James,
> After the changes you made to switches.conf and vlan/custom.pm, did you
> restart the PacketFence services ?
>
> On 2012-11-13 4:16 PM, James Spencer wrote:
>
> Derek,
> Here are the files you requested.
>
>
> On Tue, Nov 13, 2012 at 2:20 PM, Derek Wuelfrath <[email protected]>wrote:
>
>>  James, actually I'm sorry, I misread your configuration.
>> Can you provide both lib/pf/vlan.pm and lib/pf/vlan/custom.pm
>>
>> Thanks!
>>
>> On 2012-11-13 1:28 PM, James Spencer wrote:
>>
>> Hi Derek,
>> The category associated with this mac address is "default" I have
>> normalVlan set to 1 in switches.conf under the default section and nowhere
>> else in the file.
>>
>> [default]
>> vlans = 1,4,5,6,7,80,
>> normalVlan = 1
>> registrationVlan = 4
>> isolationVlan = 5
>> macDetectionVlan = 6
>> guestVlan = 80
>> customVlan1 = 7
>>
>> I appreciate your assistance.
>>
>> Thanks,
>> James
>>
>> On Mon, Nov 12, 2012 at 11:09 AM, Derek Wuelfrath 
>> <[email protected]>wrote:
>>
>>>  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 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 
>>> [email protected]https://lists.sourceforge.net/lists/listinfo/packetfence-users
>>>
>>>
>>> --
>>> Derek [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
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Monitor your physical, virtual and cloud infrastructure from a single
>> web console. Get in-depth insight into apps, servers, databases, vmware,
>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>> Pricing starts from $795 for 25 servers or 
>> applications!http://p.sf.net/sfu/zoho_dev2dev_nov
>>
>>
>>
>> _______________________________________________
>> PacketFence-users mailing 
>> [email protected]https://lists.sourceforge.net/lists/listinfo/packetfence-users
>>
>>
>> --
>> Derek [email protected] :: +1.514.447.4918 (x110) :: 
>> www.inverse.ca
>> Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
>> (www.packetfence.org)
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Monitor your physical, virtual and cloud infrastructure from a single
>> web console. Get in-depth insight into apps, servers, databases, vmware,
>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>> Pricing starts from $795 for 25 servers or applications!
>> http://p.sf.net/sfu/zoho_dev2dev_nov
>> _______________________________________________
>> PacketFence-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or 
> applications!http://p.sf.net/sfu/zoho_dev2dev_nov
>
>
>
> _______________________________________________
> PacketFence-users mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/packetfence-users
>
>
> --
> Derek [email protected] :: +1.514.447.4918 (x110) :: 
> www.inverse.ca
> Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
> (www.packetfence.org)
>
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> PacketFence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to