(RADIATOR) Use PostAuthHook to assgm private addresses?

Hugh Irvine hugh at open.com.au
Thu Aug 24 02:43:36 CDT 2006


Hello Andrew -

If your hook doesn't alter the reason string, it should be logged in  
the same way as a normal AuthLog SQL.

In other words you shouldn't have to do anything special.

See the code in "Radius/Handler.pm -> sub HandlerResult()".

regards

Hugh


On 24 Aug 2006, at 07:11, Andrew Reeves wrote:

> I didn't find it in the goodies/hooks.txt but somehow it showed up  
> in my umpteenth search of the archives.
>
> My question now is how do I get the original failure reason to log  
> using my <AuthLog SQL>. I assume I need something similar to:
> &main::log($main::LOG_DEBUG, "-->Using Identifier $identifier");
>
> I think I should be able to get it done directly via DBI, but I'd  
> prefer to use Radiator's built in functions.
>
> Thanks
> Andrew
>
> Hugh Irvine wrote:
>>
>> Hello Andrew -
>>
>> So you want to turn an access reject into an access accept and  
>> allocate IP addresses from a specific pool?
>>
>> If so you will find some example hooks that do similar things in  
>> "goodies/hooks.txt" in the Radiator 3.15 distribution.
>>
>> regards
>>
>> Hugh
>>
>>
>>
>> On 23 Aug 2006, at 11:10, Andrew Reeves wrote:
>>
>>> I want to be able to assign non-routable IPs to all failed  
>>> authentication requests in addition to logging the reason for  
>>> failure. So far it appears that I need to use a PostAuthHook but  
>>> that's all I've figured out so far.  I'd also like the IPs  
>>> assigned to come from the pool of private addresses that are  
>>> allocated via <AuthBy DYNADDRESS>
>>>
>>> TIA
>>> Andrew.
>>> _____________________________________________________________
>>> Sent via the WebMail system at http://mail.sunbeach.net:8383
>>>
>>>
>>>
>>>                .
>>> _____________________________________________________________
>>> Sent via the WebMail system at http://mail.sunbeach.net:8383
>>>
>>>
>>>
>>>
>>>
>>> -- 
>>> Archive at http://www.open.com.au/archives/radiator/
>>> Announcements on radiator-announce at open.com.au
>>> To unsubscribe, email 'majordomo at open.com.au' with
>>> 'unsubscribe radiator' in the body of the message.
>>
>>
>>
>> NB:
>>
>> Have you read the reference manual ("doc/ref.html")?
>> Have you searched the mailing list archive (www.open.com.au/ 
>> archives/radiator)?
>> Have you had a quick look on Google (www.google.com)?
>> Have you included a copy of your configuration file (no secrets),
>> together with a trace 4 debug showing what is happening?
>>
>> --Radiator: the most portable, flexible and configurable RADIUS  
>> server
>> anywhere. Available on *NIX, *BSD, Windows, MacOS X.
>> Includes support for reliable RADIUS transport (RadSec),
>> and DIAMETER translation agent.
>> -
>> Nets: internetwork inventory and management - graphical, extensible,
>> flexible with hardware, software, platform and database independence.
>> -
>> CATool: Private Certificate Authority for Unix and Unix-like systems.
>>
>>
>>
>>
>
> --
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.



NB:

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/ 
radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
Includes support for reliable RADIUS transport (RadSec),
and DIAMETER translation agent.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.


--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list