> DEFAULT Client-IP-Address == 158.64.1.155,
> User-Name =~ "^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)"
> User-Name := `%{1}%{2}.%{3}%{4}.%{5}%{6}`
This is exactly what I needed:
DEFAULT User-Name =~ "^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)"
User-Name := "%{1}%{2}.%{3}%{4}.%{5}%{6}"
Thank you very much!
> I'm not quite good at writing regex's...
You could have fooled me. Thats a pretty complex regex. I did not realize
regular expressions had evolved so far. I guess I had better dig into some
current documentation. Is this variable-storing feature available in perl?
> Oh, BTW, I believe there is an IOS option...
The Cisco format is the one accepted by a corporate RADIUS server (Cisco
ACS) outside my control through which I proxy unknown requests. It is the
Intermec format that has to be changed.
After getting this to work I decided that I would like to alter the format
of Called-Station-Id and Calling-Station-Id as well. It did not take long
to see that only the first matching DEFAULT entry in hints is matched. I
accomplished my goal by modifying the rlm_preprocess.c code to force a
Fall-Through of all hints entries (I don't use any other hints). Is there a
more elegant way to use the hints file (or any other mechanism) to modify
(mangle) more than one attribute?
Dennis Beach
Systems Engineer
RR Donnelley, Information Technology
(765) 364-4604 - phone
(765) 230-6111 - cellular
(765) 364-3056 - fax
[EMAIL PROTECTED]
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html