MD5 for CUI would change if User put their name in different case
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}:-}}"
}
}
}
!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 {