realm question

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Thu Jul 24 18:35:41 CEST 2008


Hi,

> Can I strip the "idm/something/" somehow?  

sure. a simple strip in the config would work...
or unlang of course.

eg in radiusd.conf

attr_rewrite copy.user-name {
attribute = Stripped-User-Name
new_attribute = yes
searchfor = ""
searchin = packet
replacewith = "%{User-Name}"
}

attr_rewrite remove-junk {
attribute = Stripped-User-Name
searchfor = "/idm\/something\/"
searchin = packet
new_attribute = no
replacewith = ""
}


then in sites-enabled/default  (or usual server) add 

copy.user-name  
remove-junk

in the authorize section alongside prefix, suffix, ntrealm etc

alan



More information about the Freeradius-Users mailing list