Hello,

I am using PacketFence Version 5.5.2.

I am having an issue with the Rules within Sources > External Sources > Rules. 
Particularly with applying Conditions.

If I create a single rule with no Conditions, and Actions that set a Role and 
Access Duration, everything works as expected.

I am trying to create rules and conditions that will place users logging in 
from our Wired network into one Role, and users logging in from our Wireless 
Network into a different Role.

If I set a condition where "Connection type" "is" and choose "WIRED_MAC_AUTH", 
(with the same actions) then PacketFence errors with "Got no role for 
username..."

The RADIUS request is passing the connection type correctly as "connection_type 
=> WIRED_MAC_AUTH"

Here is a snippet from the log files:

handling radius autz request: from switch_ip => (10.1.0.20), connection_type => 
WIRED_MAC_AUTH,switch_mac => (Unknown), mac => [00:22:64:52:f7:cb], port => 1, 
username => "00226452f7cb" (pf::radius::authorize)
is of status unreg; belongs into registration VLAN 
(pf::vlan::getRegistrationVlan)
(10.1.0.20) Added VLAN 10 to the returned RADIUS reply 
(pf::Switch::returnRadiusAccessAccept)
(10.1.0.20) Returning ACCEPT with VLAN 10 and role  
(pf::Switch::returnRadiusAccessAccept)
Instantiate profile default (pf::Portal::ProfileFactory::_from_profile)
Memory configuration is not valid anymore for key 
resource::authentication_sources in local cached_hash 
(pfconfig::cached::is_valid)
nstantiate profile default (pf::Portal::ProfileFactory::_from_profile)
Memory configuration is not valid anymore for key 
resource::authentication_lookup in local cached_hash 
(pfconfig::cached::is_valid)
Validating mandatory and custom fields for 'Guest-Email' based 
self-registration 
(captiveportal::PacketFence::Controller::Signup::validateMandatoryFields)
Instantiate profile default (pf::Portal::ProfileFactory::_from_profile)
Memory configuration is not valid anymore for key 
resource::authentication_sources in local cached_hash 
(pfconfig::cached::is_valid)
Instantiate profile default (pf::Portal::ProfileFactory::_from_profile)
Memory configuration is not valid anymore for key 
resource::authentication_lookup in local cached_hash 
(pfconfig::cached::is_valid)
Validating mandatory and custom fields for 'Guest-Email' based 
self-registration 
(captiveportal::PacketFence::Controller::Signup::validateMandatoryFields)
registering 00:22:64:52:f7:cb guest by email 
(captiveportal::PacketFence::Controller::Signup::doEmailSelfRegistration)
Got no role for username "*redacted*@*redacted*.com" 
(captiveportal::PacketFence::Controller::Authenticate::setRole)

Any thoughts?

Alan Shoop
Senior Network Engineer
Office of Information Technology
Wilson College
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to