freeradius data encryption modes

2011-01-28 Thread mcabh
Hi @all, I have installed a freeradius server succesfully. I can login with all my clients using WPA2 (AES-CCMP) PEAP with mschapv2. Last week I got a new notebook that don´t support the data ecryption AES-CCMP. The data encryption that I can specify (in WPA2 with PEAP/mschapv2) only is AES,

Proxying: 2nd server's database doesn't write the realm field

2011-01-28 Thread Marius Pesé
Hi everyone, in my FreeRadius setup accounting requests are proxied to a secondary server, the realm is stripped but still written to database on server1, but server2 only writes the username, the realm field remains empty. Can anyone point me in the right direction on this one? Thanks Marius

Re: Freeradius SQL: PEAP: Tunneled authentication was rejected.

2011-01-28 Thread Alan DeKok
chris wrote: i prepare freeradius with eap/peap and the users file that works fine. Now i setup a sql database, i can use radtest or radeapclient to check the user and password in the database and it works fine, but if i try to connect to freeradius the request will be rejected and i have

Re: daemon for the freeradius rlm_smsotp plugin?

2011-01-28 Thread Alan DeKok
Pasi Kärkkäinen wrote: Hello, https://github.com/alandekok/freeradius-server/blob/stable/raddb/modules/smsotp Are there any daemons available that can be used by the freeradius rlm_smsotp plugin? Or do I need to write my own.. You likely need to write your own. Alan DeKok. - List

Re: Rejecting EAP-TLS based on cert Subject field

2011-01-28 Thread Alan DeKok
Matt Garretson wrote: Thanks. That's actually my goal. But unlang isn't allowed in authenticate{}, Yes, it is. You just need to put it into a subsection. See the comments around eap in the authenticate section for 2.1.10. and my attempts to sneak it into the authentication phase via

Re: SSH-Login libpam-radius-auth

2011-01-28 Thread Alan DeKok
Marius.Meisner wrote: If I try to authenticate from ssh I receive this message: rad_recv: Access-Request packet from host 127.0.0.1 port 3666, id=208, length=88 User-Name = lisa User-Password = \010\n\r\177INCORRECT The password is being changed by the PAM libraries on

Re: Rejecting EAP-TLS based on cert Subject field

2011-01-28 Thread Alan DeKok
Matt Garretson wrote: It works, but there are two non-ideal things about the way it works: 1) Windows XP doesn't seem to notice the rejection and keeps retrying for a minute or two, ultimately failing to show any failure/error message to the user. You're sending a *radius* reject. It

Re: freeradius data encryption modes

2011-01-28 Thread Alan DeKok
mc...@gmx.de wrote: Hi @all, I have installed a freeradius server succesfully. I can login with all my clients using WPA2 (AES-CCMP) PEAP with mschapv2. Last week I got a new notebook that don´t support the data ecryption AES-CCMP. The data encryption that I can specify (in WPA2 with

Re: Proxying: 2nd server's database doesn't write the realm field

2011-01-28 Thread Alan DeKok
Marius Pesé wrote: in my FreeRadius setup accounting requests are proxied to a secondary server, the realm is stripped but still written to database on server1, but server2 only writes the username, the realm field remains empty. Can anyone point me in the right direction on this one? Don't

SQL Logging

2011-01-28 Thread Kristoffer Milligan
Hello again, I'm still fighting my little battle in copying attributes from the inner to the outer tunnel etc. I have now gotten as far that logging access-accepts is working as I want, but I'm now struggling logging access-rejects. Here's my SQL from dialup.conf: postauth_query =

RE: Proxying: 2nd server's database doesn't write the realm field

2011-01-28 Thread Marius Pesé
Hi Alan, switched stripping off in radiusd on server1 and restarted the daemon but nothing seems to have changed. Server1's DB still has the stripped username in username field and the realm in realm field, server2 has the stripped username but no realm. Should I send a debug output or can you

Re: Proxying: 2nd server's database doesn't write the realm field

2011-01-28 Thread Fajar A. Nugraha
On Fri, Jan 28, 2011 at 4:15 PM, Marius Pesé mar...@mindspring.co.za wrote: Hi Alan, switched stripping off in radiusd on server1 and restarted the daemon but nothing seems to have changed. How? Did you enable nostrip on proxy.conf? Did you edit the right config file? Server1's DB still

Re: Proxying: 2nd server's database doesn't write the realm field

2011-01-28 Thread Alan DeKok
Marius Pesé wrote: switched stripping off in radiusd on server1 and restarted the daemon but nothing seems to have changed. That doesn't make sense. Server1's DB still has the stripped username in username field and the realm in realm field, server2 has the stripped username but no

Re: SQL Logging

2011-01-28 Thread Alan DeKok
Kristoffer Milligan wrote: From an accepted session, everything works fine and the SQL-User-Name and Calling-Station-Id are logged as expected. How come the attributes are empty, even though they are in the reply, only when an access-reject is given? The attributes aren't copied on reject.

Re: Freeradius SQL: PEAP: Tunneled authentication was rejected.

2011-01-28 Thread chris
Hi Alan, thx for the response, and yes i read the debug output and i also found the side you mentioned, to get more information about the output but, as you see in the number of my posting counts, i'm an newbie in using radius. And i didn't understood what these messages should occur in my

Re: Freeradius SQL: PEAP: Tunneled authentication was rejected.

2011-01-28 Thread chris
Hi Alan, thx for the response, and yes i read the debug output and i also found the side you mentioned, to get more information about the output but, as you see in the number of my posting counts, i'm an newbie in using radius. And i didn't understood what these messages should occur in my

Re: SQL Logging

2011-01-28 Thread Kristoffer Milligan
So there is no way to get hold of them ? - Kris On 01/28/2011 10:36 AM, Alan DeKok wrote: Kristoffer Milligan wrote: From an accepted session, everything works fine and the SQL-User-Name and Calling-Station-Id are logged as expected. How come the attributes are empty, even though they are in

Re: Rejecting EAP-TLS based on cert Subject field

2011-01-28 Thread Phil Mayers
On 27/01/11 21:30, Matt Garretson wrote: On 1/27/2011 3:03 PM, Phil Mayers wrote: I've met this need (using 2.1.11 from git) with a simple bit of unlang in post-auth{}: if ( %{TLS-Client-Cert-Subject} =~ /OU=Evil/ ) { reject } Just put this in the authorize section? If it's early

Re: SQL Logging

2011-01-28 Thread Alan DeKok
Kristoffer Milligan wrote: So there is no way to get hold of them ? Edit the source code. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Freeradius SQL: PEAP: Tunneled authentication was rejected.

2011-01-28 Thread Johan Meiring
Hi, Does anyone know what nabble.com is and why the mail looks like this? Clicking the link below the email does show a properly formatted response... On 2011/01/28 12:21 PM, chris wrote: Hi Alan, thx for the response, and yes i read the debug output and i also found the side you mentioned,

Re: Freeradius SQL: PEAP: Tunneled authentication was rejected.

2011-01-28 Thread Phil Mayers
On 28/01/11 12:43, Johan Meiring wrote: Hi, Does anyone know what nabble.com is and why the mail looks like this? It's some kind of tedious post to mailing list via a web UI nonsense. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Sample code for external program w/ EAP?

2011-01-28 Thread McCann, Brian
Hi all. I hate to be a pest...but I cannot find anything really on what I'm trying to do. My setup is a wireless AP (running OpenWRT) using WPA2 - 802.1x authentication, to Freeradius. I'm trying to use a Python program as an external authenticator, so I can check various things with the

RE: Sample code for external program w/ EAP?

2011-01-28 Thread McCann, Brian
I should also mention I'd be perfectly happy with using an exec-program-wait to authenticate the user since our volume is not that high, but I cannot find an example of how to do that either. Thanks, --Brian From: freeradius-users-bounces+bmccann=andmore@lists.freeradius.org

Re: Sample code for external program w/ EAP?

2011-01-28 Thread Phil Mayers
On 28/01/11 15:54, McCann, Brian wrote: Hi all. I hate to be a pest…but I cannot find anything really on what I’m trying to do. My setup is a wireless AP (running OpenWRT) using WPA2 – 802.1x authentication, to Freeradius. I’m trying to use a Python program as an “external authenticator”, so

Re: Sample code for external program w/ EAP?

2011-01-28 Thread Alan DeKok
McCann, Brian wrote: Hi all. I hate to be a pest…but I cannot find anything really on what I’m trying to do. You're trying to have another program authenticate the user. This means setting up that program as being responsible for the authentication. I’m trying to use a Python program as

Re: freeradius data encryption modes

2011-01-28 Thread Brett Littrell
Hey Gustav, WPA and AES is the encryption that occurs between the client and the Access point, not from the client thru the AP to the Radius server. The client establishes an encrypted connection to the AP using WPA/AES(or Tkip), the AP then decrypts that info and uses radius and it's own

Re: Treating octets as string

2011-01-28 Thread Brian Candler
I notice that recently a %{integer:...} expansion was added. Is there perhaps a case for a corresponding %{string:...} expansion? Yes. Editing the dictionaries is not recommended, as it can have additional side effects. Adding %{string:Class} is pretty specific. OK, I've had a go

Re: Rejecting EAP-TLS based on cert Subject field [RESOLVED]

2011-01-28 Thread Matt Garretson
On 1/28/2011 3:48 AM, Alan DeKok wrote: Put the unlang in the authenticate section, after eap: Auth-Type eap { eap if (...) { ... } } Thank you!! That did the trick. The entirety of my authenticate section is

RE: Sample code for external program w/ EAP?

2011-01-28 Thread McCann, Brian
First, that was enlightening because I think you hit on my (possible) confusion of authenticate versus authorize. From my understanding, authenticate says 'user X' with 'password Y' is real. It will fail if the username or password is wrong. Authorize says 'user X' has permission to access

Re: daemon for the freeradius rlm_smsotp plugin?

2011-01-28 Thread Pasi Kärkkäinen
On Fri, Jan 28, 2011 at 09:36:32AM +0100, Alan DeKok wrote: Pasi Kärkkäinen wrote: Hello, https://github.com/alandekok/freeradius-server/blob/stable/raddb/modules/smsotp Are there any daemons available that can be used by the freeradius rlm_smsotp plugin? Or do I need to write my