Hi,
> Never mind, if the external script contains errors, the hook isn't
> processed. It is displayed in the log at startup.
oh, okay. handy - it'd be nice if it reported that ... eg
'ERR: Dodgy PostAuthHook script, so not running it" :-)
alan
___
radi
Hi,
what version are you running - i know in much older versions there
was a small b ug with PostAuthHook and handlers... however, are you sure
that this handler is the one being called (your debug doesnt fully show)
..and what happens if you put the PostAuthHook *inside* the group
AuthBy loop ins
Never mind, if the external script contains errors, the hook isn't
processed. It is displayed in the log at startup.
René
Op 18-5-2011 14:11, René Hennequin schreef:
> Hi all,
>
> It looks like PostAuthHook isn't called from the TunnelledByTTLS=1 handler.
> The handler:
>
> # Remove realms a
Hi all,
It looks like PostAuthHook isn't called from the TunnelledByTTLS=1 handler.
The handler:
# Remove realms and other things
RewriteUsername s/^([^@]+).*/$1/
# connect to LDAP for authentication
# may use both servers but first try local
MaxSessions 3
AuthByP
Hello Benny -
You could write a StartupHook to set up the socket and then simply use
it in your PostAuthHook.
See the example hooks in "goodies/hooks.txt".
regards
Hugh
On Friday, Oct 3, 2003, at 18:08 Australia/Melbourne, Benny Chee wrote:
hi,
i m writing a sub-routine in PostAuthHook whi
hi,
i m writing a sub-routine in PostAuthHook which will send a string to a server
once user in authenticated. I written a client socket program and it was running fine
till when i m getting 100 req/sec, and i got lots of re-transmissions.
i found out that it's the sub-routine t
fax:407.515.9001
ClearSky Mobile Media, Inc.
56 E. Pine St. Suite 200
Orlando, FL 32801
USA
-Original Message-
From: S H A N [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 6:45 AM
To: [EMAIL PROTECTED]
Subject: (RADIATOR) PostAuthHook and DB connection
hi,
i am t
hi,
i am trying to think of a method where i can avoid
connect to db
do something...
disconnect from db
each time one of my hook gets processing in a radius operation for each
postauth request. (so if it handles 100k packets it means that i
Hello Nathan,
The problem is the ordering of subs in your file.
Your anonymous hook sub should be at the end of the file, after your named
subs, not at the beginning.
Cheers.
On Wed, 4 Jun 2003 12:51 pm, Nathan 'Franko' Franklin wrote:
> Hello List,
>
> This is a bit off topic, but i was wande
Hello List,
This is a bit off topic, but i was wandering if you
guys could help me
I have a PostAuthHook and inside the postauthhook i
want to call some subs in that hook file. I am not really a perl programmer, but
i try, anyway it isnt working
Could someone tell me why
PostAuthHook
Hello Steve -
Ah right.
In that case, just to make my life easier perhaps your subject line
could refer to a "ReplyHook"?
;-)
cheers
Hugh
On Tuesday, Dec 31, 2002, at 12:02 Australia/Melbourne, Steve Wilson
wrote:
Maybe I should have explained the server setup more ...
The server is act
Maybe I should have explained the server setup more ...
The server is acting as a proxy, but it holds the accounting locally in
MySQL and authenticates from an icradius server until I have time to
merge 5 separate servers into 2 failover with 1 management solution.
Steve.
On Tue, 2002-12-31 at 0
Hello Steve -
I suspect the problem is due to an internal change in the replyTo()
call.
It should look like this (in recent versions of Radiator):
# Reply to the Client that sent the request.
$p->{Client}->replyTo($p);
return;
BTW - for clarity, I would suggest using the correct Post
The attached is our postauthhook file which we use to see if the user
has exceeded their quota of usage, this is calculated on a rolling 30
days. The problem we have is that when a user has used 150% or more we
are trying to send a reject, and due to safety in the script we return 1
second session
Hello Steve -
I am not sure I understand your question regarding two instances of the
hook.
The usual case is to seperate the processing for the two cases using
either Realms or (more generally) Handlers.
And with an AuthBy FILE as you describe, you don't usually need a hook
at all - you jus
At 16:02 26/11/2002, Hugh Irvine wrote:
Hello Steve -
There are some example hooks including a ReplyHook that does pretty much
what you require in the file "goodies/hooks.txt".
If you have any further questions, please let me know.
Found that after I posted the message :-) I'm am now busy LAR
Hello Steve -
There are some example hooks including a ReplyHook that does pretty
much what you require in the file "goodies/hooks.txt".
If you have any further questions, please let me know.
regards
Hugh
Hey all, I have the following script (included below) that I use to
assign
an IP add
-- Forwarded Message --
Subject: BOUNCE [EMAIL PROTECTED]:Non-member submission from [Steve
Phillips <[EMAIL PROTECTED]>]
Date: Mon, 25 Nov 2002 14:26:01 -0600
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
>From [EMAIL PROTECTED] Mon Nov 25 14:26:01 2002
Received: from ma
>>> "*\n";}
> >>>
> >>>
> >>> I have set "trace 4" and I do not see the out put of the above
> >>> function
> >>> when
> >>> an authentication request
;>>
>>>
>>> PostAuthHook sub { print
>>> "*\n";}
>>>
>>>
>>> I have set "trace 4" and I do not see the out put of the above
>>> function
>>> when
>
>>
>> I am running Radiator 3.1
>>
>> Thanks
>>
>> - Original Message -
>> From: Hugh Irvine
>> To: Radius Admin
>> Cc: [EMAIL PROTECTED]
>> Sent: Wednesday, July 31, 2002 7:40 AM
>> Subject: Re: (RADIATOR) PostAuthHook
&g
ugh Irvine
To: Radius Admin
Cc: [EMAIL PROTECTED]
Sent: Wednesday, July 31, 2002 7:40 AM
Subject: Re: (RADIATOR) PostAuthHook
Hello -
The PostAuthHook is a Realm (or Handler) parameter.
.
PostAuthHook file:"%D/SetActive.txt"
There are some example hooks in the file "goo
ing Radiator 3.1
Thanks
- Original Message -
From: Hugh Irvine
To: Radius Admin
Cc: [EMAIL PROTECTED]
Sent: Wednesday, July 31, 2002 7:40 AM
Subject: Re: (RADIATOR) PostAuthHook
Hello -
The PostAuthHook is a Realm (or Handler) parameter.
.
PostAuthHook file:"%D/SetActive.tx
Hello -
The PostAuthHook is a Realm (or Handler) parameter.
.
PostAuthHook file:"%D/SetActive.txt"
There are some example hooks in the file "goodies/hooks.txt" in the distribution.
regards
Hugh
On Tuesday, July 30, 2002, at 11:41 PM, Radius Admin wrote:
I am trying to implement a Po
I am trying to implement a
PostAuthHook.
I have added the following line in my configuration
file
blah
blah
PostAuthHook
file:"%D/SetActive.txt"
When I start Radiator I get the following error:
ERR: Unknown keyword 'PostAuthHook' in
I am not using Handl
Hello Andrej -
Yes this is very easy to do.
Have a look at the example hooks in the file "goodies/hooks.txt".
regards
Hugh
On Thu, 11 Apr 2002 22:20, Andrej Harsani wrote:
> Hello,
>
> Is it possible to access reply-items
> from PostAuthHook? I need to return reply
> value from AuthPLSQL of
Hello,
Is it possible to access reply-items
from PostAuthHook? I need to return reply
value from AuthPLSQL of attribute cisco-h323-return-code
in case of reject.
Thanks.
A.Harsani
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email
Hi Jason.
I've noticed that PostAuthHooks can be fairly temperamental.
You should add to the top of your postauthhook file:
use strict;
use warnings;
Don't forget to do
perl -c "file.pl"
to syntax check it.
One of the reasons I've noticed for silent failures on PostAuthHooks are
un
Hello Jason -
I note that the accounting request that you show below is an
Accounting-On, probably due to "ewong" running some command on the
NAS. I don't know whether your hook deals with this? Note that the
easiest way to test hook code is by putting print commands in the
code and running
> -Original Message-
> From: Separovic, Jason
> Sent: Wednesday, September 05, 2001 2:21 PM
> To: Separovic, Jason
> Subject: RE: (RADIATOR) PostAuthHook Stopped Working
>
> It's working now.
> I had the restartWrapper going and as I was making
Hi,
I had radiator working with my PostAuthHook just how I wanted.
Then I made some changes to the PostAuthHook. All I did (I think?) was
create a new user in my database and then I updated the new
username/password in the config files. Now My PostAuthHook does not work.
And I'm at a loss to real
Hello Griff -
At 9:33 AM -0700 6/21/01, Griff Hamlin wrote:
>Hello,
>
>I'm in need of adding specific attributes to the reply packets for one
>of the routers I have to authenticate (out of hundreds). Since I only
>have need for one handler and we don't use realms, I figure the best
>thing to do
Hello,
I'm in need of adding specific attributes to the reply packets for one
of the routers I have to authenticate (out of hundreds). Since I only
have need for one handler and we don't use realms, I figure the best
thing to do would be to have a little PostAuthHook that tested my
request for th
Hello Brett -
At 12:04 +1000 01/3/30, Brett Murphy wrote:
>Hi All,
>
>How do I stop my PostAuthHook subroutine from processing any Start
>or Stop records?
You can either set up different Handlers:
# Handler for accounting
.
# Handler for authentication
.
Or you
Hi All,
How do I stop my PostAuthHook subroutine from processing any Start or Stop
records?
All the best,
Brett Murphy
Director, Alphalink (Australia) PTY LTD
ph: +61 3 9495-9000 fax: +61 3 9486-6822
email: [EMAIL PROTECTED]
The contents of this message may not be quoted,
copied, reproduced
Hello Charles -
On Friday 12 January 2001 09:40, Charles Sprickman wrote:
> Hi all,
>
> > Your problem is because you haven't declared that you are going to use an
> > external subroutine.
>
> Argh. I'm not clear on that. Where would I be declaring that? I thought
> just specifying "PostAuthH
Hi all,
> Your problem is because you haven't declared that you are going to use an
> external subroutine.
Argh. I'm not clear on that. Where would I be declaring that? I thought
just specifying "PostAuthHook" did that...
> It is much easier to pick up a reference to your AuthBy SQL clause a
Hello Charles -
On Thursday 11 January 2001 12:15, Charles Sprickman wrote:
> Hi,
>
> I've got a stand-alone perl program that hits the RADONLINE db and makes
> entries in an access database for sendmail. On it's own, it works fine,
> but I'm trying to make it work as a subroutine called from a
Hi,
I've got a stand-alone perl program that hits the RADONLINE db and makes
entries in an access database for sendmail. On it's own, it works fine,
but I'm trying to make it work as a subroutine called from a PostAuthHook
in my Handler for IPass requests:
[from radius.cfg...]
AuthBy
Hello Mark -
At 15:42 + 6/12/00, Mark O'Leary wrote:
>Hi,
>
>Is it possible for a PostAuthHook to identify which of multiple AuthBy
>methods in a realm have triggered it?
Actually, the PostAuthHook fires after *all* of the AuthBy clauses
have been executed, so no there is no easy way to d
Hi,
Is it possible for a PostAuthHook to identify which of multiple AuthBy
methods in a realm have triggered it?
I have a ContinueWhileReject realm with Authbys of FILE, then LDAP, then
RADIUS. What I'd like to do is have a postauthhook subroutine react only to
successful LDAP authentications
stin <[EMAIL PROTECTED]>
To: Hugh Irvine <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED]
Subject: Re: (RADIATOR) PostAuthHook and Vendor Attributes
In-Reply-To: <00050216252504.27586@hugo>
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hello Dusty -
>
> I am working on a PostAuthHook that will give us more compact
> logging but I have run into a problem. I can get standard
> attributes pretty easily by using the examples I have seen
> in the Docs and the list. However when I try to get Vendor
> Specific Attributes I come up
--- Forwarded mail from [EMAIL PROTECTED]
Date: Tue, 2 May 2000 05:10:14 +1000 (EST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: BOUNCE [EMAIL PROTECTED]:Non-member submission from [Michael
Dustin <[EMAIL PROTECTED]>]
>From owner-radiator Tue May 2 05:10:10 2000
Received: by os
Hello Brandon -
On Mon, 17 Apr 2000, Brandon wrote:
>
> When doing a postauthhook, or reply handler hook... how do you get the username
> before the "stripping" of the realm takes place. Currently I am doing .
>
> my $username = $p->getUserName();
>
> and it seems to be giving me the u
When doing a postauthhook, or reply handler hook...
how do you get the username before the "stripping" of the realm takes
place. Currently I am doing .
my $username =
$p->getUserName();
and it seems to be giving me the username after the
rewrite takes place.
Thanks
Brandon
Hola Antonio,
Antonio Navarro Navarro wrote:
>
> The problem is that if I assign an IP address to the user in the PreAuthHook (using
>a control file with the status of the IP addresses of the pool) and the user is not
>accepted by the Auth procedure of radiator, the user will be rejected but
At 20.05 30/12/99 +1100, Hugh Irvine wrote:
>Hmmm - your code above will only look at accounting packets (Start,
>Stop, etc.) which are only sent *after* the connection has been set up.
>I suspect what you want to do is process the Access-Request packets
>to return an IP address in the Access-
Hello Antonio -
On Thu, 30 Dec 1999, Antonio Navarro Navarro wrote:
> Hi all !
>
> I am writing a PostAuthHook program in perl in order to assign IP addresses
from a pool to the users. I can get all the information about the request
packet, but the repky packet is always empty and I am unable
Thanks Mike,
I'm starting to get my PostAuthHook running and starting to like Radiator a
lot. My hook so far is:
PostAuthHook sub { my $reply = ${$_[1]};\
my $reqst = ${$_[0]};\
Hi all !
I am writing a PostAuthHook program in perl in order to assign IP addresses from a
pool to the users. I can get all the information about the request packet, but the
repky packet is always empty and I am unable to assign a fixed IP Address to the
connected user.
if ($user eq 'bemar
Hi all !
Here is the source code of the PostAuthHook file that I'm using. As you can see the
Hook only saves basic information of the packets received to a file in the hard disk
and assigns a fixed IP address to an specific user.
The problem is that the assignation doesn't works. The code for
Hello !
I want to add some kind of on-line control to the PostAuthHook. A file will be
mainteined in the hard disk with the users connected. When a start packet is received
a line is added to the file in the disk with the username, logon time, IP Address,
etc... When a Stop packet is received
At 13.06 23/12/99 +1100, [EMAIL PROTECTED] wrote:
>On Tue, 21 Dec 1999, Erik Meitner wrote:
>
>> Is is possible in PostAuthHook in a Realm clause to look at the contents
>> of the check-items that are used in an AuthBy FILE clause?
>
>It would be much simpler to use the Session-Timeout = "until 1
Hello Erik -
On Tue, 21 Dec 1999, Erik Meitner wrote:
> Is is possible in PostAuthHook in a Realm clause to look at the contents
> of the check-items that are used in an AuthBy FILE clause?
> Here is what I'm trying to do:
>I have some Ascend MAX's that do not support any radius attribute to
Is is possible in PostAuthHook in a Realm clause to look at the contents
of the check-items that are used in an AuthBy FILE clause?
Here is what I'm trying to do:
I have some Ascend MAX's that do not support any radius attribute to hang
up a user at a specified time. If a user has a restrice
Hi Hugh !
I'm working in a PostAuthHook on my system, and I was wondering if is possible to
specify an external file instead of writing all the PostAuthHook code in the
configuration file.
Regards,
Antonio Navarro Navarro
BemarNet Management
[EMAIL PROTECTED]
http://www.bemarnet.es
===
Archi
Hello Requiem -
On Wed, 22 Sep 1999, [EMAIL PROTECTED] wrote:
> Hello
>
> In my PostAuthHook function, i need to get the
> framed-ip-address that will be sent to the user.
>
> The first line below works perfectly
> my $username = $p->getAttrByNum($Radius::Radius::USER_NAME);
> but the second
Hello
In my PostAuthHook function, i need to get the
framed-ip-address that will be sent to the user.
The first line below works perfectly
my $username = $p->getAttrByNum($Radius::Radius::USER_NAME);
but the second doesn't want to works.
my $ipaddress = $p->getAttrByNum($Radius::Radius::FRAMED_
Hi Ian,
On Jun 17, 4:09pm, Ian Hughes wrote:
> Subject: (RADIATOR) Radiator PostAuthHook
>
> Trying to use thePostAuthHook function ot have Radiator generate some
> custom logs to give details of all attempted logins. Current PostAuthHook
> shown below;
Contrary to the doc
Trying to use thePostAuthHook function ot have Radiator generate some
custom logs to give details of all attempted logins. Current PostAuthHook
shown below;
PostAuthHook sub { my $filename = "/usr/local/radius/logs/testlog"; \
my $time = time; \
Hi,
I'm having trouble with the PostAuthHook Realm/Handler parameter.
My Hook basically looks like this (stripped down to the essentials):
PostAuthHook sub {\
\
my ($requ
Hi Marc,
On Apr 19, 9:44pm, Marc Liyanage wrote:
> Subject: (RADIATOR) PostAuthHook Problem
>
>
> Hi,
>
> I'm having trouble with the PostAuthHook Realm/Handler parameter.
>
>
> My Hook basically looks like this (stripped down to the e
On 1999-03-12T11:47:37,
"Remi Godin" <[EMAIL PROTECTED]> said:
> There is a patch for the Handler.pm which helped. However I'm still having
> problems. But at least now it is executing the perl code.
Which patch, what should your code do, what does it do, how does it fail, what
does your code
ECTED]>
Date: Friday, March 12, 1999 11:21 AM
Subject: RE: (RADIATOR) PostAuthHook Successes?
>-BEGIN PGP SIGNED MESSAGE-
>
>Hi there,
>I posted a message with this same problem to the list less than a week
>ago. Nobody answered.
>We really broke our head trying to do this
-BEGIN PGP SIGNED MESSAGE-
Hi there,
I posted a message with this same problem to the list less than a week
ago. Nobody answered.
We really broke our head trying to do this but it was impossible.
Honestly, I think that nobody has tried it yet. Perhaps some day Mike
will come back...
On 1
Hi
I'm trying to use PostAuthHook and having no success in adding or deleting
attributes from the reply packet.
Can someone send me an example or two.
Thanks.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Remi Godin Escape Communications Corp.
Jr. S
67 matches
Mail list logo