rewrite attribute in freeradius 3

Aleksander Vines aleksander.vines at nersc.no
Thu Jun 11 10:19:07 CEST 2015


I seem to accidentally have pressed the send button.


I'm getting this error message:
/etc/raddb/radiusd.conf[642]: Failed to link to module 'rlm_attr_rewrite': rlm_attr_rewrite.so: cannot open shared object file: No such file or directory


Is there a another way of doing this?


Regards,
Aleksander Vines



Aleksander Vines <aleksander.vines at nersc.no> , 2015-06-11 10:09:

Hi list,


I'm trying to set up Freeradius (3.0.4 - as its whats included in the centos repo) for Eduroam. It should act as a proxy to an internal server. 


Essentially, what I'm stuck at now is to rewrite the incoming User-Name attribute to remove the @domain postfix.


In earlier versions I could use something like this:
attr_rewrite rewrite_realm {
attribute = User-Name
searchin = packet
searchfor = "^(.*)@adsl\.realm1$"
replacewith = "%{1}"
ignore_case = no
new_attribute = no
max_matches = 10
append = no
}


However, it seems its not supported in Freeradius 3: 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3313 bytes
Desc: Electronic Signature S/MIME
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20150611/6986f6f6/attachment.bin>


More information about the Freeradius-Users mailing list