Hello,

I am trying to create a condition for our external sources, but the rules don't 
appear to work. I am trying to set a different access duration for users that 
register by email using a company email address. Instead of applying my 
condition it cascades to the catchall rule. I have tried using the ends and 
contains operators, but it doesn't seem to matter. I tried an SMS rule as well 
checking for my own cell phone number, but it also got ignored when I 
registered. Below are the relevant areas of /conf/authentication.conf

Thank you,

Brooks

[sms rule my_cellrule]
description=extend access
match=all
action0=set_role=Extended
action1=set_access_duration=2W
condition0=phonenumber,equals,<mycellnumber>

[sms rule catchall]
description=
match=all
action0=set_role=default
action1=set_access_duration=1D

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

[email rule company_access_extend]
description=
match=any
action0=set_role=Extended
action1=set_access_duration=2W
condition0=user_email,contains,ourdomain.com

[email rule catchall]
description=
match=all
action0=set_role=guest
action1=set_access_duration=1D
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to