Hello Arif -

On Thu, 18 Nov 1999, Yang Tercepat wrote:
> Hi,
> 
> On accounting table, there is nasidentifier fields which is
> default contain IP address of the client port. But since all
> user can see all their connection log coming from, we like
> to represent NAS Identifier as domainname because our port
> is distributed in many city. Is it possible to add a little
> source or add configuration on Radiator Server to resolve from
> IP to domainname?
> 

Subsequent to my mail of a moment ago, there is a slight problem with my
suggestion, and that is the Client-Id attribute is not actually in the packet.
Therefore you will also need to add a PreHandlerHook to add it.

# Configure Client clause with DNS name, something like this:

<Client NAS.city.indo.net.id>
        ....        
        PreHandlerHook sub { my $p = ${$_[0]}; \
            $p->add_attr('ClientName', $p->{Client}->{Name});}     
</Client>

<Handler ...>

 <AuthBy SQL>
         ....
         AccountingTable ....
         ....
         AcctColumnDef NASIDENTIFIER, ClientName
         ....
 </AuthBy>
</Handler>

regards

Hugh

--
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