Hi Tom,

On May 27, 11:43am, tom wrote:
> Subject: (RADIATOR) NAS-IP-Address
>
> Hi all,
>
> Is it possible to us "hostname" instead of using
> IP addresses?
No. The actual data in the NAS-IP-Address is an IP address.

It might be possible to make a PreHandlerHook that does a reverse lookup on the
NAS-IP-Address and changes it to the DNS name, or adds a NAS-Host?

Something like this (untested):

sub {
 my $p = ${$_[0]};
 my $addr;
 if ($addr = $p->getNasId())
 {
   $p->add_attr('NAS-Host', scalar gethostbyaddr
                           ($addr, Socket::AF_INET));
 }
}


>
> Like
>
>    joe        Auth-type = System, NAS-IP-Address = /^portmaster[0-9]/
>
>
> Or is there a patch or hack to allow NAS-Hostname.
Nice idea.

>
> Regards,
> Tom
>
>
> ===
> Archive at http://www.thesite.com.au/~radiator/
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
>-- End of excerpt from tom



-- 
Mike McCauley                               [EMAIL PROTECTED]
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8, 
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to