Re: Quirky question about rewriting usernames

2007-07-19 Thread Pshem Kowalczyk
Hi On 19/07/07, Cliff Cole [EMAIL PROTECTED] wrote: Hello all. Here is my issue. This is very weird and would only affect one NAS. I'm not sure freeradius is capable of this. I want a username that comes in to check for an @domainname. If the domainname is there I want it to be stripped

Re: Quirky question about rewriting usernames

2007-07-19 Thread Cliff Cole
Thanks for the reply. I'm new to free radius and have been overwhelmed with documentation the past few days. Let me explain in some logic and maybe I can make some sense as to what I'm trying to do. User authentication comes from NAS A IF the username does not have @domain.com and NAS = NAS A

Re: Quirky question about rewriting usernames

2007-07-19 Thread Cliff Cole
Once again. I am backwards on my wording, I am so sorry. This should be correct. IF the username does have @domain.com and NAS = NAS A THEN continue with username as is IF the username does not have @domain.com and NAS = NAS A THEN append the @domain.com I have been trying the hints file.

Re: Quirky question about rewriting usernames

2007-07-19 Thread tnt
Use regular expressions: http://wiki.freeradius.org/Operators Check for @ or that it doesn't end with @domain.com or whatever you fancy. Ivan Kalik Kalik Informatika ISP Dana 19/7/2007, Cliff Cole [EMAIL PROTECTED] piše: Once again. I am backwards on my wording, I am so sorry. This should

Quirky question about rewriting usernames

2007-07-18 Thread Cliff Cole
Hello all. Here is my issue. This is very weird and would only affect one NAS. I'm not sure freeradius is capable of this. I want a username that comes in to check for an @domainname. If the domainname is there I want it to be stripped and added back later. If the domainname is not there I'd

Re: rewriting usernames

2006-11-17 Thread Christopher Carver
Quoting Christopher Carver [EMAIL PROTECTED]: Quoting Michael Mitchell [EMAIL PROTECTED]: Hi Chris, Christopher Carver wrote: Thanks for the reply, Kevin. You got me on the right track, but I still don't quite have it right. It seems as though the users file can only

Re: rewriting usernames

2006-11-16 Thread Christopher Carver
Quoting Kevin Bonner [EMAIL PROTECTED]: On Monday 13 November 2006 22:24, Christopher Carver wrote: Hello, How do I rewrite the value of the User-Name attribute based on Called-Station-Id? I need to do a series of these logical decisions and replace the username with

Re: rewriting usernames

2006-11-16 Thread Michael Mitchell
Hi Chris, Christopher Carver wrote: Thanks for the reply, Kevin. You got me on the right track, but I still don't quite have it right. It seems as though the users file can only manipulate Kevin's solution uses the hints file, not the users file. You'll need to enable the preprocess

Re: rewriting usernames

2006-11-16 Thread Kevin Bonner
On Thursday 16 November 2006 04:56, Christopher Carver wrote: Quoting Kevin Bonner [EMAIL PROTECTED]: Not a crazy question at all. We used a hints file entry like: ... It seems as though the users file can only manipulate reply A/V pairs. Correct. The hints file can manipulate the request

Re: rewriting usernames

2006-11-16 Thread Christopher Carver
Quoting Michael Mitchell [EMAIL PROTECTED]: Hi Chris, Christopher Carver wrote: Thanks for the reply, Kevin. You got me on the right track, but I still don't quite have it right. It seems as though the users file can only manipulate Kevin's solution uses the hints file, not the

Re: rewriting usernames

2006-11-14 Thread Michael Mitchell
Christopher Carver wrote: Hello, How do I rewrite the value of the User-Name attribute based on Called-Station-Id? I need to do a series of these logical decisions and replace the username with username@some-isp.com based on what the value of Called-Station-Id is. hmm that is a tricky one!

Re: rewriting usernames

2006-11-14 Thread Kevin Bonner
On Monday 13 November 2006 22:24, Christopher Carver wrote: Hello, How do I rewrite the value of the User-Name attribute based on Called-Station-Id? I need to do a series of these logical decisions and replace the username with username@some-isp.com based on what the value of

rewriting usernames

2006-11-13 Thread Christopher Carver
Hello, How do I rewrite the value of the User-Name attribute based on Called-Station-Id? I need to do a series of these logical decisions and replace the username with username@some-isp.com based on what the value of Called-Station-Id is. rlm_attr_rewrite seems the obvious choice, but I can't

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