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:

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 ($TUE, '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 list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to