From: Alan Buxey Date: Wed, 9 Jan 2013 23:19:35 +0000 (+0000) Subject: make CUI MD5 not reliant on case of User-Name X-Git-Tag: release_3_0_0_beta1~1325^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2aeaf5c0e81355d09c56eeccc0acfaa769207b5;p=thirdparty%2Ffreeradius-server.git make CUI MD5 not reliant on case of User-Name MD5 for CUI would change if User put their name in different case --- diff --git a/raddb/policy.d/cui b/raddb/policy.d/cui index e8385ccc767..b585ccd76db 100644 --- a/raddb/policy.d/cui +++ b/raddb/policy.d/cui @@ -70,7 +70,7 @@ cui.post-auth { if (outer.request:Chargeable-User-Identity && \ (outer.request:Operator-Name || ('${policy.cui_require_operator_name}' != 'yes'))) { update reply { - Chargeable-User-Identity := "%{md5:${policy.cui_hash_key}%{User-Name}%{%{outer.request:Operator-Name}:-}}" + Chargeable-User-Identity := "%{md5:${policy.cui_hash_key}%{tolower:User-Name}%{%{outer.request:Operator-Name}:-}}" } } } @@ -80,7 +80,7 @@ cui.post-auth { !reply:Chargeable-User-Identity && \ (Operator-Name || ('${policy.cui_require_operator_name}' != 'yes')) ) { update reply { - Chargeable-User-Identity = "%{md5:${policy.cui_hash_key}%{User-Name}%{%{Operator-Name}:-}}" + Chargeable-User-Identity = "%{md5:${policy.cui_hash_key}%{tolower:User-Name}%{%{Operator-Name}:-}}" } } update reply {