RE: Rewriting usernames before authenticating

2005-01-20 Thread Dennis Beach
I used to think that setting Fall-Through = Yes achieves exactly that task without modifying any code. For example, I have an entry DEFAULT NAS-IP-Address == w.x.y.z NAS-Identifier := vpn, Fall-Through = Yes and I believe it _does_ fall-through. I thought that

Re: Rewriting usernames before authenticating

2005-01-19 Thread Stefan Winter
Hi, INTERMEC sends usernames (MAC address) as 00-00-00-00-00-00 and the Cisco sends them like ... Can the usernames be rewritten when they are of one format well, I don't know if there are more elegant ways to do this, but if all else fails you could set up an entry in the hints

RE: Rewriting usernames before authenticating

2005-01-19 Thread Dennis Beach
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 :=

Re: Rewriting usernames before authenticating

2005-01-19 Thread Stefan Winter
Hi! 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

Rewriting usernames before authenticating

2005-01-14 Thread Dennis Beach
I have FreeRADIUS 1.0.1 running successfully with an INTERMEC accesss point. We also have a Cisco access point and would like both to use the same RADIUS server. INTERMEC sends usernames (MAC address) as 00-00-00-00-00-00 and the Cisco sends them like ... Can the usernames be rewritten