Check on ADSL-Agent-Remote-Id instead of username

Marijn van Gool marijn.vangool at comsave.com
Mon Apr 16 21:53:36 CEST 2018


The only thing I did now is this:

server {
	authorize {
   		if ("%{sql:SELECT agent_remote_id FROM radremoteid WHERE agent_remote_id = '%{string:ADSL-Agent-Remote-Id}'}" != "") {
   	        	update request {
      	             		User-Name := "%{string:&ADSL-Agent-Remote-Id}"
               		 }
        	}
	}
}

For this I had to populate the radcheck table where I added the ADSL-Agent-Remote-Id | Auth-Type | := | Accept.

Would I only do this:

update control {
	Auth-Type := Accept
}

I noticed that the SELECT query on the radreply table gets skipped.

Is it necessary to make a ADSL-Agent-Remote-Id table at all.
I could just populate tables radcheck, radreply, radgroupcheck and radgroupreply.
Your thoughts on this?

Met vriendelijke groet \ With kind regards,

Marijn van Gool
NOC Network Engineer
noc at comsave.com <mailto:noc at comave.com> 

+31 88 999 5555
marijn.vangool at comsave.com <mailto:marijn.vangool at comsave.com> 
www.comsave.nl <http://www.comsave.nl/> 






> On 16 Apr 2018, at 17:52, Martin Pauly <pauly at hrz.uni-marburg.de> wrote:
> 
> 
>> update request {
>> 		Tmp-String-0 := "%{string:&ADSL-Agent-Remote-Id}"
>> 	}
> yep, and unlang is not a language except it has if/then, fancy type conversions and
> lots of other stuff built in for just about every processing need ...
> Very nice understatement, this name :-))
> 
> -- 
>  Dr. Martin Pauly     Phone:  +49-6421-28-23527
>  HRZ Univ. Marburg    Fax:    +49-6421-28-26994
>  Hans-Meerwein-Str.   E-Mail: pauly at HRZ.Uni-Marburg.DE
>  D-35032 Marburg
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list