Skip to content

Commit

Permalink
Update eduroam-IRS-22.md
Browse files Browse the repository at this point in the history
eap file and cui file and some minor changes
  • Loading branch information
lalanthad authored Jul 24, 2024
1 parent 8cc8094 commit c8518b1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions eduroam-IRS-22.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ network={
ssid="eduroam"
key_mgmt=WPA-EAP
eap=PEAP
identity="EduTestP@33"
identity="eduroamtest"
# anonymous_identity="@eduroam.lk"
password="EduTest"
password="EduTestP@33"
phase2="auth=MSCHAPV2"
# Uncomment the following to perform server certificate validation.
Expand Down Expand Up @@ -171,7 +171,7 @@ Backup the eap module configuration file as follows,
```
sudo cp mods-available/eap mods-available/eap.orig
sudo vim mods-available/eap
sudo vim mods-enabled/eap
```

Now modify the configuration file to make the below changes. Don't delete any additional configurations not show below. Also some of the below configurations also might be the same as them in your configuration file, hence need to change the selected parts only.
Expand All @@ -183,8 +183,6 @@ eap {
cisco_accounting_username_bug = no
tls-config tls-eduroam {
certdir = ${confdir}/certs
cadir = ${confdir}/certs
private_key_password = whatever
private_key_file = ${certdir}/server.key
certificate_file = ${certdir}/server.pem
Expand Down Expand Up @@ -226,7 +224,7 @@ eap {
You need to modify the linelog module as follows too,

```
sudo vim mods-available/linelog
sudo vim mods-enabled/linelog
```
Modify the following lines containing `Access-Accept` and `Access-Reject`

Expand All @@ -235,6 +233,9 @@ Access-Accept = "%T eduroam-auth#ORG=%{request:Realm}#USER=%{User-Name}#CSI=%{%{
Access-Reject = "%T eduroam-auth#ORG=%{request:Realm}#USER=%{User-Name}#CSI=%{%{Calling-Station-Id}:-Unknown Caller Id}#NAS=%{%{Called-Station-Id}:-Unknown Access Point}#NAS-IP=%{%{NAS-IP-Address}:-Unknown}#OPERATOR=%{%{Operator-Name}:-Unknown}#CUI=%{%{reply:Chargeable-User-Identity}:-Unknown}#MSG=%{%{reply:Reply-Message}:-No Failure Reason}#RESULT=FAIL#"
```

Chargeable-User-Identity (CUI) is a non-human readable (“opaque”) cryptographic hash that is targeted to the service provider. Each service provider therefore receives a different opaque value for the same user. This allows service providers to recognize a user as one that they have seen before, without knowing who the user is; while preventing service providers from colluding to track users. This enables legitimate purposes, such as blocking malfunctioning devices and generating accurate usage statistics.
The CUI value is computed as a SHA1 hash of concatenated (inner) User-Name, optional Operator-Name and a local salt value. This salt is random string and we have to set this salt in the cui_hash_key attribute.

Modify the cui policy as follows,
```
sudo vim policy.d/cui
Expand Down

0 comments on commit c8518b1

Please sign in to comment.