# regular expressions (or at least not a legible one).
#
split_username_nai {
- if(User-Name =~ /^([^@]*)(@([-[:alnum:]]+\\.[-[:alnum:].]+))?$/){
- update request {
- Stripped-User-Name := "%{1}"
- Stripped-User-Domain = "%{3}"
- }
+ if(User-Name =~ /^([^@]*)(@([-[:alnum:]]+\\.[-[:alnum:].]+))?$/){
+ update request {
+ Stripped-User-Name := "%{1}"
+ Stripped-User-Domain = "%{3}"
}
+ # If any of the expansions result in a null string, the update
+ # section may return something other than updated...
+ updated
+ }
else{
noop
}