checking an atribute in multiple entries of default/outer tunnel

Rui Ribeiro ruyrybeyro at gmail.com
Tue Nov 19 17:11:33 CET 2013


Dears,

If I have an outer tunnel like in freeradius 2.2.2 like the following, why
should Stripped-User-Name be known in the following interactions that visit
the outer tunnel, and the whole if block is executed each time? I think it
was supposed to have Stripped-User-Name set on the first entry, and then
have it available to the next interactions.

Regards,
Rui Ribeiro

authorize {
        auth_log
        if (!(Stripped-User-Name)) {
            if (!(User-Name =~ /^([^@]*)@(.+)$/)) {
              update reply {
                 Reply-Message := "malformed username"
              }
              reject
           }
           else {
              update request {
                Stripped-User-Name := "%{1}"
                Realm := "%{2}"
              }
           if (Realm == "MyDomain") {
                   update control {
                    Proxy-To-Realm := LOCAL
                 }
              }
              else {
                 update control {
                    Proxy-To-Realm := TO_EDUROAM
                 }
              }
           }
        }
  eap {
                ok = return
        }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20131119/9c844b15/attachment.html>


More information about the Freeradius-Users mailing list