OPNsense Forum

English Forums => General Discussion => Topic started by: siga75 on December 24, 2019, 10:05:34 AM

Title: captive portal - cannot disable "enforce local group"
Post by: siga75 on December 24, 2019, 10:05:34 AM
I cannot select "none", if I do that, when I save it come back to "admin", I only can select others groups, I tried creating a wlan_guests group, but then how I am supposed to link vouchers to that group?
Title: Re: captive portal - cannot disable "enforce local group"
Post by: siga75 on December 24, 2019, 11:54:05 AM
looks like the value is empty in /conf/config.xml, still the voucher does not work for the login, but it works in the system since I tested it (system / access / tester)

    <captiveportal version="1.0.0">
      <zones>
        <zone uuid="b2285665-f9ae-4ee4-9741-b96082df2dd6">
          <enabled>1</enabled>
          <zoneid>0</zoneid>
          <interfaces>opt3</interfaces>
          <authservers>captive_voucher</authservers>
          <alwaysSendAccountingReqs>0</alwaysSendAccountingReqs>
          <authEnforceGroup/>
          <idletimeout>0</idletimeout>
          <hardtimeout>0</hardtimeout>
          <concurrentlogins>1</concurrentlogins>
          <certificate>5e0104ab1fe4d</certificate>
          <servername/>
          <allowedAddresses/>
          <allowedMACAddresses/>
          <transparentHTTPProxy>0</transparentHTTPProxy>
          <transparentHTTPSProxy>0</transparentHTTPSProxy>
          <template>cbb6c312-12ac-4261-8685-047bb1c0f359</template>
          <description>wlan1_guests</description>
        </zone>
      </zones>
Title: Re: captive portal - cannot disable "enforce local group"
Post by: juliocbc on January 21, 2020, 09:37:08 PM
Did you opened an issue in Github? Apparently the problem still happens in last version 19.7.9_1.
Title: Re: captive portal - cannot disable "enforce local group"
Post by: siga75 on January 22, 2020, 08:27:50 AM
no, I didn't

at the end it works, my real issue was related to something else

still, this is indeed a bug, but probably "only" at WUI level
Title: Re: captive portal - cannot disable "enforce local group"
Post by: franco on January 22, 2020, 09:59:09 AM
One well-crafted bug report in the right place is all it takes:

https://github.com/opnsense/core/issues/3891


Cheers,
Franco
Title: Re: captive portal - cannot disable "enforce local group"
Post by: juliocbc on January 22, 2020, 01:15:57 PM
Quote from: franco on January 22, 2020, 09:59:09 AM
One well-crafted bug report in the right place is all it takes:

https://github.com/opnsense/core/issues/3891


Cheers,
Franco

@Franco

One of our users questioned me in OPNsense's (Udemy) training about it and I always ask to them to post here in forum or open an issue (sometimes I do it myself) to share the information with community and solve problems quicker. I'll reply to the user about this issue in Portuguese forum

Thank you!
Title: Re: captive portal - cannot disable "enforce local group"
Post by: franco on January 23, 2020, 09:35:16 AM
Sure, thank you. This one slipped through the unit test but it'll be fixed early next week in 19.7.10.

Not that it doesn't work, but if you save you need to select none again otherwise you'll change the setting to the group. If you already had a group setting that is unaffected.


Cheers,
Franco