Hello,
I have got a problem to use EAP-MD5 on freeradius and
xsupplicant client.

=>
rlm_eap: Unsupported EAP_TYPE 3                       

modcall[authenticate]: module "eap" returns invalid
modcall: group authenticate returns invalid
auth: Failed to validate the user.


see radius.conf,client.conf,users next  
thanks,

************************************************************

 
xsupplicant -i eth1 -u toto -p iup2002 -m MD

>radiusd -X -A

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/sql.conf
 main: prefix = "/usr/local"
 main: localstatedir = "/usr/local/var"
 main: logdir = "/usr/local/var/log/radius"
 main: libdir = "/usr/local/lib"
 main: radacctdir =
"/usr/local/var/log/radius/radacct"
 main: hostname_lookups = no
 main: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 1024
 main: delete_blocked_requests = 0
 main: port = 0
 main: allow_core_dumps = no
 main: log_stripped_names = no
 main: log_file =
"/usr/local/var/log/radius/radius.log"
 main: log_auth = no
 main: log_auth_badpass = no
 main: log_auth_goodpass = no
 main: pidfile =
"/usr/local/var/run/radiusd/radiusd.pid"
 main: user = "(null)"
 main: group = "(null)"
 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 = yes
 proxy: retry_delay = 5
 proxy: retry_count = 3
 proxy: synchronous = no
 proxy: default_fallback = yes
 proxy: dead_time = 120
 proxy: servers_per_realm = 15
 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
read_config_files:  reading clients
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded expr 
Module: Instantiated expr (expr) 
Module: Loaded eap 
 eap: default_eap_type = "md5"
 eap: timer_expire = 60
rlm_eap: Loaded and initialized the type md5
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 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 realm 
 realm: format = "suffix"
 realm: delimiter = "@"
Module: Instantiated realm (suffix) 
Module: Loaded Acct-Unique-Session-Id 
 acct_unique: key = "User-Name, Acct-Session-Id,
NAS-IP-Address, Client-IP-Address, NAS-Port-Id"
Module: Instantiated acct_unique (acct_unique) 
Module: Loaded detail 
 detail: detailfile =
"/usr/local/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 System 
 unix: cache = no
 unix: passwd = "(null)"
 unix: shadow = "(null)"
 unix: group = "(null)"
 unix: radwtmp = "/usr/local/var/log/radius/radwtmp"
 unix: usegroup = no
 unix: cache_reload = 600
Module: Instantiated unix (unix) 
Module: Loaded radutmp 
 radutmp: filename =
"/usr/local/var/log/radius/radutmp"
 radutmp: username = "%{User-Name}"
 radutmp: perm = 384
 radutmp: callerid = yes
Module: Instantiated radutmp (radutmp) 
Listening on IP address *, ports 1812/udp and
1813/udp, with proxy on 1814/udp.
Ready to process requests.
rad_recv: Access-Request packet from host
192.168.2.205:1091, id=57, length=152
        User-Name = "toto"
        Cisco-AVPair = "ssid=access_point"
        NAS-IP-Address = 192.168.2.205
        Called-Station-Id = "0040965b1dc6"
        Calling-Station-Id = "000b46bd5909"
        NAS-Identifier = "AP350-5b1dc6"
        NAS-Port = 38
        Framed-MTU = 1400
        NAS-Port-Type = Wireless-802.11
        Service-Type = Login-User
        EAP-Message = "\002$\000\t\001toto"
        Message-Authenticator =
0x67aab7cb1cac007edb92015f0f1690f1
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
    users: Matched DEFAULT at 152
  modcall[authorize]: module "files" returns ok
  modcall[authorize]: module "eap" returns updated
modcall: group authorize returns updated
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate
rlm_eap: processing type md5
rlm_eap_md5: Issuing Challenge
  modcall[authenticate]: module "eap" returns ok
modcall: group authenticate returns ok
Sending Access-Challenge of id 57 to
192.168.2.205:1091
        EAP-Message =
"\001%\000\026\004\020\361\003\026,\tt\t\273{\035\247\314,\200\361<"
        Message-Authenticator =
0x00000000000000000000000000000000
        State =
0x9b7b487b9b29a9bd2949c0104895a2b63e89783e32c85da841d50ca2346d6116c074cd80
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.2.205:1092, id=58, length=187
        User-Name = "toto"
        Cisco-AVPair = "ssid=access_point"
        NAS-IP-Address = 192.168.2.205
        Called-Station-Id = "0040965b1dc6"
        Calling-Station-Id = "000b46bd5909"
        NAS-Identifier = "AP350-5b1dc6"
        NAS-Port = 38
        Framed-MTU = 1400
        State =
0x9b7b487b9b29a9bd2949c0104895a2b63e89783e32c85da841d50ca2346d6116c074cd80
        NAS-Port-Type = Wireless-802.11
        Service-Type = Login-User
        EAP-Message = "\002%\000\006\003\r"
        Message-Authenticator =
0x4e478a7a91d21542bb065660cbaade88
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
    users: Matched DEFAULT at 152
  modcall[authorize]: module "files" returns ok
  modcall[authorize]: module "eap" returns updated
modcall: group authorize returns updated
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate
rlm_eap: Request found, released from the list
rlm_eap: Unsupported EAP_TYPE 3                       
 <----------------------------------------------
UNSUPPORTED
  modcall[authenticate]: module "eap" returns invalid
modcall: group authenticate returns invalid
auth: Failed to validate the user.
Delaying request 1 for 1 seconds
Finished request 1
Going to the next request
Waking up in 6 seconds...
rad_recv: Access-Request packet from host
192.168.2.205:1092, id=58, length=187
Sending Access-Reject of id 58 to 192.168.2.205:1092
        EAP-Message = "\004%\000\004"
        Message-Authenticator =
0x00000000000000000000000000000000
--- Walking the entire request list ---
Waking up in 1 seconds...
rad_recv: Access-Request packet from host
192.168.2.205:1093, id=59, length=152
        User-Name = "toto"
        Cisco-AVPair = "ssid=access_point"
        NAS-IP-Address = 192.168.2.205
        Called-Station-Id = "0040965b1dc6"
        Calling-Station-Id = "000b46bd5909"
        NAS-Identifier = "AP350-5b1dc6"
        NAS-Port = 38
        Framed-MTU = 1400
        NAS-Port-Type = Wireless-802.11
        Service-Type = Login-User
        EAP-Message = "\002&\000\t\001toto"
        Message-Authenticator =
0xc746440fa62f2c41c1d2fadebba2794a
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
    users: Matched DEFAULT at 152
  modcall[authorize]: module "files" returns ok
  modcall[authorize]: module "eap" returns updated
modcall: group authorize returns updated
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate
rlm_eap: processing type md5
rlm_eap_md5: Issuing Challenge
  modcall[authenticate]: module "eap" returns ok
modcall: group authenticate returns ok
Sending Access-Challenge of id 59 to
192.168.2.205:1093
        EAP-Message =
"\001'\000\026\004\020J\366\n\020QuY\214#\301\354\252eqX\303"
        Message-Authenticator =
0x00000000000000000000000000000000
        State =
0xb88fd930d51480bd9042e742fc3ee2224389783e02cce9f97731436dfac4245f1eb9cbee
Finished request 3
Going to the next request
Cleaning up request 0 ID 57 with timestamp 3e78893e
Cleaning up request 1 ID 58 with timestamp 3e78893e
rl_next:  returning NULL
Waking up in 1 seconds...
rad_recv: Access-Request packet from host
192.168.2.205:1094, id=60, length=187
        User-Name = "toto"
        Cisco-AVPair = "ssid=access_point"
        NAS-IP-Address = 192.168.2.205
        Called-Station-Id = "0040965b1dc6"
        Calling-Station-Id = "000b46bd5909"
        NAS-Identifier = "AP350-5b1dc6"
        NAS-Port = 38
        Framed-MTU = 1400
        State =
0xb88fd930d51480bd9042e742fc3ee2224389783e02cce9f97731436dfac4245f1eb9cbee
        NAS-Port-Type = Wireless-802.11
        Service-Type = Login-User
        EAP-Message = "\002'\000\006\003\r"
        Message-Authenticator =
0x10dc0cd2b093759d476b15a94e5444be
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
    users: Matched DEFAULT at 152
  modcall[authorize]: module "files" returns ok
  modcall[authorize]: module "eap" returns updated
modcall: group authorize returns updated
  rad_check_password:  Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate
rlm_eap: Request found, released from the list
rlm_eap: Unsupported EAP_TYPE 3
  modcall[authenticate]: module "eap" returns invalid
modcall: group authenticate returns invalid
auth: Failed to validate the user.
Delaying request 4 for 1 seconds
Finished request 4
Going to the next request
Waking up in 1 seconds...
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Sending Access-Reject of id 60 to 192.168.2.205:1094
        EAP-Message = "\004'\000\004"
        Message-Authenticator =
0x00000000000000000000000000000000
Waking up in 4 seconds...


************************** radiusd.conf
**************************

security {
                max_attributes = 200
                reject_delay = 1
                status_server = no
}

proxy_requests  = yes
$INCLUDE  ${confdir}/proxy.conf

$INCLUDE  ${confdir}/clients.conf
$INCLUDE  ${confdir}/snmp.conf


thread pool {
        start_servers = 5
        max_servers = 32
        min_spare_servers = 3
        max_spare_servers = 10
        max_requests_per_server = 0
}

modules {
        unix {
                cache = no

                cache_reload = 600
                radwtmp = ${logdir}/radwtmp
        }

        
        eap {
                default_eap_type = md5
                md5 {
                }
        }

                realm suffix {
                format = suffix
                delimiter = "@"
        }

        realm realmslash {
                format = prefix
                delimiter = "/"
        }

                realm realmpercent {
                format = suffix
                delimiter = "%"
        }
        
                preprocess {
                huntgroups = ${confdir}/huntgroups
                hints = ${confdir}/hints
                with_ascend_hack = no
                ascend_channels_per_line = 23
                with_ntdomain_hack = no

                with_specialix_jetstream_hack = no

                with_cisco_vsa_hack = no
        }

        files {
                usersfile = ${confdir}/users
                acctusersfile = ${confdir}/acct_users
                compat = no
        }

        detail {
                detailfile =
${radacctdir}/%{Client-IP-Address}/detail-%Y%m%d
                detailperm = 0600
        }

        acct_unique {
                key = "User-Name, Acct-Session-Id, NAS-IP-Address,
Client-IP-Address, NAS-Port-Id"
        }


        $INCLUDE  ${confdir}/sql.conf

                radutmp {
                filename = ${logdir}/radutmp
                perm = 0600

                callerid = "yes"
        }

        radutmp sradutmp {
                filename = ${logdir}/sradutmp
                perm = 0644
                callerid = "no"
        }

        attr_filter {
                attrsfile = ${confdir}/attrs
        }

        counter {
                filename = ${raddbdir}/db.counter
                key = User-Name
                count-attribute = Acct-Session-Time
                reset = daily
                counter-name = Daily-Session-Time
                check-name = Max-Daily-Session
                allowed-servicetype = Framed-User
                cache-size = 5000
        }

        always fail {
                rcode = fail
        }
        always reject {
                rcode = reject
        }
        always ok {
                rcode = ok
                simulcount = 0
                mpp = no
        }

        expr {
        }

        
}

instantiate {
        expr
}

authorize {
        preprocess
        
        
        counter
        attr_file
        suffix
        files
        etc_smbpasswd
        eap
}


authenticate {
        eap
}

preacct {
        preprocess
        suffix
        files
}

accounting {
        acct_unique
        detail
        unix            
        radutmp
}


session {
        radutmp
}


post-auth {
          }




*************** clients.conf - client configuration
directives *************

client 127.0.0.1 {
        secret          = testing123
        shortname       = localhost

        }

client 192.168.2.215 {
        secret          = testing123
        shortname       = hostlinux
        login           = toto
        password        = iup2002
}

client 192.168.2.207 {
        secret          = testing123
        shortname       = local
        login           = tata
        password        = iup2002
}

client 192.168.2.205 {
        secret          = testing123
        shortname       = acesspoint
}


************************ users
********************************

DEFAULT Auth-Type := System
        Fall-Through = 1

DEFAULT Service-Type == Framed-User
        Framed-IP-Address = 255.255.255.254,
        Framed-MTU = 576,
        Service-Type = Framed-User,
        Fall-Through = Yes

DEFAULT Framed-Protocol == PPP
        Framed-Protocol = PPP,
        Framed-Compression = Van-Jacobson-TCP-IP

DEFAULT Hint == "CSLIP"
        Framed-Protocol = SLIP,
        Framed-Compression = Van-Jacobson-TCP-IP

DEFAULT Hint == "SLIP"
        Framed-Protocol = SLIP



___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

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

Reply via email to