Hi,

I've set up a new PacketFence server (6.3.0) in VLAN mode and can authenticate 
end users with AD credentials with no issue.
I'm trying to get guest access sorted through sponsors and keep getting the 
following error when the sponsor clicks the link.  The sponsor is in AD and can 
log in to PacketFence fine using AD credentials.  I have ensured that the 
Sponsors are added to the default Portal Porfile sources;

Caught exception in 
captiveportal::Controller::Activate::Email->doSponsorRegistration "Can't locate 
object method "stash" via package "No active sponsor source for this Portal 
Profile." (perhaps you forgot to load "No active sponsor source for this Portal 
Profile."?) at 
/usr/local/pf/html/captive-portal/lib/captiveportal/Base/Controller.pm line 40."

The user is created in PacketFence as expected.  Tail output from 
packetfence.log, authentication.conf and profiles.conf is included below;

~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~
Packetfence.log
~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~

Oct 13 16:33:13 httpd.aaa(2202) INFO: [mac:34:e6:d7:27:e7:af] handling radius 
autz request: from switch_ip => (192.168.XXX.X), connection_type => 
WIRED_MAC_AUTH,switch_mac => (00:9c:02:f5:55:1b), mac => [34:e6:d7:27:e7:af], 
port => 5, username => "34e6d727e7af" (pf::radius::authorize)
Oct 13 16:33:13 httpd.aaa(2202) INFO: [mac:34:e6:d7:27:e7:af] Could not find 
any IP phones through discovery protocols for ifIndex 5 
(pf::Switch::getPhonesDPAtIfIndex)
Oct 13 16:33:13 httpd.aaa(2202) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:13 httpd.aaa(2202) INFO: [mac:34:e6:d7:27:e7:af] is of status 
unreg; belongs into registration VLAN (pf::role::getRegistrationRole)
Oct 13 16:33:13 httpd.aaa(2202) INFO: [mac:34:e6:d7:27:e7:af] (192.168.XXX.X) 
Added VLAN 60 to the returned RADIUS Access-Accept 
(pf::Switch::returnRadiusAccessAccept)
Oct 13 16:33:13 httpd.aaa(2202) INFO: [mac:34:e6:d7:27:e7:af] Updating 
locationlog from accounting request (pf::api::handle_accounting_metadata)
Oct 13 16:33:16 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] Dealing with a 
endpoint / browser with captive-portal detection capabilities while having a 
self-signed SSL certificate. Using HTTP instead of HTTPS 
(pf::web::dispatcher::_handler)
Oct 13 16:33:17 httpd.portal(2732) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:17 httpd.portal(2732) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:17 httpd.portal(2732) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:17 httpd.portal(2732) INFO: [mac:34:e6:d7:27:e7:af] Updating node 
user_agent with useragent: 'Mozilla/5.0 (Windows NT 6.3; WOW64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36' 
(captiveportal::PacketFence::DynamicRouting::Application::process_user_agent)
Oct 13 16:33:17 httpd.portal(2739) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:17 httpd.portal(2739) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:17 httpd.portal(2739) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:22 httpd.portal(2734) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:22 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:22 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:27 httpd.portal(2739) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:27 httpd.portal(2739) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:27 httpd.portal(2739) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:32 httpd.portal(2734) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:32 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:32 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:34 httpd.portal(2734) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:34 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:34 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:34 httpd.portal(2734) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:34 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:34 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:36 httpd.portal(2734) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:36 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:36 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:36 httpd.portal(2734) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:36 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:36 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:42 httpd.portal(2732) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:42 httpd.portal(2732) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:42 httpd.portal(2732) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:42 httpd.portal(2732) ERROR: [mac:34:e6:d7:27:e7:af] Cannot 
restore activation code from user session. 
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::Sponsor::check_activation)
Oct 13 16:33:42 httpd.portal(2732) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:42 httpd.portal(2732) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:42 httpd.portal(2732) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:42 httpd.portal(2732) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:42 httpd.portal(2732) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:42 httpd.portal(2732) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:45 httpd.portal(2739) INFO: [mac:34:e6:d7:27:e7:af] Dealing with a 
endpoint / browser with captive-portal detection capabilities while having a 
self-signed SSL certificate. Using HTTP instead of HTTPS 
(pf::web::dispatcher::_handler)
Oct 13 16:33:56 httpd.portal(2813) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:56 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:56 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:33:56 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] registering  
guest through a sponsor 
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::Sponsor::do_sponsor_registration)
Oct 13 16:33:56 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] Using sources 
local, file1, RESMachines, NoRESMachines, IT_Dept, OS_Pupils, OS_Staff, 
Sponsors for matching (pf::authentication::match)
Oct 13 16:33:56 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] Matched rule 
(OS_Sponsors) in source Sponsors, returning actions. 
(pf::Authentication::Source::match)
Oct 13 16:33:56 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] Adding guest 
person dar...@calbet.co.uk 
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::Sponsor::do_sponsor_registration)
Oct 13 16:33:56 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] new activation 
code successfully generated (pf::activation::create)
Oct 13 16:33:57 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] Email sent to 
dmor...@oundleschool.org.uk (OUNDLESCHOOL.LOCAL: Guest access request) 
(pf::activation::__ANON__)
Oct 13 16:33:57 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] User 
dar...@calbet.co.uk has authenticated on the portal. (Class::MOP::Class:::after)
Oct 13 16:33:57 httpd.portal(2813) INFO: [mac:34:e6:d7:27:e7:af] person 
dar...@calbet.co.uk added (pf::person::person_add)
Oct 13 16:34:02 httpd.portal(2736) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:02 httpd.portal(2736) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:02 httpd.portal(2736) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:04 httpd.portal(2943) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:04 httpd.portal(2943) INFO: [mac:b8:ca:3a:85:ce:ce] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:04 httpd.portal(2943) INFO: [mac:b8:ca:3a:85:ce:ce] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:04 httpd.portal(2943) INFO: [mac:b8:ca:3a:85:ce:ce] 
[34:e6:d7:27:e7:af] Activation code sent to email dmor...@oundleschool.org.uk 
from dar...@calbet.co.uk successfully verified.  for activation type: sponsor 
(pf::activation::validate_code)
Oct 13 16:34:04 httpd.portal(2943) WARN: [mac:b8:ca:3a:85:ce:ce] No active 
sponsor source for profile default 
(captiveportal::PacketFence::Controller::Activate::Email::doSponsorRegistration)
Oct 13 16:34:04 httpd.portal(2943) WARN: [mac:b8:ca:3a:85:ce:ce] Use of 
uninitialized value in subroutine entry at /usr/local/pf/lib/pf/web.pm line 82. 
(pf::web::i18n)
Oct 13 16:34:04 httpd.portal(2943) ERROR: [mac:b8:ca:3a:85:ce:ce] Caught 
exception in captiveportal::Controller::Activate::Email->doSponsorRegistration 
"Can't locate object method "stash" via package "No active sponsor source for 
this Portal Profile." (perhaps you forgot to load "No active sponsor source for 
this Portal Profile."?) at 
/usr/local/pf/html/captive-portal/lib/captiveportal/Base/Controller.pm line 
40." (captiveportal::PacketFence::Controller::Root::end)
Oct 13 16:34:07 httpd.portal(2734) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:07 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:07 httpd.portal(2734) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:12 httpd.portal(2945) INFO: [mac:unknown] Instantiate profile 
default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:12 httpd.portal(2945) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)
Oct 13 16:34:12 httpd.portal(2945) INFO: [mac:34:e6:d7:27:e7:af] Instantiate 
profile default (pf::Portal::ProfileFactory::_from_profile)

~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~
authentication.conf
~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~

[local]
description=Local Users
dynamic_routing_module=AuthModule
type=SQL

[file1]
description=Legacy Source
stripped_user_name=yes
path=/usr/local/pf/conf/admin.conf
dynamic_routing_module=AuthModule
type=Htpasswd

[file1 rule admins]
description=All admins
class=administration
match=all
action0=set_access_level=ALL

[sms]
description=SMS-based registration
sms_carriers=100056,100057,100061,100058,100059,100060,100062,100063,100071,100064,100116,100066,100117,100112,100067,100065,100068,100069,100070,100118,100115,100072,100073,100074,100075,100076,100077,100085,100086,100080,100079,100081,100083,100082,100084,100087,100088,100111,100089,100090,100091,100092,100093,100094,100095,100096,100098,100097,100099,100100,100101,100113,100102,100103,100104,100106,100105,100107,100108,100109,100114,100110,100078,100122
dynamic_routing_module=AuthModule
type=SMS
create_local_account=no

[sms rule catchall]
description=
class=authentication
match=all
action0=set_role=guest
action1=set_access_duration=1D

[email]
description=Email-based registration
dynamic_routing_module=AuthModule
email_activation_timeout=10m
type=Email
create_local_account=yes
allow_localdomain=yes

[email rule catchall]
description=
class=authentication
match=all
action0=set_role=guest
action1=set_access_duration=1D


[sponsor]
description=Sponsor-based registration
dynamic_routing_module=AuthModule
sponsorship_cc=sysad...@oundleschool.org.uk
type=SponsorEmail
create_local_account=yes
allow_localdomain=no

[sponsor rule catchall]
description=
class=authentication
match=all
action0=set_role=guest
action1=set_access_duration=10m

[null]
description=Null Source
dynamic_routing_module=AuthModule
type=Null
email_required=no

[null rule catchall]
description=catchall
class=authentication
match=all
action0=set_role=guest
action1=set_access_duration=1D

[RESMachines]
description=Domained PC's with RES
password=XXXXXXXXXXXXXXXXXXXX
scope=sub
binddn=CN=PF,OU=System Accounts,OU=Generic Accounts,DC=PFTEST,DC=local
basedn=OU=RESMachines,DC=PFTEST,DC=local
email_attribute=mail
usernameattribute=servicePrincipalName
connection_timeout=5
stripped_user_name=yes
encryption=none
cache_match=1
dynamic_routing_module=AuthModule
port=389
type=AD
host=192.168.XXX.XXX

[RESMachines rule ADMachines]
description=Authentication check for machines
class=authentication
match=all
action0=set_role=default
action1=set_access_duration=1Y

[NoRESMachines]
description=Domained PC's without RES
password=XXXXXXXXXXXXXXXXXXXX
scope=sub
binddn=CN=PF,OU=System Accounts,OU=Generic Accounts,DC=PFTEST,DC=local
basedn=OU=RESExempt,DC=PFTEST,DC=local
email_attribute=mail
usernameattribute=servicePrincipalName
connection_timeout=5
stripped_user_name=yes
encryption=none
cache_match=1
dynamic_routing_module=AuthModule
port=389
type=AD
host=192.168.XXX.XXX

[NoRESMachines rule NoRESMachines]
description=Allow domained machines without RES access to network
class=authentication
match=all
action0=set_role=default
action1=set_access_duration=3M

[IT_Dept]
description=IT_Dept
password=XXXXXXXXXXXXXXXXXXXX
scope=sub
binddn=CN=PF,OU=System Accounts,OU=Generic Accounts,DC=PFTEST,DC=local
basedn=OU=Limited Group Policy,DC=PFTEST,DC=local
email_attribute=mail
usernameattribute=sAMAccountName
connection_timeout=5
stripped_user_name=yes
encryption=none
cache_match=1
dynamic_routing_module=AuthModule
port=389
type=AD
host=192.168.XXX.XXX

[IT_Dept rule DefaultITRole]
description=
class=authentication
match=all
action0=set_role=IT_Staff
action1=set_access_duration=8h

[OS_Pupils]
description=Senior School Pupils
password=XXXXXXXXXXXXXXXXXXXX
scope=sub
binddn=CN=PF,OU=System Accounts,OU=Generic Accounts,DC=PFTEST,DC=local
basedn=OU=Pupils,OU=OS,DC=PFTEST,DC=local
email_attribute=mail
usernameattribute=sAMAccountName
connection_timeout=5
stripped_user_name=yes
encryption=none
cache_match=1
dynamic_routing_module=AuthModule
port=389
type=AD
host=192.168.XXX.XXX

[OS_Pupils rule Pupils_Default]
description=Senior School Pupils Default
class=authentication
match=all
action0=set_role=OS_Pupils
action1=set_access_duration=3M

[OS_Staff]
description=Senior School Staff
password=XXXXXXXXXXXXXXXXXXXX
scope=sub
binddn=CN=PF,OU=System Accounts,OU=Generic Accounts,DC=PFTEST,DC=local
basedn=OU=Oundle,DC=PFTEST,DC=local
email_attribute=mail
usernameattribute=sAMAccountName
connection_timeout=5
stripped_user_name=yes
encryption=none
cache_match=1
dynamic_routing_module=AuthModule
port=389
type=AD
host=192.168.XXX.XXX

[OS_Staff rule OS_Staff_Default_Rule]
description=Default Access Rule for Staff
class=authentication
match=all
action0=set_role=OS_Staff
action1=set_access_duration=3M

[Sponsors]
description=Sponsors for Oundle School
password=XXXXXXXXXXXXXXXXXXXX
scope=sub
binddn=CN=PF,OU=System Accounts,OU=Generic Accounts,DC=PFTEST,DC=local
basedn=OU=Limited Group Policy,DC=PFTEST,DC=local
email_attribute=mail
usernameattribute=sAMAccountName
connection_timeout=5
stripped_user_name=yes
encryption=none
dynamic_routing_module=AuthModule
port=389
type=AD
host=192.168.XXX.XXX

[Sponsors rule OS_Sponsors]
description=Users with sponsor level
class=administration
match=all
action0=mark_as_sponsor=1

~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~
profiles.conf
~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~

[default]
description=Default Profile
logo=/common/packetfence-white.png
redirecturl=http://www.google.co.uk
always_use_redirecturl=disabled
locale=en_US
nbregpages=0
filter_match_style=any
block_interval=10m
sms_pin_retry_limit=0
sms_request_limit=0
login_attempt_limit=0
root_module=oundle_school_root_module
billing_tiers=
dot1x_recompute_role_from_portal=enabled
preregistration=disabled
autoregister=disabled
scans=
reuse_dot1x_credentials=0
sources=Sponsors,local,OS_Staff,OS_Pupils,IT_Dept
provisioners=

[RESMachines]
locale=
filter=connection_type:Ethernet-EAP
description=RESMachines from AD
sources=RESMachines,Sponsors

[NoRESMachines]
locale=
filter=connection_type:Ethernet-EAP
description=Domained PC's without RES
sources=NoRESMachines,Sponsors

Kind regards

Darren Morgan
Systems Manager
Oundle School
? Please consider the environment before printing this e-mail


This email is sent from either Oundle School or Laxton Junior School for The 
Corporation of Oundle School and is intended only for the addressee named 
above.  The Corporation of Oundle School is a Charity incorporated under Royal 
Charter RC000396 and charity number 309921.  www.oundleschool.org.uk
 Scanned by iCritical.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to