Re: external script problem

2012-09-21 Thread Phil Mayers
On 20/09/12 22:03, Fajar A. Nugraha wrote: Since the OP's script (the one he posted last anyway) checks something like if ($password == 'bar'), I assume he has passwords in clear text, so it might be possibe to use something like He did say it was simplified but yes, if he has that, that's a

external script problem

2012-09-20 Thread Tarık Kabak
hello everybody. we are trying to external php script to authenticate user pass. radius return access-accept to nas but client ask user pass again ... here is the -X output; FreeRADIUS Version 2.1.12, for host i386-unknown-openbsd5.1, built on Feb 7 2012 at 20:30:59 Copyright (C) 1999-2009

Re: external script problem

2012-09-20 Thread Phil Mayers
On 20/09/12 15:34, Tarık Kabak wrote: rad_recv: Access-Request packet from host 10.0.0.2 port 2048, id=28, length=141 User-Name = test NAS-IP-Address = 10.0.0.2 NAS-Port = 0 Called-Station-Id = 00-1E-E5-21-25-58 Calling-Station-Id = 00-16-44-F9-E6-02

Re: external script problem

2012-09-20 Thread Alan DeKok
Tarık Kabak wrote: we are trying to external php script to authenticate user pass. radius return access-accept to nas but client ask user pass again ... Read scripts/exec-program-wait. script; ?php $user =

Re: external script problem

2012-09-20 Thread Tarık Kabak
Hello again, Thanks for your help. So external script support is possible for only PAP? I wanted to authenticate windows 7 wireless interfaces via radius server cause of an old/non-supported sql db so i had to use my own external/customized php script. 2012/9/20 Alan DeKok

Re: external script problem

2012-09-20 Thread Arran Cudbard-Bell
On 20 Sep 2012, at 18:00, Tarık Kabak tarikka...@gmail.com wrote: Hello again, Thanks for your help. So external script support is possible for only PAP? I wanted to authenticate windows 7 wireless interfaces via radius server cause of an old/non-supported sql db so i had to use my

Re: external script problem

2012-09-20 Thread Tarık Kabak
Hi Arran, Can you tell me please what is wrong with this php script below. Or is there any working example script? Note that this script is just for simplifying at all. Thanks. #!/usr/local/bin/php-5.3 ?php $f = fopen(php://stdin, r); while ($line = fgets($f)) { $line = trim($line);

Re: external script problem

2012-09-20 Thread Matthew Newton
Hi, On Thu, Sep 20, 2012 at 10:56:14PM +0300, Tarık Kabak wrote: Connection is failed. (It asks for user/pass again) Here is output of radiusd -X command: You need to read (again?) what Phil wrote. You're sending an EAP request, and replying with a simple Access-Accept. The NAS might try and

Re: external script problem

2012-09-20 Thread Phil Mayers
On 09/20/2012 08:56 PM, Tarık Kabak wrote: Hi Arran, Can you tell me please what is wrong with this php script below. Or is there any working example script? What's wrong with the script is that what you want to do is impossible. EAP is a challenge-response authentication method. You can't

Re: external script problem

2012-09-20 Thread Fajar A. Nugraha
On Fri, Sep 21, 2012 at 3:24 AM, Phil Mayers p.may...@imperial.ac.uk wrote: The ONLY thing you can do is *if* you are using EAP-TTLS/PAP on the clients and *then* you can use a script, as follows: sites-enabled/inner-tunnel: authorize { ... if (User-Password) { # this is a PAP

External script problem

2007-05-14 Thread Sándor Szabó
Hi! I have the following problem. I use FreeRadius v1.1.6 on an Ubuntu Edgy Linux I'd like to use authentication and accounting with an external PHP script. I think the radius server is configured well. The radius server send the request to the script, I can read it through the $_ENV

Re: External script problem

2007-05-14 Thread Alan DeKok
Sándor Szabó wrote: I'd like to use authentication and accounting with an external PHP script. I think the radius server is configured well. The radius server send the request to the script, I can read it through the $_ENV variable, but there is the problem. In the request I have more

Re: WPA - Freeradius external script problem

2004-10-21 Thread Alan DeKok
[EMAIL PROTECTED] wrote: Ok. I wasn't explaining the situation clear enough. The script always succeeds only for testing. Later on I will implement some logic to it which will check the received user account from external systems and returns exit value 0 or 1 depending on the external

WPA - Freeradius external script problem

2004-10-20 Thread mikkox
I'm using freeRadius version 1.0 and Linksys AP. I am trying to authenticate Wlan users using WPA authentication. The actual authentication is supposed to be done in an external script which is launched from freeRadius. The users are using Windows XP and they authenticate using EAP-PEAP and MSChap

Re: WPA - Freeradius external script problem

2004-10-20 Thread Alan DeKok
[EMAIL PROTECTED] wrote: I'm using freeRadius version 1.0 and Linksys AP. I am trying to authentic= ate Wlan users using WPA authentication. The actual authentication is suppose= d to be done in an external script which is launched from freeRadius. Are you sure? From the example you