Govroam

The Roaming solution for the public sector

User Tools

Site Tools


siteadmin:freeradius_operator-name_setting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
siteadmin:freeradius_operator-name_setting [2020/11/20 14:58] adminsiteadmin:freeradius_operator-name_setting [2025/03/11 15:39] (current) admin
Line 1: Line 1:
 ======FreeRADIUS Operator-Name Setting====== ======FreeRADIUS Operator-Name Setting======
- 
-** Work in progress ** 
  
 =====Basic O-N setting===== =====Basic O-N setting=====
  
-This configuration simply updates the Operator-Name value in the request packets.+This configuration simply updates the Operator-Name value in the request packets and is appropriate for Individual Organisations (not RFOs):
  
 <code> <code>
Line 22: Line 20:
 As an RFO you're in a position to rewrite the Operator-Name in the outer RADIUS tunnel. This can be useful if your connected sites aren't setting it themselves, or are setting it wrongly. Ideally each site should set it appropriately because some sites might have multiple O-Ns in use and are in the best position to set them accurately. However, some RADIUS servers (NPS in particular) can't set O-N. As an RFO you're in a position to rewrite the Operator-Name in the outer RADIUS tunnel. This can be useful if your connected sites aren't setting it themselves, or are setting it wrongly. Ideally each site should set it appropriately because some sites might have multiple O-Ns in use and are in the best position to set them accurately. However, some RADIUS servers (NPS in particular) can't set O-N.
  
-Best case is that all sites everywhere set the correct O-N and it's proxied untouched to Jisc. This requires that all connect sites run appropriate software which is configured correctly. +Best case is that all sites everywhere set the correct O-N and it's proxied untouched to Jisc. This requires that all connected sites run appropriate software which is configured correctly. 
  
 Second best case is that the RFO sets the missing O-N for sites as the packets are proxied through them. Second best case is that the RFO sets the missing O-N for sites as the packets are proxied through them.
  
-Next best case is that the RFO sets a single O-N for all packets proxied. (see above section on Basic O-N setting.+Next best case is that the RFO sets a single O-N for all packets proxied. (see above section on Basic O-N setting).
    
 Worst case is that the O-N isn't set and proxied packets contain no identification. Worst case is that the O-N isn't set and proxied packets contain no identification.
Line 41: Line 39:
         require_message_authenticator = yes         require_message_authenticator = yes
 } }
 +
 +client holby-nhs-uk-1 {
 +        ipaddr = server2.holby.nhs.uk
 +        secret = lisaisaseriealkiller
 +        operator = "1holby.nhs.uk" # Add this internal variable
 +        require_message_authenticator = yes
 +}
 +
 </code> </code>
  
Line 55: Line 61:
 <code> <code>
                 update request {                 update request {
-                        Operator-Name := %{client:operator} +                        Operator-Name = "%{%{client:operator}:-1nhs.uk}"
-                } +
-</code> +
- +
-To set the O-N for each incoming requestThis will overwrite any previous value. +
- +
-Using +
- +
-<code> +
-                update request { +
-                        Operator-Name := %{Operator-Name:-%{client:operator}}+
                 }                 }
  
 </code> </code>
  
-will set the O-N to either the existing O-N, exists, or the client one, if not. +which will set, in preference, the existing O-N ('=' means 'assign unless already set'), the client operator and then a default of '1nhs.uk', if neither of the others are set. The default should be your own site in form of '1<realm>' where the <realm> is your primary realm.
- +
-If you want to go all the way: +
- +
-<code> +
-                update request { +
-                        Operator-Name := %{Operator-Name:-%{client:operator:-'1nhs.uk'}} +
-                } +
- +
-</code> +
- +
-which will set, in preference, the existing O-N, the client operator and then a default of '1nhs.uk'. +
  
 +Set the 'operator' in the config for each client you want to override the O-N for. You can set the same 'operator' multiple times.
  
  
siteadmin/freeradius_operator-name_setting.1605884281.txt.gz · Last modified: 2020/11/20 14:58 by admin