Hello,

I'm having problems authenticating windows XP clients using EAP-TTLS
(I'm using Securew2 pluggin) with Freeradius-1.0.0-pre2.

In logs i only see outer authentication "[EMAIL PROTECTED]".
Can anyone have it working?
Thanks

Nuno Fernandes

Freeradius config:
    eap {
        default_eap_type = ttls
        timer_expire     = 60
        ignore_unknown_eap_types = no
        cisco_accounting_username_bug = no

        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
            fragment_size = 1024
            include_length = yes
        }
        #
        ttls {
            #default_eap_type = md5
            #copy_request_to_tunnel = no
            use_tunneled_reply = yes
        }

        peap {
            default_eap_type = mschapv2
        }

        mschapv2 {
        }
    }


Users File:
User1   User-Password == "passwd1"
        Tunnel-Type:0 = VLAN,
        Tunnel-Medium-Type:0 = IEEE-802,
        Tunnel-Private-Group-Id:0 = "4"




Freeradius logs show:

rad_recv: Access-Request packet from host 192.168.0.253:1645, id=10,
length=157
        User-Name = "[EMAIL PROTECTED]"
        Framed-MTU = 1400
        Called-Station-Id = "0002.8a21.1129"
        Calling-Station-Id = "000f.3d87.543f"
        NAS-Port-Type = Wireless-802.11
        Message-Authenticator = 0xa3d8d84921101a1ae828ca990746dab1
        EAP-Message =
0x0201001a01616e6f6e796d6f7573406575726f7475782e636f6d
        NAS-Port-Type = Virtual
        NAS-Port = 20
        Service-Type = Login-User
        NAS-IP-Address = 192.168.0.253
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
  modcall[authorize]: module "preprocess" returns ok for request 0
radius_xlat: 
'/var/log/radius/radacct/192.168.0.253/auth-detail-20040616'
rlm_detail:
/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands
to /var/log/radius/radacct/192.168.0.253/auth-detail-20040616
  modcall[authorize]: module "auth_log" returns ok for request 0
    rlm_realm: Looking up realm "eurotux.com" for User-Name =
"[EMAIL PROTECTED]"
    rlm_realm: Found realm "eurotux.com"
    rlm_realm: Adding Stripped-User-Name = "anonymous"
    rlm_realm: Proxying request from user anonymous to realm eurotux.com
    rlm_realm: Adding Realm = "eurotux.com"
    rlm_realm: Authentication realm is LOCAL.
  modcall[authorize]: module "suffix" returns noop for request 0
  rlm_eap: EAP packet type response id 1 length 26
  rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
  modcall[authorize]: module "eap" returns updated for request 0
  modcall[authorize]: module "files" returns notfound for request 0
modcall: group authorize returns updated for request 0
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
  Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 0
  rlm_eap: EAP Identity
  rlm_eap: processing type tls
  rlm_eap_tls: Initiate
  rlm_eap_tls: Start returned 1
  modcall[authenticate]: module "eap" returns handled for request 0
modcall: group authenticate returns handled for request 0
Sending Access-Challenge of id 10 to 192.168.0.253:1645
        EAP-Message = 0x010200061520
        Message-Authenticator = 0x00000000000000000000000000000000
        State = 0x41fe77eda11d1a9b9c7fa714fd945f6e
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 192.168.0.253:1645, id=11,
length=209
        User-Name = "[EMAIL PROTECTED]"
        Framed-MTU = 1400
        Called-Station-Id = "0002.8a21.1129"
        Calling-Station-Id = "000f.3d87.543f"
        NAS-Port-Type = Wireless-802.11
        Message-Authenticator = 0x13fa184ce90d2922912773ddc1189ee5
        EAP-Message =
0x0202003c158000000032160301002d0100002903017803310085f1af3aaa504b75c9a1e5942f5e4cdcdd3b5d06f7548d8550ad020f000002000a0100
        NAS-Port-Type = Virtual
        NAS-Port = 20
        State = 0x41fe77eda11d1a9b9c7fa714fd945f6e
        Service-Type = Login-User
        NAS-IP-Address = 192.168.0.253
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 1
  modcall[authorize]: module "preprocess" returns ok for request 1
radius_xlat: 
'/var/log/radius/radacct/192.168.0.253/auth-detail-20040616'
rlm_detail:
/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands
to /var/log/radius/radacct/192.168.0.253/auth-detail-20040616
  modcall[authorize]: module "auth_log" returns ok for request 1
    rlm_realm: Looking up realm "eurotux.com" for User-Name =
"[EMAIL PROTECTED]"
    rlm_realm: Found realm "eurotux.com"
    rlm_realm: Adding Stripped-User-Name = "anonymous"
    rlm_realm: Proxying request from user anonymous to realm eurotux.com
    rlm_realm: Adding Realm = "eurotux.com"
    rlm_realm: Authentication realm is LOCAL.
  modcall[authorize]: module "suffix" returns noop for request 1
  rlm_eap: EAP packet type response id 2 length 60
  rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
  modcall[authorize]: module "eap" returns updated for request 1
  modcall[authorize]: module "files" returns notfound for request 1
modcall: group authorize returns updated for request 1
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
  Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 1
  rlm_eap: Request found, released from the list
  rlm_eap: EAP/ttls
  rlm_eap: processing type ttls
  rlm_eap_ttls: Authenticate
  rlm_eap_tls: processing TLS
rlm_eap_tls:  Length Included
  eaptls_verify returned 11
    (other): before/accept initialization
    TLS_accept: before/accept initialization
  rlm_eap_tls: <<< TLS 1.0 Handshake [length 002d], ClientHello
    TLS_accept: SSLv3 read client hello A
  rlm_eap_tls: >>> TLS 1.0 Handshake [length 004a], ServerHello
    TLS_accept: SSLv3 write server hello A
  rlm_eap_tls: >>> TLS 1.0 Handshake [length 0694], Certificate
    TLS_accept: SSLv3 write certificate A
  rlm_eap_tls: >>> TLS 1.0 Handshake [length 0004], ServerHelloDone
    TLS_accept: SSLv3 write server done A
    TLS_accept: SSLv3 flush data
    TLS_accept:error in SSLv3 read client certificate A
In SSL Handshake Phase
In SSL Accept mode
  eaptls_process returned 13
  modcall[authenticate]: module "eap" returns handled for request 1
modcall: group authenticate returns handled for request 1
Sending Access-Challenge of id 11 to 192.168.0.253:1645
        EAP-Message =
0x0103040a15c0000006f1160301004a02000046030140d004fc7750e053346ea597e160efd2df6b3208955f89e32ddfc8146ab3c5cb208d3dc9e90c4e4ac4957a4ac4718028a11ba351962066c6999f50a791c73664d2000a0016030106940b00069000068d0002cd308202c930820232a003020102020102300d06092a864886f70d010104050030819f310b30090603550406130243413111300f0603550408130850726f76696e63653112301006035504071309536f6d65204369747931153013060355040a130c4f7267616e697a6174696f6e31123010060355040b13096c6f63616c686f7374311b301906035504031312436c69656e74206365
        EAP-Message =
0x7274696669636174653121301f06092a864886f70d0109011612636c69656e74406578616d706c652e636f6d301e170d3034303132353133323631305a170d3035303132343133323631305a30819b310b30090603550406130243413111300f0603550408130850726f76696e63653112301006035504071309536f6d65204369747931153013060355040a130c4f7267616e697a6174696f6e31123010060355040b13096c6f63616c686f73743119301706035504031310526f6f74206365727469666963617465311f301d06092a864886f70d0109011610726f6f74406578616d706c652e636f6d30819f300d06092a864886f70d010101050003
        EAP-Message =
0x818d0030818902818100dac525422bfedb082629a2cba44b3449c90d0ab462fb72c8434a782098863d7eb7d7e70028c2b7ad555a51cc756cf4fa1d7091615ab450d5289553ae6616aff014a55085d6b8fb4aee98638e426175cdd36c665c63cda177d34920eb30585edc8773999c2980f81ad4638bbbea1c82d054023db7ef24a3ec1c3f6241a903d7f30203010001a317301530130603551d25040c300a06082b06010505070301300d06092a864886f70d0101040500038181007a2d921b1cf13bf2982a9178ec9ede6d88edc178a2e8bd40a0a06fb6f0769957884cd7084537083496fd184165293f583c8e8240eb68e042c94b15752e4c07e80d09
        EAP-Message =
0x779afa3dd55c24fa54ac292d77205d1c2477ed30d59f57caf9bd21ff2a8d16cc0911c50e4f295763fcb60efa3c3d2d0e43850f6e6fbe284902f6e83503650003ba308203b63082031fa003020102020100300d06092a864886f70d010104050030819f310b30090603550406130243413111300f0603550408130850726f76696e63653112301006035504071309536f6d65204369747931153013060355040a130c4f7267616e697a6174696f6e31123010060355040b13096c6f63616c686f7374311b301906035504031312436c69656e742063657274696669636174653121301f06092a864886f70d0109011612636c69656e74406578616d706c
        EAP-Message = 0x652e636f6d301e170d3034303132353133323630375a
        Message-Authenticator = 0x00000000000000000000000000000000
        State = 0xccf1935d7f426954062d56c5c27b6ea5
Finished request 1
Going to the next request
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 192.168.0.253:1645, id=12,
length=155
        User-Name = "[EMAIL PROTECTED]"
        Framed-MTU = 1400
        Called-Station-Id = "0002.8a21.1129"
        Calling-Station-Id = "000f.3d87.543f"
        NAS-Port-Type = Wireless-802.11
        Message-Authenticator = 0xfe430fd73d8b5fc4251063e6e7fda72a
        EAP-Message = 0x020300061500
        NAS-Port-Type = Virtual
        NAS-Port = 20
        State = 0xccf1935d7f426954062d56c5c27b6ea5
        Service-Type = Login-User
        NAS-IP-Address = 192.168.0.253
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 2
  modcall[authorize]: module "preprocess" returns ok for request 2
radius_xlat: 
'/var/log/radius/radacct/192.168.0.253/auth-detail-20040616'
rlm_detail:
/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands
to /var/log/radius/radacct/192.168.0.253/auth-detail-20040616
  modcall[authorize]: module "auth_log" returns ok for request 2
    rlm_realm: Looking up realm "eurotux.com" for User-Name =
"[EMAIL PROTECTED]"
    rlm_realm: Found realm "eurotux.com"
    rlm_realm: Adding Stripped-User-Name = "anonymous"
    rlm_realm: Proxying request from user anonymous to realm eurotux.com
    rlm_realm: Adding Realm = "eurotux.com"
    rlm_realm: Authentication realm is LOCAL.
  modcall[authorize]: module "suffix" returns noop for request 2
  rlm_eap: EAP packet type response id 3 length 6
  rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
  modcall[authorize]: module "eap" returns updated for request 2
  modcall[authorize]: module "files" returns notfound for request 2
modcall: group authorize returns updated for request 2
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
  Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 2
  rlm_eap: Request found, released from the list
  rlm_eap: EAP/ttls
  rlm_eap: processing type ttls
  rlm_eap_ttls: Authenticate
  rlm_eap_tls: processing TLS
rlm_eap_tls: Received EAP-TLS ACK message
  rlm_eap_tls: ack handshake fragment handler
  eaptls_verify returned 1
  eaptls_process returned 13
  modcall[authenticate]: module "eap" returns handled for request 2
modcall: group authenticate returns handled for request 2
Sending Access-Challenge of id 12 to 192.168.0.253:1645
        EAP-Message =
0x010402fb1580000006f1170d3036303132343133323630375a30819f310b30090603550406130243413111300f0603550408130850726f76696e63653112301006035504071309536f6d65204369747931153013060355040a130c4f7267616e697a6174696f6e31123010060355040b13096c6f63616c686f7374311b301906035504031312436c69656e742063657274696669636174653121301f06092a864886f70d0109011612636c69656e74406578616d706c652e636f6d30819f300d06092a864886f70d010101050003818d0030818902818100d4c5b19724f164acf1ffb189db1c8fbff4f14396ea7cb1e90f78d69451725377895dfe52cc
        EAP-Message =
0xb99b41e80ddeb58b127a943f4f58cbc562878192fbdc6fece9f871e7c130d35cf5188817e9b133249edd2a1c75d31043ae87553cec7a77ef26aa7d74281db9b77e17c6446c5dd9b188b43250ca0229963722a123a726b00b4027fd0203010001a381ff3081fc301d0603551d0e0416041468d36d3e1ee7bc9d5a057021c363da1365d1ade33081cc0603551d230481c43081c1801468d36d3e1ee7bc9d5a057021c363da1365d1ade3a181a5a481a230819f310b30090603550406130243413111300f0603550408130850726f76696e63653112301006035504071309536f6d65204369747931153013060355040a130c4f7267616e697a6174696f6e
        EAP-Message =
0x31123010060355040b13096c6f63616c686f7374311b301906035504031312436c69656e742063657274696669636174653121301f06092a864886f70d0109011612636c69656e74406578616d706c652e636f6d820100300c0603551d13040530030101ff300d06092a864886f70d01010405000381810033c00b66b1e579ef73a06798252dab8d5e5511fc00fd276d80d12f834777c6743fdc2743fca1507704e4bc0979e4f60ac3ad9ee83e6f347369229d1f77229ba2e982359da563024a00163dba6d6c986c0bad28af85132ff8f0d76501bf1b7c2dff658ce1e62c01997b6e64e3e8d4373354ce9912847651539063b85bbc5485c51603010004
        EAP-Message = 0x0e000000
        Message-Authenticator = 0x00000000000000000000000000000000
        State = 0x89da819de9e527add8155015bfc1f309
Finished request 2
Going to the next request
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 192.168.0.253:1645, id=13,
length=349
        User-Name = "[EMAIL PROTECTED]"
        Framed-MTU = 1400
        Called-Station-Id = "0002.8a21.1129"
        Calling-Station-Id = "000f.3d87.543f"
        NAS-Port-Type = Wireless-802.11
        Message-Authenticator = 0x679cd2b359125cb15e4923fd4765a33b
        EAP-Message =
0x020400c81580000000be1603010086100000820080740e2a3e191ba357df3854121ea127a10356bace9560873349741b1c4d5a84256696a544df01348fc6f967c8e68436d415bebf0ec0980341af9083a60884a1ec5cbb7b97c72baeca2a99aad00b2db8237184d706bf81fbe50dcc2e282abb7707b3ab622967e32d30d8069f4f7b56ae469364f6321589bd8dd9d24a5e9c7558311403010001011603010028e6e26d61bfebd91f5e5e01722a0f4bbaf082f2299842939f4d780acfddf68df4e232f7e74b734aaf
        NAS-Port-Type = Virtual
        NAS-Port = 20
        State = 0x89da819de9e527add8155015bfc1f309
        Service-Type = Login-User
        NAS-IP-Address = 192.168.0.253
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 3
  modcall[authorize]: module "preprocess" returns ok for request 3
radius_xlat: 
'/var/log/radius/radacct/192.168.0.253/auth-detail-20040616'
rlm_detail:
/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands
to /var/log/radius/radacct/192.168.0.253/auth-detail-20040616
  modcall[authorize]: module "auth_log" returns ok for request 3
    rlm_realm: Looking up realm "eurotux.com" for User-Name =
"[EMAIL PROTECTED]"
    rlm_realm: Found realm "eurotux.com"
    rlm_realm: Adding Stripped-User-Name = "anonymous"
    rlm_realm: Proxying request from user anonymous to realm eurotux.com
    rlm_realm: Adding Realm = "eurotux.com"
    rlm_realm: Authentication realm is LOCAL.
  modcall[authorize]: module "suffix" returns noop for request 3
  rlm_eap: EAP packet type response id 4 length 200
  rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
  modcall[authorize]: module "eap" returns updated for request 3
  modcall[authorize]: module "files" returns notfound for request 3
modcall: group authorize returns updated for request 3
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
  Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 3
  rlm_eap: Request found, released from the list
  rlm_eap: EAP/ttls
  rlm_eap: processing type ttls
  rlm_eap_ttls: Authenticate
  rlm_eap_tls: processing TLS
rlm_eap_tls:  Length Included
  eaptls_verify returned 11
  rlm_eap_tls: <<< TLS 1.0 Handshake [length 0086], ClientKeyExchange
    TLS_accept: SSLv3 read client key exchange A
  rlm_eap_tls: <<< TLS 1.0 ChangeCipherSpec [length 0001]
  rlm_eap_tls: <<< TLS 1.0 Handshake [length 0010], Finished
    TLS_accept: SSLv3 read finished A
  rlm_eap_tls: >>> TLS 1.0 ChangeCipherSpec [length 0001]
    TLS_accept: SSLv3 write change cipher spec A
  rlm_eap_tls: >>> TLS 1.0 Handshake [length 0010], Finished
    TLS_accept: SSLv3 write finished A
    TLS_accept: SSLv3 flush data
    (other): SSL negotiation finished successfully
SSL Connection Established
  eaptls_process returned 13
  modcall[authenticate]: module "eap" returns handled for request 3
modcall: group authenticate returns handled for request 3
Sending Access-Challenge of id 13 to 192.168.0.253:1645
        EAP-Message =
0x0105003d15800000003314030100010116030100284bdb9ad6885e5e767a4734d43dedc7a9b1e7f3615ee7c896fbdcc2fcf8a31d652b9bb56dd9e929e6
        Message-Authenticator = 0x00000000000000000000000000000000
        State = 0xb5b392b4cfd878a4901f21ba0207cce4
Finished request 3
Going to the next request
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 192.168.0.253:1645, id=14,
length=236
        User-Name = "[EMAIL PROTECTED]"
        Framed-MTU = 1400
        Called-Station-Id = "0002.8a21.1129"
        Calling-Station-Id = "000f.3d87.543f"
        NAS-Port-Type = Wireless-802.11
        Message-Authenticator = 0x7462751dde3406649eef0cac08914bb5
        EAP-Message =
0x0205005715800000004d1703010048a8e6f4c5e3f1f73d92a5063c43454cdbca970c1d3d684b456661fe6137057cf30c494c5ca4c02f98b74a8035e335c507b059b9887b7911f7805bd3a82141da46a927baa9dcd33ef1
        NAS-Port-Type = Virtual
        NAS-Port = 20
        State = 0xb5b392b4cfd878a4901f21ba0207cce4
        Service-Type = Login-User
        NAS-IP-Address = 192.168.0.253
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 4
  modcall[authorize]: module "preprocess" returns ok for request 4
radius_xlat: 
'/var/log/radius/radacct/192.168.0.253/auth-detail-20040616'
rlm_detail:
/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands
to /var/log/radius/radacct/192.168.0.253/auth-detail-20040616
  modcall[authorize]: module "auth_log" returns ok for request 4
    rlm_realm: Looking up realm "eurotux.com" for User-Name =
"[EMAIL PROTECTED]"
    rlm_realm: Found realm "eurotux.com"
    rlm_realm: Adding Stripped-User-Name = "anonymous"
    rlm_realm: Proxying request from user anonymous to realm eurotux.com
    rlm_realm: Adding Realm = "eurotux.com"
    rlm_realm: Authentication realm is LOCAL.
  modcall[authorize]: module "suffix" returns noop for request 4
  rlm_eap: EAP packet type response id 5 length 87
  rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
  modcall[authorize]: module "eap" returns updated for request 4
  modcall[authorize]: module "files" returns notfound for request 4
modcall: group authorize returns updated for request 4
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
  Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 4
  rlm_eap: Request found, released from the list
  rlm_eap: EAP/ttls
  rlm_eap: processing type ttls
  rlm_eap_ttls: Authenticate
  rlm_eap_tls: processing TLS
rlm_eap_tls:  Length Included
  eaptls_verify returned 11
  eaptls_process returned 7
  rlm_eap_ttls: Session established.  Proceeding to decode tunneled
attributes.
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 4
  modcall[authorize]: module "preprocess" returns ok for request 4
radius_xlat:  '/var/log/radius/radacct/127.0.0.1/auth-detail-20040616'
rlm_detail:
/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands
to /var/log/radius/radacct/127.0.0.1/auth-detail-20040616
  modcall[authorize]: module "auth_log" returns ok for request 4
    rlm_realm: Looking up realm "eurotux.com" for User-Name =
"[EMAIL PROTECTED]"
    rlm_realm: Found realm "eurotux.com"
    rlm_realm: Adding Stripped-User-Name = "User1"
    rlm_realm: Proxying request from user User1 to realm eurotux.com
    rlm_realm: Adding Realm = "eurotux.com"
    rlm_realm: Authentication realm is LOCAL.
  modcall[authorize]: module "suffix" returns noop for request 4
  rlm_eap: No EAP-Message, not doing EAP
  modcall[authorize]: module "eap" returns noop for request 4
  modcall[authorize]: module "files" returns notfound for request 4
modcall: group authorize returns ok for request 4
auth: No authenticate method (Auth-Type) configuration found for the
request: Rejecting the user
auth: Failed to validate the user.
  TTLS: Got tunneled Access-Reject
 rlm_eap: Handler failed in EAP/ttls
  rlm_eap: Failed in EAP select
  modcall[authenticate]: module "eap" returns invalid for request 4
modcall: group authenticate returns invalid for request 4
auth: Failed to validate the user.
Delaying request 4 for 1 seconds
Finished request 4
Going to the next request
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 192.168.0.253:1645, id=14,
length=236
Sending Access-Reject of id 14 to 192.168.0.253:1645
        EAP-Message = 0x04050004
        Message-Authenticator = 0x00000000000000000000000000000000
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 10 with timestamp 40d004fc
Cleaning up request 1 ID 11 with timestamp 40d004fc
Cleaning up request 2 ID 12 with timestamp 40d004fc
Cleaning up request 3 ID 13 with timestamp 40d004fc
Cleaning up request 4 ID 14 with timestamp 40d004fc
Nothing to do.  Sleeping until we see a request.


-- 
Nuno Miguel Pais Fernandes <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to