Re: 802.1x & kerberos
On Mon, 2007-10-15 at 12:22 -0400, Lisa Besko wrote:
> Alan DeKok wrote:
>
> >> DEFAULT Auth-Type := Kerberos
> >> Fall-Through = 1
> >
> > An earlier message in this thread said "Auth-Type = Kerberos". What
> > you have above is different.
>
> An here in lies the problem. I just went back and tested this. I had
> been working with Walt Reynolds on the issue and we had shared some
> files and after that things started working with a Mac client but not
> with my Win XP client (one of the Xsupplicants we had installed had
> hosed the system so I couldn't tell when things had gotten better).
>
> According to the man 5 users page:
>
> Auth-Type = Kerberos is allowed for a server configuration variable such
> as Auth-Type, where as
>
> Auth-Type := Kerberos (note the Colon before the equal sign) is a check
> item and replaces in the configuration items any attribute of the same name.
>
> Having the colon there or not there made a very big difference in how it
> behaved.
Slight clarification:
"Auth-Type = Kerberos" sets Auth-Type IF AND ONLY IF it's unset
"Auth-Type := Kerberos" sets Auth-Type unconditionally
The reason the former works and the latter fails is due to the
following:
authorize {
preprocess
eap
files
}
authorize {
eap
Auth-Type Kerberos {
krb5
}
}
...with this in "users"
nameAuth-Type = Kerberos
The flow through this is:
1. Access-Request/EAP-Message passes through authorize
a. preprocess
b. eap - sees EAP-Message, sets Auth-Type to EAP
c. files - does not match (Auth-Type is already set)
2. Access-Request/EAP-Message passes through authenticate
a. Auth-Type is "EAP", eap module runs
3. TTLS tunnel setup starts
4. Access-Challenge sent back to client
5. steps 1-4 repeated several times
6. EAP-TTLS tunnel established - the INNER packet is then looped back to
the server as a PAP request
7. PAP request passes through authorize
a. preprocess
b. eap - does not match, no-op
c. files - matches, sets Auth-Type to Kerberos
8. PAP request passes through authenticate
a. krb5 called, authenticates PAP request
9. Access-Accept or Access-Reject sent back to TTLS session
10. EAP-TTLS tunnel sends Accept or Reject to client
If you use "Auth-Type := Kerberos", this becomes:
1. EAP
a. preprocess
b. eap - Auth-Type set to EAP
c. files - Auth-Type overriden with Kerberos
2. EAP (authenticate)
a. Auth-Type is kerberos - krb5 module called
b. krb5 module fails, since the packet is an EAP packet (not PAP)
Hope that helps.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
Alan DeKok wrote: DEFAULT Auth-Type := Kerberos Fall-Through = 1 An earlier message in this thread said "Auth-Type = Kerberos". What you have above is different. An here in lies the problem. I just went back and tested this. I had been working with Walt Reynolds on the issue and we had shared some files and after that things started working with a Mac client but not with my Win XP client (one of the Xsupplicants we had installed had hosed the system so I couldn't tell when things had gotten better). According to the man 5 users page: Auth-Type = Kerberos is allowed for a server configuration variable such as Auth-Type, where as Auth-Type := Kerberos (note the Colon before the equal sign) is a check item and replaces in the configuration items any attribute of the same name. Having the colon there or not there made a very big difference in how it behaved. I really appreciate every one that took the time to help figure this out. We actually had it working before I saw Alans message but it's nice to know exactly what that tiny piece did. Thanks, LB - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos (Fixed Subject Line)
Yes Ivan, I apologize for pasting an incomplete image command from my
test machine.
---
Walt Reynolds
Principal Systems Security Development Engineer
Information Technology Central Services
University of Michigan
(734) 615-9438
> -Original Message-
Date: Fri, 12 Oct 2007 15:26:50 +0100
From: <[EMAIL PROTECTED]>
Subject: RE: Freeradius-Users Digest, Vol 30, Issue 48
To: "FreeRadius users mailing list"
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-2
>> > DEFAULT Freeradius-Proxied-To == 127.0.0.1
>> > Fall-Through = Yes
>>
>> That entry does nothing.
>I agree it does nothing for authentication, but this will be part of
>the solution to get accounting records based on the inner identity and
>not the outer with TTLS
>
>Has something changes in recent code that makes this unnecessary?
>
No. You probably want:
DEFAULT FreeRADIUS-Proxied-To == 127.0.0.1
User-Name = `%{User-Name}`
Ivan Kalik
Kalik Informatika ISP
> From: [EMAIL PROTECTED]
[mailto:freeradius-
> [EMAIL PROTECTED] On Behalf Of freeradius-users-
> [EMAIL PROTECTED]
> Sent: Friday, October 12, 2007 12:34 PM
> To: [email protected]
> Subject: Freeradius-Users Digest, Vol 30, Issue 51
>
> Send Freeradius-Users mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.freeradius.org/mailman/listinfo/freeradius-users
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Freeradius-Users digest..."
>
>
> Today's Topics:
>
>1. Re: Freeradius-Users Digest, Vol 30, Issue 48 (Alan DeKok)
>2. RE: Freeradius-Users Digest, Vol 30, Issue 48 ([EMAIL PROTECTED])
>3. Re: rlm_realm doesn't strip the username (Tomasz Zieleniewski)
>4. Re: FATAL: Thread create failed: Cannot allocate memory
> ([EMAIL PROTECTED])
>5. Re: Darwin DirectoryServices (warnnings) (Alan DeKok)
>6. Using freeradius and 802.1x for ssign VLAN X
> ([EMAIL PROTECTED])
>7. Re: rlm_realm doesn't strip the username ([EMAIL PROTECTED])
>
>
> --
>
> Message: 1
> Date: Fri, 12 Oct 2007 16:23:33 +0200
> From: Alan DeKok <[EMAIL PROTECTED]>
> Subject: Re: Freeradius-Users Digest, Vol 30, Issue 48
> To: FreeRadius users mailing list
>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Reynolds, Walter wrote:
> ...
> >>> DEFAULT Freeradius-Proxied-To == 127.0.0.1
> >>> Fall-Through = Yes
> >> That entry does nothing.
> > I agree it does nothing for authentication, but this will be part of
> > the solution to get accounting records based on the inner identity
> and
> > not the outer with TTLS
>
> I don't see why.
>
> > http://www.mail-archive.com/freeradius-
> [EMAIL PROTECTED]/msg02045.html
>
> Which doesn't mention an entry like the one quoted above.
>
> > Has something changes in recent code that makes this unnecessary?
>
> I would first like to know why that entry does anything. It
> certainly
> doesn't set the User-Name. So it doesn't have anything to do with
> fixing the anonymous accounting issue.
>
> Alan DeKok.
>
>
> --
>
> Message: 2
> Date: Fri, 12 Oct 2007 15:26:50 +0100
> From: <[EMAIL PROTECTED]>
> Subject: RE: Freeradius-Users Digest, Vol 30, Issue 48
> To: "FreeRadius users mailing list"
>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-2
>
> >> > DEFAULT Freeradius-Proxied-To == 127.0.0.1
> >> > Fall-Through = Yes
> >>
> >> That entry does nothing.
> >I agree it does nothing for authentication, but this will be part of
> the solution to get accounting records based on the inner identity and
> not the outer with TTLS
> >
> >Has something changes in recent code that makes this unnecessary?
> >
>
> No. You probably want:
>
> DEFAULT FreeRADIUS-Proxied-To == 127.0.0.1
> User-Name = `%{User-Name}`
>
> Ivan Kalik
> Kalik Informatika ISP
>
>
>
> --
>
> Message: 3
> Date: Fri, 12 Oct 2007 16:51:49 +0200
> From: "Tomasz Zieleniewski" <[EMAIL PROTECTED]>
> Subject: Re: rlm_realm doesn't strip the username
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Thank you Alan
>
> I updated to 2.0.0-pre2. But now I have some errors and I can' tcheck
> again:)
> Now when my NAS sends the Accounting request or I try to run 'radtest'
> tool,
> the verification fails.
> I didn't change anything in the configuration and in
Re: 802.1x & kerberos
Giobbi Piero wrote: > Saw this in the list and i allways wondered how to test this, how do you > do it? I don't have any devices that uses EAP so.. If I don't have devices using EAP, I don't test EAP. Otherwise, I use real devices (i.e. laptops and AP's) that do EAP. Or, if I'm in a hurry, I use eapol_test, from wpa_supplicant. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
This will work on almost anything: http://jradius.net/wiki/index.php/JRadiusSimulator Ivan Kalik Kali Informatika ISP Dana 12/10/2007, "Giobbi Piero" <[EMAIL PROTECTED]> piše: >Hi. > >Saw this in the list and i allways wondered how to test this, how do >you do it? I don't have any devices that uses EAP so.. > > >> 5) validate that EAP-TTLS works with username/password "bob" and "bob" > > >thx. > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
Hi. Saw this in the list and i allways wondered how to test this, how do you do it? I don't have any devices that uses EAP so.. 5) validate that EAP-TTLS works with username/password "bob" and "bob" thx.- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
Lisa Besko wrote:
> Thanks for the help so far. Part of the problem is we have probably
> tried so many things we probably messed something up along the way don't
> remember what is is.
Stop right there. If you don't keep track of what you're doing, you
will NEVER get it to work.
Throw away everything you've done, and start with all of the default
configuration files. Then, proceed with the following steps:
1) Configure EAP-TTLS
i.e. the "tls" and "ttls" sub-sections of eap.conf
2) Put the following at the TOP of the "users" file:
bob Cleartext-Password := "bob"
3) Start the server in debug mode
4) validate that you can log in with "bob" using radtest (i.e. PAP)
5) validate that EAP-TTLS works with username/password "bob" and "bob"
6) Configure kerberos in radiusd.conf.
7) Delete the "bob" entry in the "users" file.
8) Replace it with:
DEFAULT Auth-Type = Kerberos
And it WILL work.
...
> authenticate {
> Auth-Type PAP {
> pap
> }
>
> Auth-Type kerberos {
>krb5
> }
> }
If you don't list "eap" there, it won't work. Again, throw away your
existing configuration files, and start from the default ones.
> users:
> DEFAULT Freeradius-Proxied-To == 127.0.0.1
> Fall-Through = Yes
That entry does nothing.
> DEFAULT Auth-Type := Kerberos
> Fall-Through = 1
An earlier message in this thread said "Auth-Type = Kerberos". What
you have above is different. PLEASE follow instructions carefully.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
>rad_recv: Access-Request packet from host 127.0.0.1:49649, id=40, length=65 > User-Name = "[EMAIL PROTECTED]" > User-Password = "" > NAS-IP-Address = 255.255.255.255 > NAS-Port = 0 .. > users: Matched entry DEFAULT at line 5 <=<=<= > modcall[authorize]: module "files" returns ok for request 33 .. >Sending Access-Accept of id 40 to 127.0.0.1 port 49649 > rlm_eap: EAP packet type response id 1 length 18 > rlm_eap: No EAP Start, assuming it's an on-going EAP conversation > modcall[authorize]: module "eap" returns updated for request 4 > users: Matched entry DEFAULT at line 10 <=<=<= > modcall[authorize]: module "files" returns ok for request 4 .. >modcall: leaving group authorize (returns updated) for request 4 > rad_check_password: Found Auth-Type Kerberos >auth: type "Kerberos" > Processing the authenticate section of radiusd.conf >modcall: entering group kerberos for request 4 >rlm_krb5: Attribute "User-Password" is required for authentication. > modcall[authenticate]: module "krb5" returns invalid for request 4 >modcall: leaving group kerberos (returns invalid) for request 4 >auth: Failed to validate the user. Are those DEFAULT entries in users file setting Auth-Type to Kreberos? Delete that. Also remove/comment out another DEFAULT entry setting Auth-Type to System (somewhere in the middle of the users file) since that is most likely why things work when you put user info in users file and won't with Kerberos. If you remove them, server will set the correct Auth-Type by itself. Ivan Kalik Kalik Informatika ISP - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
You should start another topic and add some more information: operating
system, kerberos version, does this happen every time or is it
unpredictable ...
Ivan Kalik
Kalik Informatika ISP
Dana 11/10/2007, "Reynolds, Walter" <[EMAIL PROTECTED]> piše:
>We also have this working with the below settings. However in running
>ver 1.1.6 (maybe others) we have found that there is some sort of
>problem that will cause the Freeradius server to crash. This seems to
>be tied to request with incorrect passwords as notated by the following
>in the log:
>
>Thu Oct 11 10:01:03 2007 : Auth: rlm_krb5: [UserName] krb5_g_i_t_w_p
>failed: Decrypt integrity check failed
>
>Has anyone else seen this or have suggestions for me on this.
>
>> Date: Thu, 11 Oct 2007 15:00:39 +0100
>> From: [EMAIL PROTECTED]
>> Subject: Re: 802.1x & kerberos
>> To: FreeRadius users mailing list
>>
>> Message-ID: <[EMAIL PROTECTED]>
>> Content-Type: text/plain; charset=us-ascii
>>
>> Hi,
>>
>> > It works w/o EAP. I can do a radtest with a valid userid and
>> password
>> > on the kerberos server and get authorized (and not get authorized
>> with
>> > bad information).
>>
>> right
>>
>> > I can get EAP-TTLS to work if I put a user and a password in the
>> radius
>> > users file but that's not what we want. We need the kerberos piece
>> to
>> > work. I'd be happy to send some config files along if that would
>> help.
>> > I feel like I'm missing something small that's so obvious no one
>has
>> > thought to document it.
>>
>> no. you dont need to use the users file for the userid/password.
>> you simply need to ensure that the krb5 module is in the Authorize
>> section and that you have PAP enabled...and that you are using
>EAP-TTLS
>> with PAP inner method.
>>
>> soyour FR config needs at least the following configs...
>>
>> radiusd.conf
>>
>> in the authorize section
>>
>> krb5 {
>>
>> }
>>
>> in the authenticate section (radiusd.conf for 1.1.x, sites-
>> enabled/default for 2.x)
>>
>> Auth-Type krb5 {
>> krb5
>> }
>>
>> you MAY configure krb5 in radiusd we havent found this actually
>> necessary(!)
>>
>> # krb5 {
>> # keytab = /path/to/keytab
>> # service_principal = name_of_principle
>> # }
>>
>>
>>
>> finally. if you are facing issues and you dont help with supplying
>> a log file then please ensure that your RADIUS request isnt being
>> b0rked
>> by something in the users file eg
>>
>> DEFAULT Auth-Type = System
>>
>> you can at least change this to
>>
>> DEFAULT Auth-Type = krb5
>>
>> just for checking(!!)
>>
>> 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: 802.1x & kerberos
Having made no changes to the config but using radtest from the command line this is the debug output using kerberos but not EAP: rad_recv: Access-Request packet from host 127.0.0.1:49649, id=40, length=65 User-Name = "[EMAIL PROTECTED]" User-Password = "" NAS-IP-Address = 255.255.255.255 NAS-Port = 0 Processing the authorize section of radiusd.conf modcall: entering group authorize for request 33 modcall[authorize]: module "preprocess" returns ok for request 33 modcall[authorize]: module "chap" returns noop for request 33 modcall[authorize]: module "mschap" returns noop for request 33 rlm_realm: Looking up realm "msu.edu" for User-Name = "[EMAIL PROTECTED]" rlm_realm: Found realm "MSU.EDU" rlm_realm: Adding Stripped-User-Name = "testuser" rlm_realm: Proxying request from user testuser to realm MSU.EDU rlm_realm: Adding Realm = "MSU.EDU" rlm_realm: Authentication realm is LOCAL. modcall[authorize]: module "suffix" returns noop for request 33 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module "eap" returns noop for request 33 users: Matched entry DEFAULT at line 5 modcall[authorize]: module "files" returns ok for request 33 rlm_pap: WARNING! No "known good" password found for the user. Authentication may fail because of this. modcall[authorize]: module "pap" returns noop for request 33 modcall: leaving group authorize (returns ok) for request 33 rad_check_password: Found Auth-Type Kerberos auth: type "Kerberos" Processing the authenticate section of radiusd.conf modcall: entering group kerberos for request 33 rlm_krb5: verify_krb_v5_tgt: host key not found : No such file or directory modcall[authenticate]: module "krb5" returns ok for request 33 modcall: leaving group kerberos (returns ok) for request 33 Sending Access-Accept of id 40 to 127.0.0.1 port 49649 Finished request 33 Going to the next request This is from a message I posted earlier with kerberos and EAP. I hope that's enough of it for you since my client started acting up and now I have to beat on it a bit.: rlm_realm: Looking up realm "msu.edu" for User-Name = "[EMAIL PROTECTED]" rlm_realm: Found realm "MSU.EDU" rlm_realm: Adding Stripped-User-Name = "testuser" rlm_realm: Proxying request from user testuser to realm MSU.EDU rlm_realm: Adding Realm = "MSU.EDU" rlm_realm: Authentication realm is LOCAL. modcall[authorize]: module "suffix" returns noop for request 4 rlm_eap: EAP packet type response id 1 length 18 rlm_eap: No EAP Start, assuming it's an on-going EAP conversation modcall[authorize]: module "eap" returns updated for request 4 users: Matched entry DEFAULT at line 10 modcall[authorize]: module "files" returns ok for request 4 rlm_pap: WARNING! No "known good" password found for the user. Authentication may fail because of this. modcall[authorize]: module "pap" returns noop for request 4 modcall: leaving group authorize (returns updated) for request 4 rad_check_password: Found Auth-Type Kerberos auth: type "Kerberos" Processing the authenticate section of radiusd.conf modcall: entering group kerberos for request 4 rlm_krb5: Attribute "User-Password" is required for authentication. modcall[authenticate]: module "krb5" returns invalid for request 4 modcall: leaving group kerberos (returns invalid) for request 4 auth: Failed to validate the user. = [EMAIL PROTECTED] wrote: Can you post the debug (radiusd -X) for the same user with and without EAP (using Kerberos - no users file entry). Ivan Kalik kalik Informatika ISP Dana 11/10/2007, "Lisa Besko" <[EMAIL PROTECTED]> piše: It works w/o EAP. I can do a radtest with a valid userid and password on the kerberos server and get authorized (and not get authorized with bad information). I can get EAP-TTLS to work if I put a user and a password in the radius users file but that's not what we want. We need the kerberos piece to work. I'd be happy to send some config files along if that would help. I feel like I'm missing something small that's so obvious no one has thought to document it. We can get various parts working at any given moment with kerberos but we can't get it all working. Thanks, LB [EMAIL PROTECTED] wrote: It should be. Use EAP-TTLS/PAP and configure kerberos module in radiusd.conf: http://wiki.freeradius.org/index.php/Rlm_krb5 Make sure that it works without EAP first. Ivan Kalik Kalik Informatika ISP Dana 10/10/2007, "Lisa Besko" <[EMAIL PROTECTED]> piše: Is there a way to do 802.1x with Kerberos authentication using Freeradius? If their is can anyone point me in the right direction? We have been trying eap-ttls most recently with very little luck but everything I have read says this should be possible. What are we missing? - List info/subscribe/unsubscribe? See
Re: 802.1x & kerberos
On Thu, Oct 11, 2007 at 11:28:36AM -0400, Lisa Besko wrote:
> Thanks for the help so far. Part of the problem is we have probably tried
> so many things we probably messed something up along the way don't remember
> what is is.
>
> I think I have all the right stuff in the config files. I'll do a little
> cut and paste here and maybe you will spot something I missed.
>
> radius.conf (and all the eap parts are uncommented as well):
>
> modules {
> ..
> krb5 {
> # keytab containing the key used by rlm_krb5
> keytab = /usr/local/raddb/nmserv.keytab
>
> # principal that is used by rlm_krb5
> #service_principal = host/[EMAIL PROTECTED]
> }
> .
>
> pap {
> auto_header = yes
> }
>
> }
>
> authenticate {
> Auth-Type PAP {
> pap
> }
>
> Auth-Type kerberos {
>krb5
> }
> }
>
I think this should be Kerberos and not kerberos.
Ken
>
> ---
> eap.conf:
> eap {
> default_eap_type = ttls
> md5 {
> }
>
> tls {
> private_key_password = whatever
> private_key_file = ${raddbdir}/certs/cert-srv.pem
> certificate_file = ${raddbdir}/certs/cert-srv.pem
> CA_file = ${raddbdir}/certs/demoCA/cacert.pem
> dh_file = ${raddbdir}/certs/dh
> random_file = ${raddbdir}/certs/random
> }
>
> ttls {
>
> default_eap_type = md5
> copy_request_to_tunnel = yes
> use_tunneled_reply = yes
> }
> }
>
>
>
> users:
> DEFAULT Freeradius-Proxied-To == 127.0.0.1
> Fall-Through = Yes
>
> DEFAULT Auth-Type := Kerberos
> Fall-Through = 1
>
>
> Debug out put at the moment:
>
> rlm_realm: Looking up realm "msu.edu" for User-Name = "[EMAIL PROTECTED]"
> rlm_realm: Found realm "MSU.EDU"
> rlm_realm: Adding Stripped-User-Name = "testuser"
> rlm_realm: Proxying request from user testuser to realm MSU.EDU
> rlm_realm: Adding Realm = "MSU.EDU"
> rlm_realm: Authentication realm is LOCAL.
> modcall[authorize]: module "suffix" returns noop for request 4
> rlm_eap: EAP packet type response id 1 length 18
> rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
> modcall[authorize]: module "eap" returns updated for request 4
> users: Matched entry DEFAULT at line 10
> modcall[authorize]: module "files" returns ok for request 4
> rlm_pap: WARNING! No "known good" password found for the user.
> Authentication may fail because of this.
> modcall[authorize]: module "pap" returns noop for request 4
> modcall: leaving group authorize (returns updated) for request 4
> rad_check_password: Found Auth-Type Kerberos
> auth: type "Kerberos"
> Processing the authenticate section of radiusd.conf
> modcall: entering group kerberos for request 4
> rlm_krb5: Attribute "User-Password" is required for authentication.
> modcall[authenticate]: module "krb5" returns invalid for request 4
> modcall: leaving group kerberos (returns invalid) for request 4
> auth: Failed to validate the user.
>
>
> [EMAIL PROTECTED] wrote:
>
>> no. you dont need to use the users file for the userid/password. you
>> simply need to ensure that the krb5 module is in the Authorize
>> section and that you have PAP enabled...and that you are using EAP-TTLS
>> with PAP inner method.
>> soyour FR config needs at least the following configs...
>> radiusd.conf
>> in the authorize section
>> krb5 {
>> }
>> in the authenticate section (radiusd.conf for 1.1.x, sites-enabled/default
>> for 2.x)
>> Auth-Type krb5 {
>> krb5
>> }
>> you MAY configure krb5 in radiusd we havent found this actually
>> necessary(!)
>> # krb5 {
>> # keytab = /path/to/keytab
>> # service_principal = name_of_principle
>> # }
>> finally. if you are facing issues and you dont help with supplying a log
>> file then please ensure that your RADIUS request isnt being b0rked
>> by something in the users file eg
>> DEFAULT Auth-Type = System
>> you can at least change this to
>> DEFAULT Auth-Type = krb5
>> just for checking(!!)
>> alan
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
>
> --
> Lisa Besko
> -
> 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: 802.1x & kerberos
Thanks for the help so far. Part of the problem is we have probably
tried so many things we probably messed something up along the way don't
remember what is is.
I think I have all the right stuff in the config files. I'll do a
little cut and paste here and maybe you will spot something I missed.
radius.conf (and all the eap parts are uncommented as well):
modules {
..
krb5 {
# keytab containing the key used by rlm_krb5
keytab = /usr/local/raddb/nmserv.keytab
# principal that is used by rlm_krb5
#service_principal = host/[EMAIL PROTECTED]
}
.
pap {
auto_header = yes
}
}
authenticate {
Auth-Type PAP {
pap
}
Auth-Type kerberos {
krb5
}
}
---
eap.conf:
eap {
default_eap_type = ttls
md5 {
}
tls {
private_key_password = whatever
private_key_file = ${raddbdir}/certs/cert-srv.pem
certificate_file = ${raddbdir}/certs/cert-srv.pem
CA_file = ${raddbdir}/certs/demoCA/cacert.pem
dh_file = ${raddbdir}/certs/dh
random_file = ${raddbdir}/certs/random
}
ttls {
default_eap_type = md5
copy_request_to_tunnel = yes
use_tunneled_reply = yes
}
}
users:
DEFAULT Freeradius-Proxied-To == 127.0.0.1
Fall-Through = Yes
DEFAULT Auth-Type := Kerberos
Fall-Through = 1
Debug out put at the moment:
rlm_realm: Looking up realm "msu.edu" for User-Name = "[EMAIL PROTECTED]"
rlm_realm: Found realm "MSU.EDU"
rlm_realm: Adding Stripped-User-Name = "testuser"
rlm_realm: Proxying request from user testuser to realm MSU.EDU
rlm_realm: Adding Realm = "MSU.EDU"
rlm_realm: Authentication realm is LOCAL.
modcall[authorize]: module "suffix" returns noop for request 4
rlm_eap: EAP packet type response id 1 length 18
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 4
users: Matched entry DEFAULT at line 10
modcall[authorize]: module "files" returns ok for request 4
rlm_pap: WARNING! No "known good" password found for the user.
Authentication may fail because of this.
modcall[authorize]: module "pap" returns noop for request 4
modcall: leaving group authorize (returns updated) for request 4
rad_check_password: Found Auth-Type Kerberos
auth: type "Kerberos"
Processing the authenticate section of radiusd.conf
modcall: entering group kerberos for request 4
rlm_krb5: Attribute "User-Password" is required for authentication.
modcall[authenticate]: module "krb5" returns invalid for request 4
modcall: leaving group kerberos (returns invalid) for request 4
auth: Failed to validate the user.
[EMAIL PROTECTED] wrote:
no. you dont need to use the users file for the userid/password.
you simply need to ensure that the krb5 module is in the Authorize
section and that you have PAP enabled...and that you are using EAP-TTLS
with PAP inner method.
soyour FR config needs at least the following configs...
radiusd.conf
in the authorize section
krb5 {
}
in the authenticate section (radiusd.conf for 1.1.x, sites-enabled/default for
2.x)
Auth-Type krb5 {
krb5
}
you MAY configure krb5 in radiusd we havent found this actually
necessary(!)
# krb5 {
# keytab = /path/to/keytab
# service_principal = name_of_principle
# }
finally. if you are facing issues and you dont help with supplying
a log file then please ensure that your RADIUS request isnt being b0rked
by something in the users file eg
DEFAULT Auth-Type = System
you can at least change this to
DEFAULT Auth-Type = krb5
just for checking(!!)
alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
--
Lisa Besko
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
We also have this working with the below settings. However in running
ver 1.1.6 (maybe others) we have found that there is some sort of
problem that will cause the Freeradius server to crash. This seems to
be tied to request with incorrect passwords as notated by the following
in the log:
Thu Oct 11 10:01:03 2007 : Auth: rlm_krb5: [UserName] krb5_g_i_t_w_p
failed: Decrypt integrity check failed
Has anyone else seen this or have suggestions for me on this.
> Date: Thu, 11 Oct 2007 15:00:39 +0100
> From: [EMAIL PROTECTED]
> Subject: Re: 802.1x & kerberos
> To: FreeRadius users mailing list
>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> > It works w/o EAP. I can do a radtest with a valid userid and
> password
> > on the kerberos server and get authorized (and not get authorized
> with
> > bad information).
>
> right
>
> > I can get EAP-TTLS to work if I put a user and a password in the
> radius
> > users file but that's not what we want. We need the kerberos piece
> to
> > work. I'd be happy to send some config files along if that would
> help.
> > I feel like I'm missing something small that's so obvious no one
has
> > thought to document it.
>
> no. you dont need to use the users file for the userid/password.
> you simply need to ensure that the krb5 module is in the Authorize
> section and that you have PAP enabled...and that you are using
EAP-TTLS
> with PAP inner method.
>
> soyour FR config needs at least the following configs...
>
> radiusd.conf
>
> in the authorize section
>
> krb5 {
>
> }
>
> in the authenticate section (radiusd.conf for 1.1.x, sites-
> enabled/default for 2.x)
>
> Auth-Type krb5 {
> krb5
> }
>
> you MAY configure krb5 in radiusd we havent found this actually
> necessary(!)
>
> # krb5 {
> # keytab = /path/to/keytab
> # service_principal = name_of_principle
> # }
>
>
>
> finally. if you are facing issues and you dont help with supplying
> a log file then please ensure that your RADIUS request isnt being
> b0rked
> by something in the users file eg
>
> DEFAULT Auth-Type = System
>
> you can at least change this to
>
> DEFAULT Auth-Type = krb5
>
> just for checking(!!)
>
> alan
>
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
Can you post the debug (radiusd -X) for the same user with and without EAP (using Kerberos - no users file entry). Ivan Kalik kalik Informatika ISP Dana 11/10/2007, "Lisa Besko" <[EMAIL PROTECTED]> piše: >It works w/o EAP. I can do a radtest with a valid userid and password >on the kerberos server and get authorized (and not get authorized with >bad information). > >I can get EAP-TTLS to work if I put a user and a password in the radius >users file but that's not what we want. We need the kerberos piece to >work. I'd be happy to send some config files along if that would help. > I feel like I'm missing something small that's so obvious no one has >thought to document it. > >We can get various parts working at any given moment with kerberos but >we can't get it all working. > >Thanks, > >LB > >[EMAIL PROTECTED] wrote: >> It should be. Use EAP-TTLS/PAP and configure kerberos module in >> radiusd.conf: >> >> http://wiki.freeradius.org/index.php/Rlm_krb5 >> >> Make sure that it works without EAP first. >> >> Ivan Kalik >> Kalik Informatika ISP >> >> >> Dana 10/10/2007, "Lisa Besko" <[EMAIL PROTECTED]> piše: >> >>> Is there a way to do 802.1x with Kerberos authentication using Freeradius? >>> >>> If their is can anyone point me in the right direction? >>> >>> We have been trying eap-ttls most recently with very little luck but >>> everything I have read says this should be possible. What are we missing? >- >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: 802.1x & kerberos
Hi,
> It works w/o EAP. I can do a radtest with a valid userid and password
> on the kerberos server and get authorized (and not get authorized with
> bad information).
right
> I can get EAP-TTLS to work if I put a user and a password in the radius
> users file but that's not what we want. We need the kerberos piece to
> work. I'd be happy to send some config files along if that would help.
> I feel like I'm missing something small that's so obvious no one has
> thought to document it.
no. you dont need to use the users file for the userid/password.
you simply need to ensure that the krb5 module is in the Authorize
section and that you have PAP enabled...and that you are using EAP-TTLS
with PAP inner method.
soyour FR config needs at least the following configs...
radiusd.conf
in the authorize section
krb5 {
}
in the authenticate section (radiusd.conf for 1.1.x, sites-enabled/default for
2.x)
Auth-Type krb5 {
krb5
}
you MAY configure krb5 in radiusd we havent found this actually
necessary(!)
# krb5 {
# keytab = /path/to/keytab
# service_principal = name_of_principle
# }
finally. if you are facing issues and you dont help with supplying
a log file then please ensure that your RADIUS request isnt being b0rked
by something in the users file eg
DEFAULT Auth-Type = System
you can at least change this to
DEFAULT Auth-Type = krb5
just for checking(!!)
alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
It works w/o EAP. I can do a radtest with a valid userid and password on the kerberos server and get authorized (and not get authorized with bad information). I can get EAP-TTLS to work if I put a user and a password in the radius users file but that's not what we want. We need the kerberos piece to work. I'd be happy to send some config files along if that would help. I feel like I'm missing something small that's so obvious no one has thought to document it. We can get various parts working at any given moment with kerberos but we can't get it all working. Thanks, LB [EMAIL PROTECTED] wrote: It should be. Use EAP-TTLS/PAP and configure kerberos module in radiusd.conf: http://wiki.freeradius.org/index.php/Rlm_krb5 Make sure that it works without EAP first. Ivan Kalik Kalik Informatika ISP Dana 10/10/2007, "Lisa Besko" <[EMAIL PROTECTED]> piše: Is there a way to do 802.1x with Kerberos authentication using Freeradius? If their is can anyone point me in the right direction? We have been trying eap-ttls most recently with very little luck but everything I have read says this should be possible. What are we missing? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: 802.1x & kerberos
It should be. Use EAP-TTLS/PAP and configure kerberos module in radiusd.conf: http://wiki.freeradius.org/index.php/Rlm_krb5 Make sure that it works without EAP first. Ivan Kalik Kalik Informatika ISP Dana 10/10/2007, "Lisa Besko" <[EMAIL PROTECTED]> piše: >Is there a way to do 802.1x with Kerberos authentication using Freeradius? > >If their is can anyone point me in the right direction? > >We have been trying eap-ttls most recently with very little luck but >everything I have read says this should be possible. What are we missing? > >Thanks, > >LB >- >List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
802.1x & kerberos
Is there a way to do 802.1x with Kerberos authentication using Freeradius? If their is can anyone point me in the right direction? We have been trying eap-ttls most recently with very little luck but everything I have read says this should be possible. What are we missing? Thanks, LB - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

