Re: adding Client-Short-Name attribute

2003-12-03 Thread Joe Maimon
* From: Guy Fraser * Subject: Re: adding Client-Short-Name attribute * Date: Mon, 01 Dec 2003 10:21:46 -0800 Here is a script I wrote in perl to process the clients.conf file and output a comma seperated variable

Re: adding Client-Short-Name attribute

2003-12-01 Thread Guy Fraser
%$^&$* I forgot the stupid file :-[ . Here it is. #!/usr/bin/perl # $|=1; $clients=shift||'/usr/local/etc/raddb/clients.conf'; # Customize for your default domain $domain='incentre.net'; printf("client,secret,shortname,clienttype,login,password\n"); open CLIENTS, "<$clients" or die

Re: adding Client-Short-Name attribute

2003-12-01 Thread Guy Fraser
Here is a script I wrote in perl to process the clients.conf file and output a comma seperated variable list. This can be used to import the clients.conf into a database if you are using one. Then the shortname, doesn't need to take up an attribute, since it can be joined in. I have also updated

Re: adding Client-Short-Name attribute

2003-11-30 Thread Joe Maimon
Joe Maimon wrote: Hello all, I am looking into adding the attribute client-short-name to be treated much as client-ip-address is in rlm_preprocess. However there seems to be two ways of going about obtaining the information. 1) Lookup the client name based on the request->packet->src_ipaddr