Setting up FreeRADIUS 2.0.4 with OpenLDAP backend to do wireless auth

Jonathan Amiez ja at edatis.com
Thu Jan 28 18:13:17 CET 2010


> > As the title says, I'm trying to set up FreeRadius to authenticate
> > wireless clients (employees). I just finished deploying a Samba/Ldap
> > domain, and I'd like to take advantage of this user db.
> >
> > I already followed several howtos, more or less outdated.
>
>   Why not just install 2.1.8?

I upgraded to FR 2.1.8 from lenny-backports

> > I'm not familiar with the bunch of protocols  coming with radius and
> > 802.1x (PEAP, CHAP, etc.), and I can't find the issue.
>
>   Read the debug output, and look for "peap".  It is telling you why
> it isn't working.

Sorry, I focused on the connection output more than on the starting one.

>   See also my web site for instructions on getting EAP to work:
>
> http://deployingradius.com

I have already browsed your website and followed it

Therefore, I have again trouble in setting up this configuration.

The problem is EAP/PEAP related, and I am not able to resolve it.
I authenticate successfully with the radtest tool (locally and remotely) but I
can't get radeapclient to work, and obviously my wireless client.

I think it comes from this:
"TLS Alert read:fatal:unknown CA" but I don't think I need real certs to get
it working.

I searched the web for hours but I can't figure it out.

Below is a new debug output of my server.

By the way, I'm wondering why there are several "cycles" for one
authentication (ie Finished request x.  Going to the next request...).

FreeRADIUS Version 2.1.8, for host i486-pc-linux-gnu, built on Jan  3 2010 at
15:51:52
Copyright (C) 1999-2009 The FreeRADIUS server project and contributors.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License v2.
Starting - reading configuration files ...
including configuration file /etc/freeradius/radiusd.conf
including configuration file /etc/freeradius/clients.conf
including files in directory /etc/freeradius/modules/
including configuration file /etc/freeradius/modules/mac2vlan
including configuration file /etc/freeradius/modules/logintime
including configuration file /etc/freeradius/modules/counter
including configuration file /etc/freeradius/modules/realm
including configuration file /etc/freeradius/modules/echo
including configuration file /etc/freeradius/modules/checkval
including configuration file /etc/freeradius/modules/inner-eap
including configuration file /etc/freeradius/modules/chap
including configuration file /etc/freeradius/modules/passwd
including configuration file /etc/freeradius/modules/attr_rewrite
including configuration file /etc/freeradius/modules/unix
including configuration file /etc/freeradius/modules/detail
including configuration file /etc/freeradius/modules/preprocess
including configuration file /etc/freeradius/modules/policy
including configuration file /etc/freeradius/modules/otp
including configuration file /etc/freeradius/modules/perl
including configuration file /etc/freeradius/modules/pam
including configuration file /etc/freeradius/modules/radutmp
including configuration file /etc/freeradius/modules/digest
including configuration file /etc/freeradius/modules/ippool
including configuration file /etc/freeradius/modules/exec
including configuration file /etc/freeradius/modules/linelog
including configuration file /etc/freeradius/modules/smsotp
including configuration file /etc/freeradius/modules/mac2ip
including configuration file /etc/freeradius/modules/smbpasswd
including configuration file /etc/freeradius/modules/detail.log
including configuration file /etc/freeradius/modules/etc_group
including configuration file /etc/freeradius/modules/attr_filter
including configuration file /etc/freeradius/modules/sradutmp
including configuration file /etc/freeradius/modules/sqlcounter_expire_on_login
including configuration file /etc/freeradius/modules/files
including configuration file /etc/freeradius/modules/acct_unique
including configuration file /etc/freeradius/modules/wimax
including configuration file /etc/freeradius/modules/krb5
including configuration file /etc/freeradius/modules/sql_log
including configuration file /etc/freeradius/modules/detail.example.com
including configuration file /etc/freeradius/modules/ntlm_auth
including configuration file /etc/freeradius/modules/pap
including configuration file /etc/freeradius/modules/ldap
including configuration file /etc/freeradius/modules/always
including configuration file /etc/freeradius/modules/ldap.bak
including configuration file /etc/freeradius/modules/cui
including configuration file /etc/freeradius/modules/expiration
including configuration file /etc/freeradius/modules/expr
including configuration file /etc/freeradius/modules/mschap
including configuration file /etc/freeradius/eap.conf
including configuration file /etc/freeradius/policy.conf
including files in directory /etc/freeradius/sites-enabled/
including configuration file /etc/freeradius/sites-enabled/inner-tunnel
including configuration file /etc/freeradius/sites-enabled/default
main {
        user = "freerad"
        group = "freerad"
        allow_core_dumps = no
}
including dictionary file /etc/freeradius/dictionary
main {
        prefix = "/usr"
        localstatedir = "/var"
        logdir = "/var/log/freeradius"
        libdir = "/usr/lib/freeradius"
        radacctdir = "/var/log/freeradius/radacct"
        hostname_lookups = no
        max_request_time = 30
        cleanup_delay = 5
        max_requests = 1024
        pidfile = "/var/run/freeradius/freeradius.pid"
        checkrad = "/usr/sbin/checkrad"
        debug_level = 0
        proxy_requests = no
 log {
        stripped_names = yes
        auth = yes
        auth_badpass = yes
        auth_goodpass = yes
 }
 security {
        max_attributes = 200
        reject_delay = 1
        status_server = yes
 }
}
radiusd: #### Loading Realms and Home Servers ####
radiusd: #### Loading Clients ####
 client localhost {
        ipaddr = 127.0.0.1
        require_message_authenticator = no
        secret = "testing123"
        shortname = "localhost"
        nastype = "other"
 }
 client 192.168.2.254 {
        require_message_authenticator = no
        secret = "testing123"
        shortname = "ap1"
        nastype = "other"
 }
 client 192.168.2.69 {
        require_message_authenticator = no
        secret = "testing123"
        shortname = "tux-island"
        nastype = "other"
 }
radiusd: #### Instantiating modules ####
 instantiate {
 Module: Linked to module rlm_exec
 Module: Instantiating exec
  exec {
        wait = no
        input_pairs = "request"
        shell_escape = yes
  }
 Module: Linked to module rlm_expr
 Module: Instantiating expr
 Module: Linked to module rlm_expiration
 Module: Instantiating expiration
  expiration {
        reply-message = "Password Has Expired  "
  }
 Module: Linked to module rlm_logintime
 Module: Instantiating logintime
  logintime {
        reply-message = "You are calling outside your allowed timespan  "
        minimum-timeout = 60
  }
 }
radiusd: #### Loading Virtual Servers ####
server inner-tunnel {
 modules {
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_pap
 Module: Instantiating pap
  pap {
        encryption_scheme = "auto"
        auto_header = no
  }
 Module: Linked to module rlm_chap
 Module: Instantiating chap
 Module: Linked to module rlm_mschap
 Module: Instantiating mschap
  mschap {
        use_mppe = yes
        require_encryption = no
        require_strong = no
        with_ntdomain_hack = no
  }
 Module: Linked to module rlm_unix
 Module: Instantiating unix
  unix {
        radwtmp = "/var/log/freeradius/radwtmp"
  }
 Module: Linked to module rlm_ldap
 Module: Instantiating ldap
  ldap {
        server = "ldap-samba.edatis.net"
        port = 389
        password = "XXXXXXXXXXXXXX"
        identity = "cn=samba,ou=DSA,o=siege,dc=edatis,dc=net"
        net_timeout = 1
        timeout = 4
        timelimit = 3
        tls_mode = no
        start_tls = no
        tls_require_cert = "allow"
   tls {
        start_tls = no
        require_cert = "allow"
   }
        basedn = "o=siege,dc=edatis,dc=net"
        filter = "(uid=%u)"
        base_filter = "(objectclass=radiusprofile)"
        auto_header = no
        access_attr_used_for_allow = yes
        groupname_attribute = "cn"
        groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-
UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
        dictionary_mapping = "/etc/freeradius/ldap.attrmap"
        ldap_debug = 0
        ldap_connections_number = 5
        compare_check_items = no
        do_xlat = yes
        edir_account_policy_check = no
        set_auth_type = yes
  }
rlm_ldap: Registering ldap_groupcmp for Ldap-Group
rlm_ldap: Registering ldap_xlat with xlat_name ldap
rlm_ldap: reading ldap<->radius mappings from file /etc/freeradius/ldap.attrmap
rlm_ldap: LDAP radiusCheckItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusReplyItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusAuthType mapped to RADIUS Auth-Type
rlm_ldap: LDAP radiusSimultaneousUse mapped to RADIUS Simultaneous-Use
rlm_ldap: LDAP radiusCalledStationId mapped to RADIUS Called-Station-Id
rlm_ldap: LDAP radiusCallingStationId mapped to RADIUS Calling-Station-Id
rlm_ldap: LDAP lmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP sambaLmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP sambaNtPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP dBCSPwd mapped to RADIUS LM-Password
rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration
rlm_ldap: LDAP radiusNASIpAddress mapped to RADIUS NAS-IP-Address
rlm_ldap: LDAP userPassword mapped to RADIUS Cleartext-Password
rlm_ldap: LDAP radiusServiceType mapped to RADIUS Service-Type
rlm_ldap: LDAP radiusFramedProtocol mapped to RADIUS Framed-Protocol
rlm_ldap: LDAP radiusFramedIPAddress mapped to RADIUS Framed-IP-Address
rlm_ldap: LDAP radiusFramedIPNetmask mapped to RADIUS Framed-IP-Netmask
rlm_ldap: LDAP radiusFramedRoute mapped to RADIUS Framed-Route
rlm_ldap: LDAP radiusFramedRouting mapped to RADIUS Framed-Routing
rlm_ldap: LDAP radiusFilterId mapped to RADIUS Filter-Id
rlm_ldap: LDAP radiusFramedMTU mapped to RADIUS Framed-MTU
rlm_ldap: LDAP radiusFramedCompression mapped to RADIUS Framed-Compression
rlm_ldap: LDAP radiusLoginIPHost mapped to RADIUS Login-IP-Host
rlm_ldap: LDAP radiusLoginService mapped to RADIUS Login-Service
rlm_ldap: LDAP radiusLoginTCPPort mapped to RADIUS Login-TCP-Port
rlm_ldap: LDAP radiusCallbackNumber mapped to RADIUS Callback-Number
rlm_ldap: LDAP radiusCallbackId mapped to RADIUS Callback-Id
rlm_ldap: LDAP radiusFramedIPXNetwork mapped to RADIUS Framed-IPX-Network
rlm_ldap: LDAP radiusClass mapped to RADIUS Class
rlm_ldap: LDAP radiusSessionTimeout mapped to RADIUS Session-Timeout
rlm_ldap: LDAP radiusIdleTimeout mapped to RADIUS Idle-Timeout
rlm_ldap: LDAP radiusTerminationAction mapped to RADIUS Termination-Action
rlm_ldap: LDAP radiusLoginLATService mapped to RADIUS Login-LAT-Service
rlm_ldap: LDAP radiusLoginLATNode mapped to RADIUS Login-LAT-Node
rlm_ldap: LDAP radiusLoginLATGroup mapped to RADIUS Login-LAT-Group
rlm_ldap: LDAP radiusFramedAppleTalkLink mapped to RADIUS Framed-AppleTalk-
Link
rlm_ldap: LDAP radiusFramedAppleTalkNetwork mapped to RADIUS Framed-AppleTalk-
Network
rlm_ldap: LDAP radiusFramedAppleTalkZone mapped to RADIUS Framed-AppleTalk-
Zone
rlm_ldap: LDAP radiusPortLimit mapped to RADIUS Port-Limit
rlm_ldap: LDAP radiusLoginLATPort mapped to RADIUS Login-LAT-Port
rlm_ldap: LDAP radiusReplyMessage mapped to RADIUS Reply-Message
rlm_ldap: LDAP radiusTunnelType mapped to RADIUS Tunnel-Type
rlm_ldap: LDAP radiusTunnelMediumType mapped to RADIUS Tunnel-Medium-Type
rlm_ldap: LDAP radiusTunnelPrivateGroupId mapped to RADIUS Tunnel-Private-
Group-Id
conns: 0x8496e68
 Module: Linked to module rlm_eap
 Module: Instantiating eap
  eap {
        default_eap_type = "peap"
        timer_expire = 60
        ignore_unknown_eap_types = no
        cisco_accounting_username_bug = no
        max_sessions = 4096
  }
 Module: Linked to sub-module rlm_eap_md5
 Module: Instantiating eap-md5
 Module: Linked to sub-module rlm_eap_leap
 Module: Instantiating eap-leap
 Module: Linked to sub-module rlm_eap_gtc
 Module: Instantiating eap-gtc
   gtc {
        challenge = "Password: "
        auth_type = "PAP"
   }
 Module: Linked to sub-module rlm_eap_tls
 Module: Instantiating eap-tls
   tls {
        rsa_key_exchange = no
        dh_key_exchange = yes
        rsa_key_length = 512
        dh_key_length = 512
        verify_depth = 0
        pem_file_type = yes
        private_key_file = "/etc/freeradius/certs/server.key"
        certificate_file = "/etc/freeradius/certs/server.pem"
        CA_file = "/etc/freeradius/certs/ca.pem"
        private_key_password = "whatever"
        dh_file = "/etc/freeradius/certs/dh"
        random_file = "/etc/freeradius/certs/random"
        fragment_size = 1024
        include_length = yes
        check_crl = no
        cipher_list = "DEFAULT"
        make_cert_command = "/etc/freeradius/certs/bootstrap"
    cache {
        enable = no
        lifetime = 24
        max_entries = 255
    }
   }
 Module: Linked to sub-module rlm_eap_ttls
 Module: Instantiating eap-ttls
   ttls {
        default_eap_type = "md5"
        copy_request_to_tunnel = no
        use_tunneled_reply = no
        virtual_server = "inner-tunnel"
        include_length = yes
   }
 Module: Linked to sub-module rlm_eap_peap
 Module: Instantiating eap-peap
   peap {
        default_eap_type = "mschapv2"
        copy_request_to_tunnel = no
        use_tunneled_reply = no
        proxy_tunneled_request_as_eap = yes
        virtual_server = "inner-tunnel"
   }
 Module: Linked to sub-module rlm_eap_mschapv2
 Module: Instantiating eap-mschapv2
   mschapv2 {
        with_ntdomain_hack = no
   }
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_realm
 Module: Instantiating suffix
  realm suffix {
        format = "suffix"
        delimiter = "@"
        ignore_default = no
        ignore_null = no
  }
 Module: Linked to module rlm_files
 Module: Instantiating files
  files {
        usersfile = "/etc/freeradius/users"
        acctusersfile = "/etc/freeradius/acct_users"
        preproxy_usersfile = "/etc/freeradius/preproxy_users"
        compat = "no"
  }
 Module: Checking session {...} for more modules to load
 Module: Linked to module rlm_radutmp
 Module: Instantiating radutmp
  radutmp {
        filename = "/var/log/freeradius/radutmp"
        username = "%{User-Name}"
        case_sensitive = yes
        check_with_nas = yes
        perm = 384
        callerid = yes
  }
 Module: Checking post-proxy {...} for more modules to load
 Module: Checking post-auth {...} for more modules to load
 Module: Linked to module rlm_attr_filter
 Module: Instantiating attr_filter.access_reject
  attr_filter attr_filter.access_reject {
        attrsfile = "/etc/freeradius/attrs.access_reject"
        key = "%{User-Name}"
  }
 } # modules
} # server
server {
 modules {
 Module: Checking authenticate {...} for more modules to load
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_preprocess
 Module: Instantiating preprocess
  preprocess {
        huntgroups = "/etc/freeradius/huntgroups"
        hints = "/etc/freeradius/hints"
        with_ascend_hack = no
        ascend_channels_per_line = 23
        with_ntdomain_hack = no
        with_specialix_jetstream_hack = no
        with_cisco_vsa_hack = no
        with_alvarion_vsa_hack = no
  }
 Module: Checking preacct {...} for more modules to load
 Module: Linked to module rlm_acct_unique
 Module: Instantiating acct_unique
  acct_unique {
        key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address,
NAS-Port"
  }
 Module: Checking accounting {...} for more modules to load
 Module: Linked to module rlm_detail
 Module: Instantiating detail
  detail {
        detailfile = "/var/log/freeradius/radacct/%{Client-IP-
Address}/detail-%Y%m%d"
        header = "%t"
        detailperm = 384
        dirperm = 493
        locking = no
        log_packet_header = no
  }
 Module: Instantiating attr_filter.accounting_response
  attr_filter attr_filter.accounting_response {
        attrsfile = "/etc/freeradius/attrs.accounting_response"
        key = "%{User-Name}"
  }
 Module: Checking session {...} for more modules to load
 Module: Checking post-proxy {...} for more modules to load
 Module: Checking post-auth {...} for more modules to load
 } # modules
} # server
radiusd: #### Opening IP addresses and Ports ####
listen {
        type = "auth"
        ipaddr = *
        port = 0
}
listen {
        type = "acct"
        ipaddr = *
        port = 0
}
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Ready to process requests.
rad_recv: Access-Request packet from host 192.168.2.254 port 1293, id=134,
length=171
        Message-Authenticator = 0xfca2dde9cbf88c9dda618843e4284ce3
        Service-Type = Framed-User
        User-Name = "ja"
        Framed-MTU = 1488
        Called-Station-Id = "0A1B2F3F4B09:TEST-RADIUS"
        Calling-Station-Id = "00215DE37F06"
        NAS-Identifier = "EdatisAP01"
        NAS-Port-Type = Wireless-802.11
        Connect-Info = "CONNECT 54Mbps 802.11g"
        EAP-Message = 0x02000007016a61
        NAS-IP-Address = 192.168.2.254
        NAS-Port = 3
        NAS-Port-Id = "STA port # 3"
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "ja", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 0 length 7
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
++[unix] returns notfound
++[files] returns noop
[ldap] performing user authorization for ja
[ldap]  expand: (uid=%u) -> (uid=ja)
[ldap]  expand: o=siege,dc=edatis,dc=net -> o=siege,dc=edatis,dc=net
  [ldap] ldap_get_conn: Checking Id: 0
  [ldap] ldap_get_conn: Got Id: 0
  [ldap] attempting LDAP reconnection
  [ldap] (re)connect to ldap-samba.edatis.net:389, authentication 0
  [ldap] bind as cn=samba,ou=DSA,o=siege,dc=edatis,dc=net/XXXXXXXXXXXXXX to
ldap-samba.edatis.net:389
  [ldap] waiting for bind result ...
  [ldap] Bind was successful
  [ldap] performing search in o=siege,dc=edatis,dc=net, with filter (uid=ja)
[ldap] No default NMAS login sequence
[ldap] looking for check items in directory...
  [ldap] userPassword -> Cleartext-Password ==
"{SSHA}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  [ldap] sambaNtPassword -> NT-Password ==
0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  [ldap] sambaLmPassword -> LM-Password ==
0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[ldap] looking for reply items in directory...
[ldap] user ja authorized to use remote access
  [ldap] ldap_release_conn: Release Id: 0
++[ldap] returns ok
++[expiration] returns noop
++[logintime] returns noop
[pap] Normalizing NT-Password from hex encoding
[pap] Normalizing LM-Password from hex encoding
[pap] Found existing Auth-Type, not changing it.
++[pap] returns noop
Found Auth-Type = EAP
+- entering group authenticate {...}
[eap] EAP Identity
[eap] processing type tls
[tls] Initiate
[tls] Start returned 1
++[eap] returns handled
Sending Access-Challenge of id 134 to 192.168.2.254 port 1293
        EAP-Message = 0x010100061920
        Message-Authenticator = 0x00000000000000000000000000000000
        State = 0xa438c38da439daa8d179fc26af932d9e
Finished request 0.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 192.168.2.254 port 1293, id=135,
length=290
        Message-Authenticator = 0x61de277698742a597fbfdfa29db339ba
        Service-Type = Framed-User
        User-Name = "ja"
        Framed-MTU = 1488
        State = 0xa438c38da439daa8d179fc26af932d9e
        Called-Station-Id = "0A1B2F3F4B09:TEST-RADIUS"
        Calling-Station-Id = "00215DE37F06"
        NAS-Identifier = "EdatisAP01"
        NAS-Port-Type = Wireless-802.11
        Connect-Info = "CONNECT 54Mbps 802.11g"
        EAP-Message =
0x0201006c190016030100610100005d03014b61874aeb28191bfa0ea8959cc1ab00195297e60342f30e507416004b4f9da900003600390038003500160013000a00330032002f0007006600050004006300620061001500120009006500640060001400110008000600030100
        NAS-IP-Address = 192.168.2.254
        NAS-Port = 3
        NAS-Port-Id = "STA port # 3"
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "ja", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 1 length 108
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
[peap] eaptls_verify returned 7
[peap] Done initial handshake
[peap]     (other): before/accept initialization
[peap]     TLS_accept: before/accept initialization
[peap] <<< TLS 1.0 Handshake [length 0061], ClientHello
[peap]     TLS_accept: SSLv3 read client hello A
[peap] >>> TLS 1.0 Handshake [length 002a], ServerHello
[peap]     TLS_accept: SSLv3 write server hello A
[peap] >>> TLS 1.0 Handshake [length 01bd], Certificate
[peap]     TLS_accept: SSLv3 write certificate A
[peap] >>> TLS 1.0 Handshake [length 018d], ServerKeyExchange
[peap]     TLS_accept: SSLv3 write key exchange A
[peap] >>> TLS 1.0 Handshake [length 0004], ServerHelloDone
[peap]     TLS_accept: SSLv3 write server done A
[peap]     TLS_accept: SSLv3 flush data
[peap]     TLS_accept: Need to read more data: SSLv3 read client certificate A
In SSL Handshake Phase
In SSL Accept mode
[peap] eaptls_process returned 13
[peap] EAPTLS_HANDLED
++[eap] returns handled
Sending Access-Challenge of id 135 to 192.168.2.254 port 1293
        EAP-Message =
0x010203921900160301002a0200002603014b6188ad62b57b72ce58789681077259296216db7129aa2991d6ec99f963490e0000390016030101bd0b0001b90001b60001b3308201af30820118020900aabc790ebaa14af5300d06092a864886f70d0101050500301c311a3018060355040313116c656e6e79322e6564617469732e6e6574301e170d3130303132373132343432385a170d3230303132353132343432385a301c311a3018060355040313116c656e6e79322e6564617469732e6e657430819f300d06092a864886f70d010101050003818d0030818902818100af7e62d1e332ee425ede2a8a9c4d66ec90fa82cb08f3664b48e92f0bdd51
        EAP-Message =
0x1a0076b348e1dc79e73af3685d647caf1bfed384d9ec1eaf6cdd4aa91438c13c7b7039d887052dacaf4427bdcfe5a333ffdec6d8641612410e01375cb921f0bb1b59394d947c881437addc30da20911e3a259e3ed36e5eb360c6d03c2cfcecdbbba90203010001300d06092a864886f70d010105050003818100893be2e6e0c3e7502cf293c38056da754e79d794278cf201a24a289789f49bf0d05091624e01632eb54129911d7de195c6c08dd191e2d9f3bd7b9d0d340ce5a2c9d21b8dd057193ea02adc1c7bf2068a8e560cd90b2532be5a7aaf4dea006bd74589d4ddfdcb53e301c5b0ff5ed8933a982b7c0ca70dab679cf38568b1a6fa10160301
        EAP-Message =
0x018d0c0001890080901e2ebecf47dbc48d63c2a091cedae94f7ea1b75f7e3c718ead5f27ad4c023d576fad92ff70275d0939de72b7d4da343e94c15fcfab259f1a8eedda6f78d5a2a42a21e34aa40dce43d369924c8768306025b76f39e90748b01ccb8b072c643baa86db8395816c8d8e1114926536c944aa82c4c60d40844f3b62781ee4baae7b00010200803316b5573ca11d5759bbe62c9439a7888f9ab21a02b436c1913f04f70d3ef00797f608a4edc818b9c5089c2c0b3f4d514797fab4c41fc6f18dc60af45b933798c81ef434b1480c8e3c16525b952b395c369e0ccd081682a2c5456c9f158ccd51fb1e2262c1ab8a4f81d346832ab2e940
        EAP-Message =
0xb26ca06fb9564f6838c48cd69411fff000809fe7701c1477e5179290708ce743868ea56cdb352974ec0ea4589962488ca99abf83c41f4f0b260ef237260b4a04969c912d75af43ddf8d954a8ed01aec64a435083efc37491dbe27cbc9feb56b9fa8642e38c722e5390209eb042d9d7a5dcddd6d495496e17865d957051388c904a0071135e94583ec47b353bbf982a8197a216030100040e000000
        Message-Authenticator = 0x00000000000000000000000000000000
        State = 0xa438c38da53adaa8d179fc26af932d9e
Finished request 1.
Going to the next request
Waking up in 3.6 seconds.
rad_recv: Access-Request packet from host 192.168.2.254 port 1293, id=136,
length=195
        Message-Authenticator = 0xc61290830e73ebcbfef0062e173c6144
        Service-Type = Framed-User
        User-Name = "ja"
        Framed-MTU = 1488
        State = 0xa438c38da53adaa8d179fc26af932d9e
        Called-Station-Id = "0A1B2F3F4B09:TEST-RADIUS"
        Calling-Station-Id = "00215DE37F06"
        NAS-Identifier = "EdatisAP01"
        NAS-Port-Type = Wireless-802.11
        Connect-Info = "CONNECT 54Mbps 802.11g"
        EAP-Message = 0x0202000d190015030100020230
        NAS-IP-Address = 192.168.2.254
        NAS-Port = 3
        NAS-Port-Id = "STA port # 3"
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "ja", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 2 length 13
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
[peap] eaptls_verify returned 7
[peap] Done initial handshake
[peap] <<< TLS 1.0 Alert [length 0002], fatal unknown_ca
TLS Alert read:fatal:unknown CA
    TLS_accept:failed in SSLv3 read client certificate A
rlm_eap: SSL error error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert
unknown ca
SSL: SSL_read failed inside of TLS (-1), TLS session fails.
TLS receive handshake failed during operation
[peap] eaptls_process returned 4
[peap] EAPTLS_OTHERS
[eap] Handler failed in EAP/peap
[eap] Failed in EAP select
++[eap] returns invalid
Failed to authenticate the user.
Login incorrect: [ja/<via Auth-Type = EAP>] (from client ap1 port 3 cli
00215DE37F06)
Using Post-Auth-Type Reject
+- entering group REJECT {...}
[attr_filter.access_reject]     expand: %{User-Name} -> ja
 attr_filter: Matched entry DEFAULT at line 11
++[attr_filter.access_reject] returns updated
Delaying reject of request 2 for 1 seconds
Going to the next request
Waking up in 0.9 seconds.
rad_recv: Access-Request packet from host 192.168.2.254 port 1294, id=137,
length=171
        Message-Authenticator = 0x123f0be24507e527bfd48cd7a04a1b21
        Service-Type = Framed-User
        User-Name = "ja"
        Framed-MTU = 1488
        Called-Station-Id = "0A1B2F3F4B09:TEST-RADIUS"
        Calling-Station-Id = "00215DE37F06"
        NAS-Identifier = "EdatisAP01"
        NAS-Port-Type = Wireless-802.11
        Connect-Info = "CONNECT 54Mbps 802.11g"
        EAP-Message = 0x02000007016a61
        NAS-IP-Address = 192.168.2.254
        NAS-Port = 3
        NAS-Port-Id = "STA port # 3"
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "ja", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 0 length 7
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
++[unix] returns notfound
++[files] returns noop
[ldap] performing user authorization for ja
[ldap]  expand: (uid=%u) -> (uid=ja)
[ldap]  expand: o=siege,dc=edatis,dc=net -> o=siege,dc=edatis,dc=net
  [ldap] ldap_get_conn: Checking Id: 0
  [ldap] ldap_get_conn: Got Id: 0
  [ldap] performing search in o=siege,dc=edatis,dc=net, with filter (uid=ja)
[ldap] No default NMAS login sequence
[ldap] looking for check items in directory...
  [ldap] userPassword -> Cleartext-Password ==
"{SSHA}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  [ldap] sambaNtPassword -> NT-Password ==
0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  [ldap] sambaLmPassword -> LM-Password ==
0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[ldap] looking for reply items in directory...
[ldap] user ja authorized to use remote access
  [ldap] ldap_release_conn: Release Id: 0
++[ldap] returns ok
++[expiration] returns noop
++[logintime] returns noop
[pap] Normalizing NT-Password from hex encoding
[pap] Normalizing LM-Password from hex encoding
[pap] Found existing Auth-Type, not changing it.
++[pap] returns noop
Found Auth-Type = EAP
+- entering group authenticate {...}
[eap] EAP Identity
[eap] processing type tls
[tls] Initiate
[tls] Start returned 1
++[eap] returns handled
Sending Access-Challenge of id 137 to 192.168.2.254 port 1294
        EAP-Message = 0x010100061920
        Message-Authenticator = 0x00000000000000000000000000000000
        State = 0x44e9d36244e8cae81cf82d892cb5dbf8
Finished request 3.
Going to the next request
Waking up in 0.7 seconds.
rad_recv: Access-Request packet from host 192.168.2.254 port 1294, id=138,
length=290
        Message-Authenticator = 0x2dc7cf319bfb82806770c39934f0391c
        Service-Type = Framed-User
        User-Name = "ja"
        Framed-MTU = 1488
        State = 0x44e9d36244e8cae81cf82d892cb5dbf8
        Called-Station-Id = "0A1B2F3F4B09:TEST-RADIUS"
        Calling-Station-Id = "00215DE37F06"
        NAS-Identifier = "EdatisAP01"
        NAS-Port-Type = Wireless-802.11
        Connect-Info = "CONNECT 54Mbps 802.11g"
        EAP-Message =
0x0201006c190016030100610100005d03014b61874c6667be29a0fbce66ff0da6002ab9c1fac607f69b47b27d17adaa2d3e00003600390038003500160013000a00330032002f0007006600050004006300620061001500120009006500640060001400110008000600030100
        NAS-IP-Address = 192.168.2.254
        NAS-Port = 3
        NAS-Port-Id = "STA port # 3"
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "ja", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 1 length 108
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
[peap] eaptls_verify returned 7
[peap] Done initial handshake
[peap]     (other): before/accept initialization
[peap]     TLS_accept: before/accept initialization
[peap] <<< TLS 1.0 Handshake [length 0061], ClientHello
[peap]     TLS_accept: SSLv3 read client hello A
[peap] >>> TLS 1.0 Handshake [length 002a], ServerHello
[peap]     TLS_accept: SSLv3 write server hello A
[peap] >>> TLS 1.0 Handshake [length 01bd], Certificate
[peap]     TLS_accept: SSLv3 write certificate A
[peap] >>> TLS 1.0 Handshake [length 018d], ServerKeyExchange
[peap]     TLS_accept: SSLv3 write key exchange A
[peap] >>> TLS 1.0 Handshake [length 0004], ServerHelloDone
[peap]     TLS_accept: SSLv3 write server done A
[peap]     TLS_accept: SSLv3 flush data
[peap]     TLS_accept: Need to read more data: SSLv3 read client certificate A
In SSL Handshake Phase
In SSL Accept mode
[peap] eaptls_process returned 13
[peap] EAPTLS_HANDLED
++[eap] returns handled
Sending Access-Challenge of id 138 to 192.168.2.254 port 1294
        EAP-Message =
0x010203921900160301002a0200002603014b6188ae2392a1644ed62ae0cb936e3e59278b2902280001132018b9ed4efbe30000390016030101bd0b0001b90001b60001b3308201af30820118020900aabc790ebaa14af5300d06092a864886f70d0101050500301c311a3018060355040313116c656e6e79322e6564617469732e6e6574301e170d3130303132373132343432385a170d3230303132353132343432385a301c311a3018060355040313116c656e6e79322e6564617469732e6e657430819f300d06092a864886f70d010101050003818d0030818902818100af7e62d1e332ee425ede2a8a9c4d66ec90fa82cb08f3664b48e92f0bdd51
        EAP-Message =
0x1a0076b348e1dc79e73af3685d647caf1bfed384d9ec1eaf6cdd4aa91438c13c7b7039d887052dacaf4427bdcfe5a333ffdec6d8641612410e01375cb921f0bb1b59394d947c881437addc30da20911e3a259e3ed36e5eb360c6d03c2cfcecdbbba90203010001300d06092a864886f70d010105050003818100893be2e6e0c3e7502cf293c38056da754e79d794278cf201a24a289789f49bf0d05091624e01632eb54129911d7de195c6c08dd191e2d9f3bd7b9d0d340ce5a2c9d21b8dd057193ea02adc1c7bf2068a8e560cd90b2532be5a7aaf4dea006bd74589d4ddfdcb53e301c5b0ff5ed8933a982b7c0ca70dab679cf38568b1a6fa10160301
        EAP-Message =
0x018d0c0001890080901e2ebecf47dbc48d63c2a091cedae94f7ea1b75f7e3c718ead5f27ad4c023d576fad92ff70275d0939de72b7d4da343e94c15fcfab259f1a8eedda6f78d5a2a42a21e34aa40dce43d369924c8768306025b76f39e90748b01ccb8b072c643baa86db8395816c8d8e1114926536c944aa82c4c60d40844f3b62781ee4baae7b00010200800db78cd9fabb95bc43cc0460883e0cfda7b6cd641b3ea8f680573e0d5897f676cbb770eb7326e4e26b6dfd8b1f37bee66cd282e5c7ecea7a77deca40a0c8797bca6a2bb0b7229c37dace65385e9ad3cd80d164d4477fdf3bfd173a7a8ac6f87c2a49b0253dd7a76818dc9a4684f47880
        EAP-Message =
0x361f3d29ef8ddf80a99cd4a356bab9ad00803521405ab0f429bd23b1c8329995ab467c57e17eb0e831b45dbdefbfae56582885504ad7095aeea550fa5b1ec3bb19c98f372d021103bb526d6be8821a4a13f7d945e6f82726f0abcb58935cc4d0de62d3aa87e8653a29183f50bb0f16f47d618fb7b56fea3e4822a9162ceae752bf2b821b95fa95080acf1d1446515e2ac1ea16030100040e000000
        Message-Authenticator = 0x00000000000000000000000000000000
        State = 0x44e9d36245ebcae81cf82d892cb5dbf8
Finished request 4.
Going to the next request
Waking up in 0.6 seconds.
rad_recv: Access-Request packet from host 192.168.2.254 port 1294, id=139,
length=195
        Message-Authenticator = 0x56d112f581e36338b0f532c75efff986
        Service-Type = Framed-User
        User-Name = "ja"
        Framed-MTU = 1488
        State = 0x44e9d36245ebcae81cf82d892cb5dbf8
        Called-Station-Id = "0A1B2F3F4B09:TEST-RADIUS"
        Calling-Station-Id = "00215DE37F06"
        NAS-Identifier = "EdatisAP01"
        NAS-Port-Type = Wireless-802.11
        Connect-Info = "CONNECT 54Mbps 802.11g"
        EAP-Message = 0x0202000d190015030100020230
        NAS-IP-Address = 192.168.2.254
        NAS-Port = 3
        NAS-Port-Id = "STA port # 3"
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "ja", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 2 length 13
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
[peap] eaptls_verify returned 7
[peap] Done initial handshake
[peap] <<< TLS 1.0 Alert [length 0002], fatal unknown_ca
TLS Alert read:fatal:unknown CA
    TLS_accept:failed in SSLv3 read client certificate A
rlm_eap: SSL error error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert
unknown ca
SSL: SSL_read failed inside of TLS (-1), TLS session fails.
TLS receive handshake failed during operation
[peap] eaptls_process returned 4
[peap] EAPTLS_OTHERS
[eap] Handler failed in EAP/peap
[eap] Failed in EAP select
++[eap] returns invalid
Failed to authenticate the user.
Login incorrect: [ja/<via Auth-Type = EAP>] (from client ap1 port 3 cli
00215DE37F06)
Using Post-Auth-Type Reject
+- entering group REJECT {...}
[attr_filter.access_reject]     expand: %{User-Name} -> ja
 attr_filter: Matched entry DEFAULT at line 11
++[attr_filter.access_reject] returns updated
Delaying reject of request 5 for 1 seconds
Going to the next request
Waking up in 0.5 seconds.
Sending delayed reject for request 2
Sending Access-Reject of id 136 to 192.168.2.254 port 1293
        EAP-Message = 0x04020004
        Message-Authenticator = 0x00000000000000000000000000000000
Waking up in 0.4 seconds.
rad_recv: Access-Request packet from host 192.168.2.254 port 1294, id=139,
length=195
Waiting to send Access-Reject to client ap1 port 1294 - ID: 139
Sending delayed reject for request 5
Sending Access-Reject of id 139 to 192.168.2.254 port 1294
        EAP-Message = 0x04020004
        Message-Authenticator = 0x00000000000000000000000000000000
Waking up in 2.0 seconds.
Cleaning up request 0 ID 134 with timestamp +23
Waking up in 1.3 seconds.
Cleaning up request 1 ID 135 with timestamp +24
Waking up in 0.3 seconds.
Cleaning up request 3 ID 137 with timestamp +25
Waking up in 0.1 seconds.
Cleaning up request 4 ID 138 with timestamp +25
Waking up in 0.6 seconds.
Cleaning up request 2 ID 136 with timestamp +24
Waking up in 0.4 seconds.
Cleaning up request 5 ID 139 with timestamp +25
Ready to process requests.

Thanks.
Jonathan Amiez.
--
***************************
Jonathan Amiez
Administrateur système
ja at edatis.com
***************************




More information about the Freeradius-Users mailing list