Developers guide

Chapter 7
Copyright © 2008-2013 Inverse inc.
Optional components 57
Configuration
Guest self-registration
It is possible to modify the default values of the guest self-registration feature by editing /usr/local/
pf/conf/pf.conf.
Default values are located in /usr/local/pf/conf/pf.conf.defaults and documentation for every
settings is available in /usr/local/pf/conf/documentation.conf.
[guests_self_registration]
mandatory_fields=firstname,lastname,phone,email
guest_pid=email
preregistration=disabled
sponsorship_cc=
These parameters can also be configured from the Configuration � Self Registration section of the Web
admin interface.
Available registration modes are defined on a per-portal-profile basis. These are configurable from
Configuration Portal Profiles and Pages. To disable the self-registration feature, simply remove all self-
registration sources from the portal profile definition. Notice however that if your default portal profile
has no source, it will use all authentication sources.
Caution
A valid MTA configured in PacketFence is needed to correctly relay emails related to
the guest module. If localhost is used as smtpserver, make sure that a MTA is installed
and configured on the server.
Self-registered guests are added under the persons tab of the PacketFence Web administration interface.
Managed guests
It is possible to modify the default values of the guests created from the Web admin interface by editing
/usr/local/pf/conf/pf.conf.
Default values are located in /usr/local/pf/conf/pf.conf.defaults and documentation for every
settings is available in /usr/local/pf/conf/documentations.conf.
[guests_admin_registration]
access_duration_choices=1h,3h,12h,1D,2D,3D,5D
default_access_duration=12h
The format of the duration is as follow:
<DURATION><DATETIME_UNIT>[<PERIOD_BASE><OPERATOR><DURATION><DATE_UNIT>]
Let’s explain the meaning of each parameter: