Hello Loius/Rossing,
I am trying to make the SMS Auth work as well, but in my case, I am not
receiving any PIN confirmations on my mobile phone. Could this be a problem
with the mobile carrier, in my case T-Mobile Germany.
The config looks right, but dont"t know what's wrong..
[MAWOH_SMS]
create_local_account=no
set_access_level_action=
sms_carriers=100113
local_account_logins=0
description=SMS-based registration for Mawoh Guests
type=SMS
Any help is appreciated..
Thanks.
Regards,
Kehinde
On Tue, Aug 15, 2017 at 2:08 PM, Rossing, Will via PacketFence-users <
[email protected]> wrote:
> The patch did the trick Louis, Thanks again
>
> On Mon, Aug 14, 2017 at 1:33 PM, Louis Munro <[email protected]> wrote:
>
>> Hi Will,
>> Can you try this patch please?
>>
>> https://github.com/inverse-inc/packetfence/commit/b9642f12ed
>> 9bd3ec62f800bd4a5dfd36702553c2.diff
>>
>> Apply it by downloading it and then using patch, i.e:
>>
>> # cd /usr/local/pf
>> # wget https://github.com/inverse-inc/packetfence/commit/b9642
>> f12ed9bd3ec62f800bd4a5dfd36702553c2.diff
>> # patch -p1 < b9642f12ed9bd3ec62f800bd4a5dfd36702553c2.diff
>> <https://github.com/inverse-inc/packetfence/commit/b9642f12ed9bd3ec62f800bd4a5dfd36702553c2.diff>
>> # bin/pfcmd service pf restart
>>
>> Then you can try deleting the source from the GUI and then recreating it
>> again.
>> If it works we've got ourselves a fix.
>>
>> Regards,
>> --
>> Louis Munro
>> [email protected] :: www.inverse.ca
>> +1.514.447.4918 x125 <(514)%20447-4918> :: +1 (866) 353-6153 x125
>> <(866)%20353-6153>
>> Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (
>> www.packetfence.org)
>>
>> On Aug 14, 2017, at 14:29, Rossing, Will <[email protected]> wrote:
>>
>> Hey Louis, Yes I was just going to report that that works, just comma
>> separation, the GUI won't show the list but it still works. Thanks for
>> your reply!
>>
>> On Mon, Aug 14, 2017 at 12:37 PM, Louis Munro <[email protected]> wrote:
>>
>>> Hi Will,
>>> This looks like a bug from the GUI that saves the list of carriers the
>>> wrong way.
>>>
>>> Can you try to change the source to this (manually edit the file):
>>>
>>>
>>> [sms]
>>> description=SMS-based registration
>>> sms_carriers=100061,100107
>>> type=SMS
>>> create_local_account=no
>>> set_access_level_action=
>>> local_account_logins=0
>>>
>>> Then run this command:
>>>
>>> # /usr/local/pf/bin/pfcmd configreload hard
>>>
>>>
>>>
>>> And try again?
>>>
>>> The bug, if that's what it is, is in the code that saves the config.
>>> So editing the file and reloading it should be a (temporary) workaround.
>>>
>>> Please confirm if this works for you.
>>> If it does we'll open an issue on GitHub for tracking and issue a
>>> maintenance patch.
>>>
>>>
>>> Regards,
>>> --
>>> Louis Munro
>>> [email protected] :: www.inverse.ca
>>> +1.514.447.4918 x125 <(514)%20447-4918> :: +1 (866) 353-6153 x125
>>> <(866)%20353-6153>
>>> Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (
>>> www.packetfence.org)
>>>
>>> On Aug 14, 2017, at 12:51, Rossing, Will via PacketFence-users <
>>> [email protected]> wrote:
>>>
>>> More info, it works when we only put one SMS provider in the list, if we
>>> add more than one, it gets the exception error.
>>> This is how it writes multiple carriers to the config file and seems
>>> like it can't parse it properly or something:
>>>
>>> [sms]
>>> description=SMS-based registration
>>> sms_carriers= <<EOT
>>> 100061
>>> 100107
>>> EOT
>>> type=SMS
>>> create_local_account=no
>>> set_access_level_action=
>>> local_account_logins=0
>>>
>>>
>>>
>>> One provider works:
>>> [sms]
>>> description=SMS-based registration
>>> sms_carriers=100107
>>> type=SMS
>>> create_local_account=no
>>> set_access_level_action=
>>> local_account_logins=0
>>>
>>>
>>> On Mon, Aug 14, 2017 at 10:59 AM, Rossing, Will <[email protected]>
>>> wrote:
>>>
>>>> Just deploying 7.2 to production and am getting the following when
>>>> choosing the sms authentication in the captive portal.
>>>>
>>>> Caught exception in captiveportal::Controller::Root>dynamic_application
>>>> "Can't call method "fetchall_arrayref" on an undefined value at
>>>> /usr/local/pf/lib/pf/sms_carrier.pm line 88."
>>>>
>>>> I swear this worked last week when I put the box in production
>>>> temporarily. I've tried removing and adding back in carriers, etc. Any
>>>> ideas? I hate to have to roll back if I can avoid it!
>>>>
>>>> Thanks
>>>>
>>>> Will
>>>>
>>>> --
>>>>
>>>>
>>>> Will Rossing
>>>> *Manager, Network Services * | 218.723.6729 <(218)%20723-6729> | wro
>>>> [email protected]
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> Will Rossing
>>> *Manager, Network Services * | 218.723.6729 <(218)%20723-6729> | wro
>>> [email protected]
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org <http://slashdot.org/>!
>>> http://sdm.link/slashdot_______________________________________________
>>> PacketFence-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>>>
>>>
>>>
>>
>>
>> --
>>
>>
>> Will Rossing
>> *Manager, Network Services * | 218.723.6729 <(218)%20723-6729> | wro
>> [email protected]
>>
>>
>>
>
>
> --
>
>
> Will Rossing
> *Manager, Network Services * | 218.723.6729 <(218)%20723-6729> | wro
> [email protected]
>
> ------------------------------------------------------------
> ------------------
> 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
>
>
------------------------------------------------------------------------------
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