1. Edit "raddb/dictionary" to define a local attribute to store the data
ATTRIBUTE Eduroam-Enabled 3010 string
2. Modify "ldap.attrmap" to copy your LDAP attribute into this local RADIUS attribute:
replyItem Eduroam-Enabled haDirittoEduroam
3. Check the attribute like so in "sites-enabled/inner-tunnel":
authorize {
...
ldap
if (reply:Eduroam-Enabled != "Y") {
reject
}
...
}
With this reject command in the authorize section is there a method to supply a custom reply message?
An observation I made with the if statement as above, if the attribute is not present on the user object it will evaluate false, thus allowing the user access.