PacketFence - BTS - PacketFence
View Issue Details
0001683PacketFencecaptive portalpublic2013-08-13 09:272013-09-13 10:08
Sylvain 
francis 
normalmajorhave not tried
resolvedfixed 
4.0.5 
4.0.6 
0001683: Self-registration page shown even if no external source exists
When updating from 4.0.1 to 4.0.5-2 there is a new feature :
"Self-registration is now enabled when a profile has at least one external authentication source" introduced in 4.0.4

I have no external source, but still get the guest/self-registration page.
I was feeling lucky and tried creating then removing external sources, or simply creating new internal sources, but it didn't work either.

I tried to add sources to the profile but was blocked by another bug : http://www.packetfence.org/bugs/view.php?id=1682 [^]

This bug is tricky as I also encouter this one :
http://www.packetfence.org/bugs/view.php?id=1681 [^]

Best regards,

Sylvain
No tags attached.
Issue History
2013-08-13 09:27SylvainNew Issue
2013-08-13 09:39SylvainNote Added: 0003395
2013-08-19 10:59SylvainNote Added: 0003417
2013-08-19 10:59SylvainNote Added: 0003418
2013-09-13 10:08francisStatusnew => resolved
2013-09-13 10:08francisFixed in Version => 4.0.6
2013-09-13 10:08francisResolutionopen => fixed
2013-09-13 10:08francisAssigned To => francis

Notes
(0003395)
Sylvain   
2013-08-13 09:39   
Relevant lines in packetfence.log:

Aug 13 15:06:33 redir.cgi(0) INFO: aa:bb:cc:dd:ee:ff being redirected (ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_html_captive_2dportal_redir_2ecgi::handler)
Aug 13 15:06:33 redir.cgi(0) INFO: aa:bb:cc:dd:ee:ff redirected to guests self registration page (ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_html_captive_2dportal_redir_2ecgi::handler)
Aug 13 15:06:33 redir.cgi(0) INFO: generate_selfregistration_page (pf::web::guest::generate_selfregistration_page)
Aug 13 15:06:33 redir.cgi(0) ERROR: No source of type 'SMS' defined for profile 'default' (pf::Portal::Profile::getSourceByType)

This line also seems to be linked in portal_error_log (it appears at the same time):

Use of uninitialized value in subroutine entry at /usr/local/pf/lib/pf/web/dispatcher.pm line 68.
(0003417)
Sylvain   
2013-08-19 10:59   
After solving http://www.packetfence.org/bugs/view.php?id=1682, [^] I can say it happens only when no authentication source is selected.

Therefore the problem was caused by bug 1682.

Here, there's no important problem (it works fine if you have selected a source), but we can think about the behaviour of the captive portal when no authentication source is selected.
(0003418)
Sylvain   
2013-08-19 10:59   
By the way, I can't decrease severity ;)