freeradius with eap/tls/ttls and Access point Cisco 1100 don't authenticate

classic Classic list List threaded Threaded
1 message Options
| Threaded
Open this post in threaded view
|

freeradius with eap/tls/ttls and Access point Cisco 1100 don't authenticate

Maurice.Bourguel
Hello,

        I'm running freeradius-1.0.2 on Solaris 9 to authenticate Cisco
aironet 1100 access point.

-----------
        The Freeradius installation seems good:
       
bourguel@euler>/usr/local/bin/radtest test test localhost 0 testing123
Sending Access-Request of id 241 to 127.0.0.1:1812
        User-Name = "test"
        User-Password = "test"
        NAS-IP-Address = euler
        NAS-Port = 0
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=241, length=20

bourguel@euler>tail -f /var/log/radius/radacct/localhost/auth-detail-20050524
Packet-Type = Access-Request
Tue May 24 09:45:32 2005
        User-Name = "test"
        User-Password = "test"
        NAS-IP-Address = 255.255.255.255
        NAS-Port = 0
        Client-IP-Address = localhost
----------

        When I try to connect from te access point I obtain the error message:
       
        "une erreur s'est produite lors de l'acces au reseau Airport tsunami"
       
        and freeradius server is looping..

here are the settings I have done:
       
access point
============
        Hostname Radius, IP Address 139.124.3.235, ethernet Mac Address
0012.daec.3082, radio 802-11g Mac Address 0012.dacb.b0c0
settings for radio interface:
        world-mode: enable, radio preamble: short, ethernet encapsulation
transform: RFC1042, Reliable Multicast to WGB: disable,Public Secure Packet
Forwarding: disable,Short Slot-Time: enable

users file:
===========
mbourguel       Auth-Type := EAP
mobile          Auth-Type := EAP , User-Password == "mobile"
test            Auth-Type := Local, User-Password == "test"
...
DEFAULT Auth-Type = System
        Fall-Through = 1


DEFAULT
        Service-Type = Login-User,
        Login-Service = Rlogin,
        Login-IP-Host = euler.univ-mrs.fr

# #
# # Last default: shell on the local terminal server.
# #
DEFAULT
        Service-Type = Shell-User

Clients.conf file
=================
client 127.0.0.1 {
       
        secret          = testing123
        shortname       = localhost
        nastype     = other
}
client 139.124.3.235 {
        secret = cirm
        shortname = AP
        nastype = other
        }





        Please let me know what changes I have to do for authentication
to work. If someone has configured Cisco AP, please explain to me howto
configure all.

Best regards

Maurice


Here are the log:

#1/radiusd -X

bourguel@euler>/usr/local/sbin/radiusd -X
Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /usr/local/etc/raddb/proxy.conf
Config:   including file: /usr/local/etc/raddb/clients.conf
Config:   including file: /usr/local/etc/raddb/snmp.conf
Config:   including file: /usr/local/etc/raddb/eap.conf
Config:   including file: /usr/local/etc/raddb/sql.conf
 main: prefix = "/usr/local"
 main: localstatedir = "/var"
 main: logdir = "/var/log/radius"
 main: libdir = "/usr/local/lib"
 main: radacctdir = "/var/log/radius/radacct"
 main: hostname_lookups = yes
 main: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 1024
 main: delete_blocked_requests = 0
 main: port = 1812
 main: allow_core_dumps = no
 main: log_stripped_names = no
 main: log_file = "/var/log/radius/radius.log"
 main: log_auth = yes
 main: log_auth_badpass = yes
 main: log_auth_goodpass = yes
 main: pidfile = "/var/run/radiusd/radiusd.pid"
 main: user = "root"
 main: group = "nobody"
 main: usercollide = no
 main: lower_user = "no"
 main: lower_pass = "no"
 main: nospace_user = "no"
 main: nospace_pass = "no"
 main: checkrad = "/usr/local/sbin/checkrad"
 main: proxy_requests = no
 proxy: retry_delay = 5
 proxy: retry_count = 3
 proxy: synchronous = no
 proxy: default_fallback = yes
 proxy: dead_time = 120
 proxy: post_proxy_authorize = yes
 proxy: wake_all_if_all_dead = no
 security: max_attributes = 200
 security: reject_delay = 1
 security: status_server = no
 main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
Using deprecated naslist file.  Support for this will go away soon.
read_config_files:  reading clients
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded exec
 exec: wait = yes
 exec: program = "(null)"
 exec: input_pairs = "request"
 exec: output_pairs = "(null)"
 exec: packet_type = "(null)"
rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Module: Instantiated exec (exec)
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded System
 unix: cache = yes
 unix: passwd = "/etc/passwd"
 unix: shadow = "/etc/shadow"
 unix: group = "/etc/group"
 unix: radwtmp = "/var/log/radius/radwtmp"
 unix: usegroup = no
 unix: cache_reload = 600
HASH:  Reinitializing hash structures and lists for caching...
  HASH:  user root found in hashtable bucket 11726
  ........
  ........
  HASH:  user anna found in hashtable bucket 63492
  HASH:  user spamd found in hashtable bucket 16167
HASH:  Stored 96 entries from /etc/passwd
HASH:  Stored 20 entries from /etc/group
Module: Instantiated unix (unix)
Module: Loaded eap
 eap: default_eap_type = "ttls"
 eap: timer_expire = 60
 eap: ignore_unknown_eap_types = no
 eap: cisco_accounting_username_bug = no
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
 gtc: challenge = "Password: "
 gtc: auth_type = "PAP"
rlm_eap: Loaded and initialized type gtc
 tls: rsa_key_exchange = no
 tls: dh_key_exchange = yes
 tls: rsa_key_length = 512
 tls: dh_key_length = 512
 tls: verify_depth = 0
 tls: CA_path = "(null)"
 tls: pem_file_type = yes
 tls: private_key_file = "/usr/local/etc/raddb/certs/euler.univ-mrs.fr.pem"
 tls: certificate_file = "/usr/local/etc/raddb/certs/euler.univ-mrs.fr.pem"
 tls: CA_file = "/usr/local/etc/raddb/certs/root.pem"
 tls: private_key_password = "whatever"
 tls: dh_file = "/usr/local/etc/raddb/certs/dh"
 tls: random_file = "/usr/local/etc/raddb/certs/random"
 tls: fragment_size = 1024
 tls: include_length = yes
 tls: check_crl = yes
 tls: check_cert_cn = "(null)"
rlm_eap: Loaded and initialized type tls
 ttls: default_eap_type = "md5"
 ttls: copy_request_to_tunnel = no
 ttls: use_tunneled_reply = no
rlm_eap: Loaded and initialized type ttls
 mschapv2: with_ntdomain_hack = no
rlm_eap: Loaded and initialized type mschapv2
Module: Instantiated eap (eap)
Module: Loaded preprocess
 preprocess: huntgroups = "/usr/local/etc/raddb/huntgroups"
 preprocess: hints = "/usr/local/etc/raddb/hints"
 preprocess: with_ascend_hack = no
 preprocess: ascend_channels_per_line = 23
 preprocess: with_ntdomain_hack = no
 preprocess: with_specialix_jetstream_hack = no
 preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded detail
 detail: detailfile =
"/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d"
 detail: detailperm = 384
 detail: dirperm = 493
 detail: locking = no
Module: Instantiated detail (auth_log)
Module: Loaded realm
 realm: format = "suffix"
 realm: delimiter = "@"
 realm: ignore_default = no
 realm: ignore_null = no
Module: Instantiated realm (suffix)
Module: Loaded files
 files: usersfile = "/usr/local/etc/raddb/users"
 files: acctusersfile = "/usr/local/etc/raddb/acct_users"
 files: preproxy_usersfile = "/usr/local/etc/raddb/preproxy_users"
 files: compat = "no"
Module: Instantiated files (files)
Module: Loaded Acct-Unique-Session-Id
 acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address,
Client-IP-Address, NAS-Port"
Module: Instantiated acct_unique (acct_unique)
 detail: detailfile =
"/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
 detail: detailperm = 384
 detail: dirperm = 493
 detail: locking = no
Module: Instantiated detail (detail)
Module: Loaded radutmp
 radutmp: filename = "/var/log/radius/radutmp"
 radutmp: username = "%{User-Name}"
 radutmp: case_sensitive = yes
 radutmp: check_with_nas = yes
 radutmp: perm = 384
 radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.
^C
bourguel@euler>

#2/tail -f /var/log/radius/radacct/Wf-bast5/auth-detail-20050524

...
        Calling-Station-Id = "0011.2420.94f9"
        Message-Authenticator = 0x6c64342252b4fd8d01899a61546ac27e
        EAP-Message = 0x0202000b016d6f62696c65
        NAS-Port-Type = Wireless-802.11
        NAS-Port = 430
        Service-Type = Framed-User
        NAS-IP-Address = 139.124.3.235
        NAS-Identifier = "Radius"
        Client-IP-Address = Wf-bast5

Packet-Type = Access-Request
Tue May 24 09:53:30 2005
        User-Name = "mobile"
        Framed-MTU = 1400
        Called-Station-Id = "0012.dacb.b0c0"
        Calling-Station-Id = "0011.2420.94f9"
        Message-Authenticator = 0x66fbcf718a820edd56755486613fd5a8
        EAP-Message = 0x0202000b016d6f62696c65
        NAS-Port-Type = Wireless-802.11
        NAS-Port = 431
        Service-Type = Framed-User
        NAS-IP-Address = 139.124.3.235
        NAS-Identifier = "Radius"
        Client-IP-Address = Wf-bast5

Packet-Type = Access-Request
Tue May 24 09:53:40 2005
        User-Name = "mobile"
        Framed-MTU = 1400
        Called-Station-Id = "0012.dacb.b0c0"
        Calling-Station-Id = "0011.2420.94f9"
        Message-Authenticator = 0x66fbcf718a820edd56755486613fd5a8
        EAP-Message = 0x0202000b016d6f62696c65
        NAS-Port-Type = Wireless-802.11
        NAS-Port = 431
        Service-Type = Framed-User
        NAS-IP-Address = 139.124.3.235
        NAS-Identifier = "Radius"
        Client-IP-Address = Wf-bast5
.....

#3/radiusd -X -A &


rad_recv: Access-Request packet from host 139.124.3.235:21654, id=158,
length=129
        User-Name = "mobile"
        Framed-MTU = 1400
        Called-Station-Id = "0012.dacb.b0c0"
        Calling-Station-Id = "0011.2420.94f9"
        Message-Authenticator = 0x617393628e958e427fd7403f4b3f28fd
        EAP-Message = 0x0202000b016d6f62696c65
        NAS-Port-Type = Wireless-802.11
        NAS-Port = 435
        Service-Type = Framed-User
        NAS-IP-Address = 139.124.3.235
        NAS-Identifier = "Radius"
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 11
  modcall[authorize]: module "preprocess" returns ok for request 11
radius_xlat:  '/var/log/radius/radacct/Wf-bast5/auth-detail-20050524'
rlm_detail: /var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d
expands to /var/log/radius/radacct/Wf-bast5/auth-detail-20050524
  modcall[authorize]: module "auth_log" returns ok for request 11
    rlm_realm: No '@' in User-Name = "mobile", looking up realm NULL
    rlm_realm: No such realm "NULL"
  modcall[authorize]: module "suffix" returns noop for request 11
  rlm_eap: EAP packet type response id 2 length 11
  rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
  modcall[authorize]: module "eap" returns updated for request 11
    users: Matched entry mobile at line 65
  modcall[authorize]: module "files" returns ok for request 11
modcall: group authorize returns updated for request 11
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
  Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 11
  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 11
modcall: group authenticate returns handled for request 11
Sending Access-Challenge of id 158 to 139.124.3.235:21654
        EAP-Message = 0x010300061520
        Message-Authenticator = 0x00000000000000000000000000000000
        State = 0xf712bf1cbcc98757a49ea0bb145c1c09
Finished request 11
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
........
......




***********************************************************
* e-mail : [hidden email]                      *
----------------------------------------------------------
* Maurice Bourguel               +                        *
* CIRM - MENRT-CNRS-SMF          +                        *
* case 916, 163 Avenue de Luminy + tel (33) 04 91 83 30 23*
* 13288 Marseille Cedex 9        + fax (33) 04 91 83 30 05*
***********************************************************
*http://www.cirm.univ-mrs.fr                              *
***********************************************************


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html