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@somewhere is expanded as changemesomeone@somewere_ expand: 'changeme%{tolower:%{User-Name}}%{Operator-Name}' -> 'changemesomeone@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@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@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