[Users] extra accounting and exported pseudo variables

Klaus Darilion klaus.mailinglists at pernau.at
Wed May 3 23:52:09 CEST 2006


Hi!

but why does it work with xlog and $tls_peer_subject?

regards
klaus


On Wed, May 3, 2006 18:35, Daniel-Constantin Mierla said:
> Hello,
>
> they should work, I tried with $T_branch_idx and no error. The error you
> got is related to bad parameters or your function returns false. The
> convection is that the functions returning pseudovariables will return
> all the time true and set the value to null, if the field is not found
> (see some examples in items.c).
>
> Cheers,
> Daniel
>
>
> On 05/03/2006 06:44 PM, Klaus Darilion wrote:
>> Hi!
>>
>> I'm trying to extra account exported pseudo variables. should this work?
>>
>> modparam("acc", "db_extra",
>> "source_ip=$si;source_port=$sp;received_ip=$Ri;received_port=$Rp;tls_peer_subject=$tls_peer_subject");
>>
>>
>> nomal logging is fine:
>>  xlog("L_INFO","[$Tf] $$tls_peer_subject    = '$tls_peer_subject'\n");
>>
>> results in:
>> [Wed May  3 16:11:52 2006] $tls_peer_subject    =
>> '/C=at/ST=Vienna/L=Vienna/O=itsp2/CN=itsp2.labs.nic.at
>>
>>
>> But the accounting fails:
>>   ERROR:acc:extra2strar: failed to get 'tls_peer_subject'
>>
>> Is there a known problem? Is it because when the accounting is done,
>> there is no more TLS connection available to retrieve the cert
>> parameters?
>>
>> Meanwhile I will try the workaround with copying to AVPs and
>> accounting of the AVPs.
>>
>> regards
>> klaus
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
>






More information about the Users mailing list