Hi Fabrice,
I’ve made source as you said. I have radius source with rules below [RADIUS rule ALLOW] description=Allow class=authentication match=any action0=set_role=guest action1=set_access_duration=1D condition0=username,starts,testuser@ [RADIUS rule REJECT] description=Reject all class=authentication match=all action0=set_role=REJECT action1=set_access_duration=1h It should allow only username starts with „testuser” but REJECT rule seems no to work. Still registering other users. Maibe i missed something? Tomasz Karczewski Administrator Sieci [email protected] http://www.man.olsztyn.pl http://www.uwm.edu.pl tel. (89) 523 45 55 fax. (89) 523 43 47 Ośrodek Eksploatacji i Zarządzania Miejską Siecią Komputerową OLMAN w Olsztynie Uniwersytet Warmińsko-Mazurski w Olsztynie From: Durand fabrice via PacketFence-users [mailto:[email protected]] Sent: Friday, October 6, 2017 11:52 PM To: [email protected] Cc: Durand fabrice <[email protected]> Subject: Re: [PacketFence-users] Captive Portal allow only selected usernames It's in the source where you have to define the rules. Also you can use a regexp in the rule to match what you need. Last thing , keep in mind that there is an order in the rule, so the first match win and the last one can match by default. Le 2017-10-06 à 05:19, Tomasz Karczewski via PacketFence-users a écrit : Thank you for response. Where exactly do i have to make these rules? Sources? Portal Profiles? Vlan filters? One more question. Does there a way to add to advanced rule to match i.e. company field defined in users field? If this field not match don’t allow? Tomasz Karczewski Administrator Sieci [email protected] <mailto:[email protected]> http://www.man.olsztyn.pl http://www.uwm.edu.pl tel. (89) 523 45 55 fax. (89) 523 43 47 Ośrodek Eksploatacji i Zarządzania Miejską Siecią Komputerową OLMAN w Olsztynie Uniwersytet Warmińsko-Mazurski w Olsztynie From: Fabrice Durand via PacketFence-users [mailto:[email protected]] Sent: Thursday, October 5, 2017 8:12 PM To: [email protected] <mailto:[email protected]> Cc: Fabrice Durand <mailto:[email protected]> <[email protected]> Subject: Re: [PacketFence-users] Captive Portal allow only selected usernames Hello Tomasz, create a rule for each users and at the end add a catch_all with the reject role. Regards Fabrice Le 2017-10-05 à 07:42, Tomasz Karczewski via PacketFence-users a écrit : Hi, I'm trying to allow only selected users to wifi with specific ssid and connection-type. For example i have ssid "specificusers" connection type wireless-noeap. I want to allow only selected usernames to allow and register device with specific role i.e. "specificusers" [email protected] <mailto:[email protected]> [email protected] <mailto:[email protected]> [email protected] <mailto:[email protected]> and not allow any other usernames. Did anyone do this? Tnx for answers Tomasz Karczewski ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ PacketFence-users mailing list [email protected] <mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/packetfence-users -- Fabrice Durand [email protected] <mailto:[email protected]> :: +1.514.447.4918 (x135) :: www.inverse.ca <http://www.inverse.ca> Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence (http://packetfence.org) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ PacketFence-users mailing list [email protected] <mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/packetfence-users
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
