Re: Username Rewrites based on Hint / Realm

2008-10-16 Thread Javier Fox
My sincerest thanks to everyone for their assistance on this. The hints file solution appears to have done the trick. Just a few more tweaks and I can finally call this project complete. Thanks again, J Fox [EMAIL PROTECTED] wrote: It's hints file for you then:

Username Rewrites based on Hint / Realm

2008-10-15 Thread Javier Fox
Hi folks, I have a bit of a conundrum trying to implement FreeRadius for a system where users from multiple ISP names must all authenticate in the same place, and I'm hoping a more experienced user can shed some light. In a nutshell, I need to do the following: -Check the 'called-station-id'

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread Stephen Bowman
On Wed, Oct 15, 2008 at 3:52 PM, Javier Fox [EMAIL PROTECTED] wrote: Hi folks, I have a bit of a conundrum trying to implement FreeRadius for a system where users from multiple ISP names must all authenticate in the same place, and I'm hoping a more experienced user can shed some light. In

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread Javier Fox
Thanks for the pointer. I'm not entirely certain as to the proper place to put such a thing, though. The examples I've been able to pull up show others using 'if' statements and such in the 'authorize' block, after calling preprocess. However, the following attempt: authorize {

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread tnt
if(whatever) { update request { User-Name := ... Ivan Kalik Kalik Informatika ISP Dana 15/10/2008, Javier Fox [EMAIL PROTECTED] piše: Thanks for the pointer. I'm not entirely certain as to the proper place to put such a thing, though. The examples I've been able to pull up

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread Javier Fox
I've tried every permutation of the 'if' line I can think of - quotes, no quotes, single-equal, double-equal, equal-tilde - but FreeRadius still doesn't like that 'if' line, and errors out with Line is not in 'attribute = value' format on startup. Again, I apologize if I'm missing something

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread Stephen Bowman
2008/10/15 Javier Fox [EMAIL PROTECTED] I've tried every permutation of the 'if' line I can think of - quotes, no quotes, single-equal, double-equal, equal-tilde - but FreeRadius still doesn't like that 'if' line, and errors out with Line is not in 'attribute = value' format on startup.

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread tnt
I've tried every permutation of the 'if' line I can think of - quotes, no quotes, single-equal, double-equal, equal-tilde - but FreeRadius still doesn't like that 'if' line, and errors out with Line is not in 'attribute = value' format on startup. if ( Called-Station-ID =~ /4262606/ ) {

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread Javier Fox
Ah, that might be the problem then. The Boss wants to stick with the official Debian packages, which for Etch are stuck back at 1.1.3. If there's any way for this to work with the currently installed version, I'd prefer to take that path, but if not, I'll look into upgrading. Thanks again,

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread tnt
It's hints file for you then: http://wiki.freeradius.org/Adding%2C_Removing%2C_Modifying_Attributes_for_further_processing You should be able to modify second example for your needs. Ivan Kalik Kalik Informatika ISP Dana 15/10/2008, Javier Fox [EMAIL PROTECTED] piše: Ah, that might be the

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread Karl Auer
On Wed, 2008-10-15 at 12:52 -0700, Javier Fox wrote: Our old RADIUS system (using Radiator) appears to call a perl script to perform this username rewriting, but that just seems like a nasty hack that I'd prefer to avoid. Radiator is written in perl, so using perl to extend it doesn't seem

Re: Username Rewrites based on Hint / Realm

2008-10-15 Thread Javier Fox
Ah, thank you so much. I'll give this a shot in the morning and hopefully it will do what we need it to do. Thanks again, J Fox [EMAIL PROTECTED] wrote: It's hints file for you then: http://wiki.freeradius.org/Adding%2C_Removing%2C_Modifying_Attributes_for_further_processing You should be