[local]
description=Local Users
type=SQL
realms=null

[file1]
description=Legacy Source
path=/usr/local/pf/conf/admin.conf
type=Htpasswd
realms=null

[file1 rule admins]
description=All admins
class=administration
match=all
action0=set_access_level=ALL

[sms]
description=SMS-based registration
sms_carriers=100056,100057,100061,100058,100059,100060,100062,100063,100071,100064,100116,100066,100117,100112,100067,100065,100068,100069,100070,100118,100115,100072,100073,100074,100075,100076,100077,100085,100086,100080,100079,100081,100083,100082,100084,100087,100088,100111,100089,100090,100091,100092,100093,100094,100095,100096,100098,100097,100099,100100,100101,100113,100102,100103,100104,100106,100105,100107,100108,100109,100114,100110,100078,100122
type=SMS
create_local_account=no

[sms rule catchall]
description=
class=authentication
match=all
action0=set_role=guest
action1=set_access_duration=1D

[email]
description=Email-based registration
email_activation_timeout=10m
type=Email
allow_localdomain=yes
create_local_account=no

[email rule catchall]
description=
class=authentication
match=all
action0=set_role=guest
action1=set_access_duration=1D

[sponsor]
description=Sponsor-based registration
type=SponsorEmail
allow_localdomain=yes
create_local_account=no

[sponsor rule catchall]
description=
class=authentication
match=all
action0=set_role=guest
action1=set_access_duration=1D

[null]
description=Null Source
type=Null
email_required=no

[null rule catchall]
description=catchall
class=authentication
match=all
action0=set_role=guest
action1=set_access_duration=1D

[Domain]
description=Domain Google Apps
scope=https://www.googleapis.com/auth/userinfo.email
authorize_path=/o/oauth2/auth
domains=*.google.com,*.gstatic.com, googleapis.com, *.googleusercontent.com
access_token_path=/o/oauth2/token
site=https://accounts.google.com
type=Google
protected_resource_url=https://www.googleapis.com/oauth2/v2/userinfo
create_local_account=no
access_token_param=oauth_token
local_account_logins=0
client_secret=xxxxxxxxxxxxxxxxxxx
client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
set_access_level_action=
redirect_url=https://packetfence.domain.com/oauth2/callback

[Domain.com rule Domain_Users]
action0=set_role=default
action1=set_access_duration=5D
condition0=username,contains,domain.com
match=all
class=authentication

[Domain.com rule Not_Domain]
class=authentication
condition0=username,contains,gmail.com
match=all
action1=set_access_duration=1D
action0=set_role=guest
