ASSERT FAILED

Maja Wolniewicz mgw at umk.pl
Thu May 16 14:42:23 CEST 2013


W dniu 15.05.2013 18:40, Alan DeKok pisze:
> Jakob Hirsch wrote:
>> So the OP's assignment
>>
>> "%{md5:${policy.cui_hash_key}%{tolower:%{User-Name}}%{%{Operator-Name}:-}}"
>>
>> could simply rewritten to this?
>>
>> "%{md5:${policy.cui_hash_key}%{tolower:%{User-Name}}%{Operator-Name}}"
>   Yes.
I'm still having trouble with it. It works correctly when Operator-Name
is set, but
when Operator-Name is unset (it does not appear in  Access-Request packets)

${policy.cui_hash_key}%{tolower:%{User-Name}}%{Operator-Name}

where cui_hash_key is changeme, User-Name is someone at somewhere

is expanded as changemesomeone at somewere_

expand: 'changeme%{tolower:%{User-Name}}%{Operator-Name}' ->
'changemesomeone at somewere_'

the same is when I have
${policy.cui_hash_key}%{tolower:%{User-Name}}%{%{Operator-Name}:-aaa}
expand: 'changeme%{tolower:%{User-Name}}%{%{Operator-Name}:-aaa}' ->
'changemesomeone at somewere_'

It seems that Operator-Name is set then to _

Maja

>
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html

-- 
Maja Gorecka-Wolniewicz          mgw at umk.pl
Uczelniane Centrum               Information & Communication
Informatyczne                    Technology Centre
Uniwersytet Mikolaja Kopernika   Nicolaus Copernicus University
Coll. Maximum, pl. Rapackiego 1, 87-100 Torun, Poland
tel.: +48 56-611-27-40 fax: +48 56-622-18-50 tel. kom.: +48-693032574


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3393 bytes
Desc: Kryptograficzna sygnatura S/MIME
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20130516/697ba0ec/attachment.bin>


More information about the Freeradius-Devel mailing list