Hi,
use pf::util; is listed at the top of the file. I'm sorry that I didn't
include that. I just made changes to the default file, I did not create a
new one from scratch.
On Mon, Mar 9, 2015 at 8:57 AM, Fabrice DURAND <[email protected]> wrote:
> Hi,
> Correction in red
>
> Fabrice
>
> Le 2015-03-09 08:53, D Somers a écrit :
>
> Hello,
>
> I have configured the captive portal using the null source so that a user
> only needs to enter an email address, accept the terms of use and click the
> Login button in order to access the network.
>
> I am trying to configure Packetfence to send an email to the admin which
> contains the email address used to authenticate to the network. Here are
> changes I've made to /lib/pf/Authentication/Source/NullSource.pm:
> use pf::util;
> sub authenticate {
> my ($self, $username, $password) = @_;
> if (isdisabled($self->email_required)) {
> return ($TRUE, 'Successful authentication using null source.');
> } elseif (Email::Valid->address($username) ) {
> my %data = ( 'message' => $username );
> pf::util::pfmailer(%data);
> return ($TRUE, 'Successful authentication using null
> source.');
> }
> return ($FALSE, 'Invalid email address provided.');
> }
>
> With this code when a user authenticates to the network they are able to
> successfully but I do not receive any email. Looking at the logs it doesn't
> look like it is even trying to send email. I have checked Packetfence and
> Postfix logs and see nothing about sent email.
>
> Can somebody please help point me in the right direction?
>
>
> Thanks!
>
> David
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
>
>
>
> _______________________________________________
> PacketFence-users mailing
> [email protected]https://lists.sourceforge.net/lists/listinfo/packetfence-users
>
>
>
> --
> Fabrice [email protected] :: +1.514.447.4918 (x135) :: www.inverse.ca
> Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence
> (http://packetfence.org)
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> PacketFence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users