Hello Amanda,
$Config <http://code.metager.de/source/s?defs=Config&project=inverse-inc>{'guests_self_registration'}{'sponsor_authentication'} is a configuration parameter, so in the pf.conf in the [guests_self_registration] add something like that sponsor_authentication=ldap

It will use the authentication module in /usr/local/pf/conf/authentication/ldap.pm

Regards
Fabrice

Le 2013-04-17 11:02, Berlin, Amanda - Information Systems a écrit :

Update: I've replaced my custom html with the original file and it's still happening. The check it seems to fail on is in /pf/lib/pf/web/guest.pm

*my* $authenticator <http://code.metager.de/source/s?defs=authenticator&project=inverse-inc> = pf <http://code.metager.de/source/s?defs=pf&project=inverse-inc>::web <http://code.metager.de/source/s?defs=web&project=inverse-inc>::auth <http://code.metager.de/source/s?defs=auth&project=inverse-inc>::instantiate <http://code.metager.de/source/s?defs=instantiate&project=inverse-inc>($Config <http://code.metager.de/source/s?defs=Config&project=inverse-inc>{'guests_self_registration'}{'sponsor_authentication'});

*return* ($FALSE <http://code.metager.de/source/s?defs=FALSE&project=inverse-inc>, $*GUEST* <http://code.metager.de/source/xref/inverse-inc/packetfence/lib/pf/web/guest.pm#GUEST>::ERROR_SPONSOR_UNABLE_TO_VALIDATE <http://code.metager.de/source/s?defs=ERROR_SPONSOR_UNABLE_TO_VALIDATE&project=inverse-inc>) *if* (!*defined*($authenticator <http://code.metager.de/source/s?defs=authenticator&project=inverse-inc>));

Unfortunately, I have no idea how this helps me...

Amanda Berlin

Hey all,

So I'm currently trying to modify the guest registration page. My two goals were to specify the single sponsor email address in a hidden field and to add a field for what conference room the guest is in. I am getting "Unable to validate your sponsor at the moment". The value of the email address is valid, I've just replaced it. J I've successfully been able to send a registration email prior to this.

section of pf.conf:

[guests_self_registration]

modes=sponsor

access_duration=1D

mandatory_fields=firstname,lastname,organization,phone,email

sponsors_only_from_localdomain=no

section of usr/local/pf/html/captive-portal/template/guest.html:

          [% IF sponsored_guest_allowed %]

<input class="field" name="sponsor_email" type="hidden" value="[email protected] <mailto:[email protected]>" /><br/>

            [% IF email_guest_allowed || sms_guest_allowed %]

              <em>Required for sponsored network access only</em>

           [% END %]

        <span>[% i18n("Conference Room") %]</span>

            <select name="conferenceroom">

                <option value="1">I.S. Conference Room</option></select>

Thanks for any help!

Amanda Berlin



------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users


--
Fabrice Durand
[email protected] ::  +1.514.447.4918 (x135) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://packetfence.org)

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to