Also, while looking at the code, I put the logging statement in 
"pf::node::node_register", so now (with your suggested change, in 
"captiveportal::PacketFence::Controller::CaptivePortal::webNodeRegister") I 
have 2 logs for the same thing.
Which one is better?
Would the node.pm -> node_register change also affect differenti types 
of logins (maybe via WPA2 auth or similar?)

In the meanwhile, thank you for the prompt solution.

Nicola

Il 14/10/15 15:48, Nicola Canepa ha scritto:
> Thank you, but I noticed there is not a "custom.pm" for CaptivePortal.
> Isn't there a more update-resistant way?
>
> Nicola
>
> Il 14/10/15 15:33, Derek Wuelfrath ha scritto:
>> Hello Nicola,
>>
>>> Since I updated from 4.1 to 4.7
>> You know that we released 5.4 last week right ? ;)
>>
>>>> performing node registration ...
>>>> register.cgi(0) INFO: performing node registration MAC:
>>>> XX:XX:XX:XX:XX:XX pid: YYYY (pf::web::_sanitize_and_register)
>>> which I used to associate user to its activity (in case of need).
>>> Is it possible to have this restored by configuring logs somewhere?
>> That was part of the old captive portal mechanisms (CGI). This code 
>> have been removed.
>> To cover the case you want (a node registers through the 
>> captive-portal), you may want to add a logging statement to the 
>> “WebNodeRegister” method in 
>> /usr/local/pf/html/captive-portal/lib/captive-portal/PacketFence/Controller/CaptivePortal.pm
>>
>> Cheers!
>> dw.
>>
>> —
>> Derek Wuelfrath
>> [email protected] :: +1.514.447.4918 (x110) :: +1.866.353.6153 
>> (x110)
>> Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
>> (www.packetfence.org)
>>
>>> On Oct 14, 2015, at 4:55 AM, Nicola Canepa <[email protected]> wrote:
>>>
>>> Hello.
>>> Since I updated from 4.1 to 4.7, I cannot find anymore in the logs 
>>> the line
>>>> performing node registration ...
>>>> register.cgi(0) INFO: performing node registration MAC:
>>>> XX:XX:XX:XX:XX:XX pid: YYYY (pf::web::_sanitize_and_register)
>>> which I used to associate user to its activity (in case of need).
>>> Is it possible to have this restored by configuring logs somewhere?
>>>
>>> Thank you
>>>
>>> -- 
>>>
>>> Nicola Canepa
>>> Tel: +39-0522-399-3474
>>> [email protected]
>>> ---
>>> Il contenuto della presente comunicazione è riservato e destinato 
>>> esclusivamente ai destinatari indicati. Nel caso in cui sia ricevuto 
>>> da persona diversa dal destinatario sono proibite la diffusione, la 
>>> distribuzione e la copia. Nel caso riceveste la presente per errore, 
>>> Vi preghiamo di informarci e di distruggerlo e/o cancellarlo dal 
>>> Vostro computer, senza utilizzare i dati contenuti. La presente 
>>> comunicazione (comprensiva dei documenti allegati) non avrà valore 
>>> di proposta contrattuale e/o accettazione di proposte provenienti 
>>> dal destinatario, nè rinuncia o riconoscimento di diritti, debiti 
>>> e/o crediti, nè sarà impegnativa, qualora non sia sottoscritto 
>>> successivo accordo da chi può validamente obbligarci. Non deriverà 
>>> alcuna responsabilità precontrattuale a ns. carico, se la presente 
>>> non sia seguita da contratto sottoscritto dalle parti.
>>>
>>> The content of the above communication is strictly confidential and 
>>> reserved solely for the referred addressees. In the event of receipt 
>>> by persons different from the addressee, copying, alteration and 
>>> distribution are forbidden. If received by mistake we ask you to 
>>> inform us and to destroy and/or delete from your computer without 
>>> using the data herein contained. The present message (eventual 
>>> annexes inclusive) shall not be considered a contractual proposal 
>>> and/or acceptance of offer from the addressee, nor waiver 
>>> recognizance of rights, debts  and/or credits, nor shall it be 
>>> binding when not executed as a subsequent agreement by persons who 
>>> could lawfully represent us. No pre-contractual liability shall 
>>> apply to us when the present communication is not followed by any 
>>> binding agreement between the parties.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>  
>>>
>>> _______________________________________________
>>> PacketFence-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>>
>> ------------------------------------------------------------------------------
>>  
>>
>> _______________________________________________
>> PacketFence-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>

-- 

Nicola Canepa
Tel: +39-0522-399-3474
[email protected]
---
Il contenuto della presente comunicazione è riservato e destinato 
esclusivamente ai destinatari indicati. Nel caso in cui sia ricevuto da persona 
diversa dal destinatario sono proibite la diffusione, la distribuzione e la 
copia. Nel caso riceveste la presente per errore, Vi preghiamo di informarci e 
di distruggerlo e/o cancellarlo dal Vostro computer, senza utilizzare i dati 
contenuti. La presente comunicazione (comprensiva dei documenti allegati) non 
avrà valore di proposta contrattuale e/o accettazione di proposte provenienti 
dal destinatario, nè rinuncia o riconoscimento di diritti, debiti e/o crediti, 
nè sarà impegnativa, qualora non sia sottoscritto successivo accordo da chi può 
validamente obbligarci. Non deriverà alcuna responsabilità precontrattuale a 
ns. carico, se la presente non sia seguita da contratto sottoscritto dalle 
parti.

The content of the above communication is strictly confidential and reserved 
solely for the referred addressees. In the event of receipt by persons 
different from the addressee, copying, alteration and distribution are 
forbidden. If received by mistake we ask you to inform us and to destroy and/or 
delete from your computer without using the data herein contained. The present 
message (eventual annexes inclusive) shall not be considered a contractual 
proposal and/or acceptance of offer from the addressee, nor waiver recognizance 
of rights, debts  and/or credits, nor shall it be binding when not executed as 
a subsequent agreement by persons who could lawfully represent us. No 
pre-contractual liability shall apply to us when the present communication is 
not followed by any binding agreement between the parties.


------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to