Re: "authentication" sub in perl

2011-10-03 Thread Alan Buxey
...as said in the original thread when I noted your request was EAP and your server had no EAP support (which you've now fixed)...this is an EAP request...and if you haven't really broken your config then the server will use the inner-tunnel virtual serverso you need to add your call to the

Re: FW: "authentication" sub in perl

2011-10-03 Thread Fajar A. Nugraha
On Tue, Oct 4, 2011 at 3:45 AM, Alex rsm wrote: > Ok, > openSLL is installed on my server. No more issue on EAP. However, my debug > line in sub authenticate still is not being called: > Found Auth-Type = EAP As Alan said, "the EAP module saw EAP-Message, and decided to do Auth-Type := EAP". I

Re: FW: "authentication" sub in perl

2011-10-03 Thread Alan DeKok
Alex rsm wrote: > openSLL is installed on my server. No more issue on EAP. However, my > debug line in sub authenticate still is not being called: Read the debug output. The "perl" module isn't being called in the "authenticate" section. Why? Because the "eap" module is being called. Why

FW: "authentication" sub in perl

2011-10-03 Thread Alex rsm
[length 0010], Finished [peap] TLS_accept: SSLv3 write finished A [peap] TLS_accept: SSLv3 flush data [peap] (other): SSL negotiation finished successfully SSL Connection Established [peap] eaptls_process returned 13 [peap] EAPTLS_HANDL

Re: "authentication" sub in perl

2011-10-03 Thread Alan Buxey
Yes yes, you've just confirmed what I said. I know you built it without openssl support...I was giving you advice on how to spot it, so that you can verify all is okay after you've installed the required development packages for openssl on your platformand Google can help you with that. ala

Re: "authentication" sub in perl

2011-10-03 Thread Alan DeKok
Alex rsm wrote: > # apt-get install OpenSSL ... > E: Couldn't find package OpenSSL Use *google* to find out the names of packages on your OS. Or, search the web pages of the OS vendor. It should be less work (and faster) than posting messages to this list. This isn't a FreeRADIUS problem.

RE: "authentication" sub in perl

2011-10-03 Thread Alex rsm
ssl-devel Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package ssl-devel . > Date: Mon, 3 Oct 2011 16:32:44 +0100 > From: a.l.m.bu...@lboro.ac.uk > To: freeradius-users@lists.freeradius.o

Re: "authentication" sub in perl

2011-10-03 Thread Alan Buxey
Hi, >Thank you for the response. >How can I build the FreeRADIUS with EAP support? I checked the configure >and Makefile anc couldn't figure it out did you build it yourself then? if so, then what platform? as that will decide the package name. ssl-devel, ssl-devl, openssl-devel, ope

Re: "authentication" sub in perl

2011-10-03 Thread Jonathan Gazeley
On 03/10/11 13:48, Alex rsm wrote: Alan, Thank you for the response. How can I build the FreeRADIUS with EAP support? I checked the configure and Makefile anc couldn't figure it out No need to edit the Makefile. You need to install a package called something like openssl-devel and then attemp

RE: "authentication" sub in perl

2011-10-03 Thread Alex rsm
> Subject: Re: "authentication" sub in perl > > Hi, > > >As I said only "authorize" sub is being called when receiving a REQUEST > >and not authenticate sub. > >So I need to change Auth-Type to be Perl? > > authenticate fail

Re: "authentication" sub in perl

2011-10-02 Thread Alan Buxey
Hi, >As I said only "authorize" sub is being called when receiving a REQUEST >and not authenticate sub. >So I need to change Auth-Type to be Perl? authenticate fails quite simply because this is an EAP request...and your FreeRADIUS had been built without EAP support. if you have EAP

RE: "authentication" sub in perl

2011-09-30 Thread Alex rsm
found, released from the list [eap] EAP NAK [eap] NAK asked for unsupported type PEAP [eap] No common EAP types found. [eap] Failed in EAP select ++[eap] returns invalid Failed to authenticate the user. Using Post-Auth-Type Reject # Executing group from file /usr/local/etc/raddb/sites-enabled/default +- entering group REJECT {...} [attr_filter.access_reject] expand: %{User-Name} -> abc attr_filter: Matched entry DEFAULT at line 11 ++[attr_filter.access_reject] returns updated Delaying reject of request 1 for 1 seconds Going to the next request Waking up in 0.9 seconds. Sending delayed reject for request 1 Sending Access-Reject of id 1 to 10.0.0.31 port 50048 EAP-Message = 0x04020004 Message-Authenticator = 0x Waking up in 3.9 seconds. Cleaning up request 0 ID 0 with timestamp +22 Waking up in 1.0 seconds. Cleaning up request 1 ID 1 with timestamp +22 Ready to process requests. > Date: Fri, 30 Sep 2011 20:20:29 +0100 > From: a.l.m.bu...@lboro.ac.uk > To: freeradius-users@lists.freeradius.org > Subject: Re: "authentication" sub in perl > > Hi, > > debug? > > alan > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: "authentication" sub in perl

2011-09-30 Thread Alan Buxey
Hi, debug? alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

RE: "authentication" sub in perl

2011-09-30 Thread Alex rsm
eployingradius.com > To: freeradius-users@lists.freeradius.org > Subject: Re: "authentication" sub in perl > > Alex rsm wrote: > > I am trying to call an external perl function within "authentication" sub" > > > > - functions are uncommented i

Re: "authentication" sub in perl

2011-09-30 Thread Alan Buxey
Hi, >Hi, > >I am trying to call an external perl function within "authentication" sub" > >- functions are uncommented in modules/perl file >   ... >   func_authenticate = authenticate >   func_authorize = authorize >   ... > >- subs are modified in /raddb/example

Re: "authentication" sub in perl

2011-09-30 Thread Alan DeKok
Alex rsm wrote: > I am trying to call an external perl function within "authentication" sub" > > - functions are uncommented in modules/perl file >... >func_authenticate = authenticate >func_authorize = authorize >... The default example works. > - subs are modified in /raddb/e

"authentication" sub in perl

2011-09-30 Thread Alex rsm
Hi, I am trying to call an external perl function within "authentication" sub" - functions are uncommented in modules/perl file ... func_authenticate = authenticate func_authorize = authorize ... - subs are modified in /raddb/example.pl sub authenticate{ print "TEST1\n"; } sub