[RADIATOR] PostAuthHook isn't called from a TunnelledByTTLS=1 handler

2011-05-18 Thread René Hennequin
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

Re: [RADIATOR] PostAuthHook isn't called from a TunnelledByTTLS=1 handler

2011-05-18 Thread René Hennequin
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,

Re: [RADIATOR] PostAuthHook isn't called from a TunnelledByTTLS=1 handler

2011-05-18 Thread Alan Buxey
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

Re: [RADIATOR] PostAuthHook isn't called from a TunnelledByTTLS=1 handler

2011-05-18 Thread Alan Buxey
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 ___

Re: (RADIATOR) PostAuthHook (Sockets creation)

2003-10-03 Thread Hugh Irvine
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

(RADIATOR) PostAuthHook and DB connection

2003-09-26 Thread S H A N
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

RE: (RADIATOR) PostAuthHook and DB connection

2003-09-26 Thread Frank Danielson
: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

(RADIATOR) PostAuthHook

2003-06-04 Thread Nathan 'Franko' Franklin
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

Re: (RADIATOR) PostAuthHook

2003-06-04 Thread Mike McCauley
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

(RADIATOR) postauthhook, Access-Reject problem.

2002-12-30 Thread Steve Wilson
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

Re: (RADIATOR) postauthhook, Access-Reject problem.

2002-12-30 Thread Hugh Irvine
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

Re: (RADIATOR) postauthhook, Access-Reject problem.

2002-12-30 Thread Steve Wilson
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

Re: (RADIATOR) postauthhook, Access-Reject problem.

2002-12-30 Thread Hugh Irvine
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

(RADIATOR) PostAuthHook nightmares.

2002-11-25 Thread Mike McCauley
-- 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

Re: (RADIATOR) PostAuthHook nightmares.

2002-11-25 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook nightmares.

2002-11-25 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook

2002-07-31 Thread Hugh Irvine
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>

Re: (RADIATOR) PostAuthHook

2002-07-31 Thread Hugh Irvine
  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

Re: (RADIATOR) PostAuthHook

2002-07-31 Thread Jeje
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

Re: (RADIATOR) PostAuthHook

2002-07-31 Thread Mike McCauley
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

(RADIATOR) PostAuthHook

2002-07-30 Thread Radius Admin
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

Re: (RADIATOR) PostAuthHook

2002-07-30 Thread Hugh Irvine
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

(RADIATOR) PostAuthHook and reply-items

2002-04-11 Thread Andrej Harsani
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

Re: (RADIATOR) PostAuthHook and reply-items

2002-04-11 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook Stopped Working

2001-09-05 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook Stopped Working

2001-09-05 Thread Robert Thomson
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

(RADIATOR) PostAuthHook Stopped Working

2001-09-04 Thread Separovic, Jason
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

RE: (RADIATOR) PostAuthHook Stopped Working

2001-09-04 Thread Separovic, Jason
-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

Re: (RADIATOR) PostAuthHook question.

2001-06-22 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook is processing my accounting records

2001-03-29 Thread Hugh Irvine
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 #

Re: (RADIATOR) PostAuthHook

2001-01-11 Thread Charles Sprickman
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

Re: (RADIATOR) PostAuthHook

2001-01-11 Thread Hugh Irvine
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

(RADIATOR) PostAuthHook

2001-01-10 Thread Charles Sprickman
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

Re: (RADIATOR) PostAuthHook

2001-01-10 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook question...

2000-12-06 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook and Vendor Attributes

2000-05-02 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook and Vendor Attributes

2000-05-02 Thread Mike McCauley
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

(RADIATOR) PostAuthHook and Vendor Attributes

2000-05-01 Thread Mike McCauley
--- 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

(RADIATOR) postauthhook

2000-04-17 Thread Brandon
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

Re: (RADIATOR) postauthhook

2000-04-17 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook assigning IP Address.. Please Help !!

1999-12-30 Thread Hugh Irvine
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

Re: (RADIATOR) PostAuthHook assigning IP Address.. Please Help !!

1999-12-30 Thread Antonio Navarro Navarro
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

Re: (RADIATOR) PostAuthHook assigning IP Address.. Please Help!!

1999-12-30 Thread Félix Izquierdo
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

(RADIATOR) PostAuthHook and external files

1999-12-28 Thread Antonio Navarro Navarro
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

(RADIATOR) PostAuthHook source file and little problem

1999-12-28 Thread Antonio Navarro Navarro
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

(RADIATOR) PostAuthHook in an external file

1999-11-30 Thread Antonio Navarro Navarro
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 ===

(RADIATOR) PostAuthHook Function

1999-09-21 Thread ext-aurelien . requiem
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 =

Re: (RADIATOR) PostAuthHook Function

1999-09-21 Thread Hugh Irvine
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

Re: (RADIATOR) Radiator PostAuthHook

1999-06-17 Thread Anonymous
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

(RADIATOR) Radiator PostAuthHook

1999-06-16 Thread Anonymous
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; \

(RADIATOR) PostAuthHook Problem

1999-04-19 Thread Marc Liyanage
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

RE: (RADIATOR) PostAuthHook Successes?

1999-03-12 Thread Arturo Pina
-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

Re: (RADIATOR) PostAuthHook Successes?

1999-03-12 Thread Lars Marowsky-Bree
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