Hi all,
It looks like PostAuthHook isn't called from the TunnelledByTTLS=1 handler.
The handler:
Handler TunnelledByTTLS=1, Realm=/(abc.nl)*/i
# Remove realms and other things
RewriteUsername s/^([^@]+).*/$1/
# connect to LDAP for authentication
# may use both servers but first
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:
Handler TunnelledByTTLS=1,
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
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
___
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
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
: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 trying to think
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 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
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 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
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
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
-- 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
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
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
ing called?
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
Hello -
The PostAuthHook is a Realm (or Handler) parameter.
Realm >
AuthBy SQL>
Thank you."
- 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.
Realm >
AuthBy SQL>
.
/AuthBy>
PostAuthH
an authentication request is made in the log file. Is it being called?
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
Hello -
The PostAuthHook
request is made in the log file. Is it being called?
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
Hello
I am trying to implement a
PostAuthHook.
I have added the following line in my configuration
file
Realm ..
AuthBy SQL
blah
blah
PostAuthHook
file:"%D/SetActive.txt"
/AuthBy
/Realm
When I start Radiator I get the following error:
ERR: Unknown keyword 'PostAuthHook' in
I am
Hello -
The PostAuthHook is a Realm (or Handler) parameter.
Realm >
AuthBy SQL>
.
/AuthBy>
PostAuthHook file:"%D/SetActive.txt"
/Realm>
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
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
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 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
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
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
-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 the changes to the
config I sent a NOHUP
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 would
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 Request-Type = Accounting-Request
.
/Handler
#
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 and
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 "PostAuthHook" did
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 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
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 do
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
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
Hugh,
Thanks, from your comments I was able
--- 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
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
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 username
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 to
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
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 the
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
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
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
===
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 =
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 doesn't
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 documentation, you need
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
-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
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
53 matches
Mail list logo