Hello!
I'm trying to restrict client access to my access point by radius using EAP.
It seems to work fine up tp Stage 4, where it sends Access-Challenge. After that everything seems to fail.
I've included a dump of radius chat, radiusd debug output and my radiusd.conf
Thanks in advance for any help!
Regards Jens "Iwo" Riecken
Environment: freeradius-0.9.3 DWL-2100AP (AccessPoint) DWL-G520 (Wirless Adapter) Client OS W2k SP4 w/ 802.1x service enabled
Client-side config: Authentication: WPA SSID: pwlz001 EAP Type: LEAP
AP-side config: Authentication: WPA WPA Mode: EAP Cipher Type: AUTO (AES/TKIP available) Group Key Update Interval: 1234
dump:
tcpdump: listening on eth1
10:29:22.720147 10.0.1.1.newlixengine > 10.0.0.1.radius: rad-access-req 208 [id 0] Attr[ Message_auth{.....4D..E;..;('} Service_type{Framed} [|radius]
10:29:22.794803 10.0.0.1.radius > 10.0.1.1.newlixengine: rad-access-cha 116 [id 0] Attr[ EAP_msg{.........M..G...myusername} [|radius] (DF)
10:29:22.913120 10.0.1.1.newlixengine > 10.0.0.1.radius: rad-access-req 273 [id 1] Attr[ Message_auth{F.VWje.Z.....[.K} Service_type{Framed} [|radius]
10:29:22.953014 10.0.0.1.radius > 10.0.1.1.newlixengine: rad-access-cha 94 [id 1] Attr[ EAP_msg{....} Message_auth{.......D.G.R0U5.} [|radius] (DF)
10:29:25.396310 10.0.1.1.newlixengine > 10.0.0.1.radius: rad-access-req 208 [id 3] Attr[ Message_auth{>O6.>o.g.O..... } Service_type{Framed} [|radius]
10:29:25.432047 10.0.0.1.radius > 10.0.1.1.newlixengine: rad-access-cha 116 [id 3] Attr[ EAP_msg{........n2...$Bymyusername} [|radius] (DF)
10:29:25.460841 10.0.1.1.newlixengine > 10.0.0.1.radius: rad-access-req 273 [id 4] Attr[ Message_auth{r~2........Qi.`.} Service_type{Framed} [|radius]
10:29:25.500123 10.0.0.1.radius > 10.0.1.1.newlixengine: rad-access-cha 94 [id 4] Attr[ EAP_msg{....} Message_auth{.E...__...i&.sE.} [|radius] (DF)
10:29:25.502828 10.0.1.1.newlixengine > 10.0.0.1.radius: rad-access-req 235 [id 5] Attr[ Message_auth{...;....D.].....} Service_type{Framed} [|radius]
10:29:27.794060 arp who-has 10.0.1.1 tell 10.0.0.1
10:29:27.794533 arp reply 10.0.1.1 is-at 0:f:3d:9f:d1:6f
10:29:28.524302 10.0.0.1.radius > 10.0.1.1.newlixengine: rad-access-reject 20 [id 5] (DF)
trace:
Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file: /usr/local/etc/raddb/clients.conf
Config: including file: /usr/local/etc/raddb/snmp.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: snmp = 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 = yes
main: log_auth_badpass = yes
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 = 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
Using deprecated clients file. Support for this will go away soon.
read_config_files: reading realms
Using deprecated realms file. Support for this will go away soon.
radiusd: entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded MS-CHAP
mschap: use_mppe = yes
mschap: require_encryption = yes
mschap: require_strong = yes
mschap: passwd = "(null)"
mschap: authtype = "MS-CHAP"
Module: Instantiated mschap (mschap)
Module: Loaded LDAP
ldap: server = "localhost"
ldap: port = 389
ldap: net_timeout = 1
ldap: timeout = 4
ldap: timelimit = 3
ldap: identity = "cn=ldapuser,ou=admins,c=at"
ldap: start_tls = no
ldap: password = "ldappass"
ldap: basedn = "c=at"
ldap: filter = "(&(objectclass=wlanUser)(uid=%{Stripped-User-Name:-%{User-Name}}))"
ldap: default_profile = "(null)"
ldap: profile_attribute = "(null)"
ldap: password_header = ""
ldap: password_attribute = "userPassword"
ldap: access_attr = "uid"
ldap: groupname_attribute = "cn"
ldap: groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
ldap: groupmembership_attribute = "(null)"
ldap: dictionary_mapping = "/usr/local/etc/raddb/ldap.attrmap"
ldap: ldap_debug = 0
ldap: ldap_connections_number = 5
ldap: compare_check_items = no
ldap: access_attr_used_for_allow = yes
conns: (nil)
rlm_ldap: reading ldap<->radius mappings from file /usr/local/etc/raddb/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 acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration
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
conns: 0x8106fa0
Module: Instantiated ldap (ldap)
Module: Loaded eap
eap: default_eap_type = "leap"
eap: timer_expire = 60
rlm_eap: Loaded and initialized the type leap
rlm_eap: Loaded and initialized the type md5
Module: Instantiated eap (eap)
Module: Loaded radutmp
radutmp: filename = "/usr/local/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)
Module: Loaded IPPOOL
ippool: session-db = "/usr/local/etc/raddb/db.ippool"
ippool: ip-index = "/usr/local/etc/raddb/db.ipindex"
ippool: range-start = 192.168.1.1 IP address [192.168.1.1]
ippool: range-stop = 192.168.3.254 IP address [192.168.3.254]
ippool: netmask = 255.255.255.0 IP address [255.255.255.0]
ippool: cache-size = 800
ippool: override = yes
Module: Instantiated ippool (main_pool)
Listening on IP address *, ports 1812/udp and 1813/udp.
Ready to process requests.
rad_recv: Access-Request packet from host 10.0.1.1:2075, id=0, length=208
Message-Authenticator = 0x01f3ddccfb34449ffd453bec923b2827
Service-Type = Framed-User
User-Name = "myusername"
Framed-MTU = 1488
Called-Station-Id = "00-0F-3D-9F-D1-6F:pwlz001"
Calling-Station-Id = "00-0F-3D-86-D5-C5"
NAS-Identifier = "D-link Corp. Access Point"
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 54Mbps 802.11g"
EAP-Message = 0x0200000f016d79757365726e616d65
NAS-IP-Address = 10.0.1.1
NAS-Port = 1
NAS-Port-Id = "STA port # 1"
modcall: entering group authorize for request 0
rlm_ldap: - authorize
rlm_ldap: performing user authorization for myusername
radius_xlat: '(&(objectclass=wlanUser)(uid=myusername))'
radius_xlat: 'c=at'
ldap_get_conn: Got Id: 0
rlm_ldap: attempting LDAP reconnection
rlm_ldap: (re)connect to localhost:389, authentication 0
rlm_ldap: bind as cn=ldapuser,ou=admins,c=at/ldappass to localhost:389
rlm_ldap: waiting for bind result ...
rlm_ldap: performing search in c=at, with filter (&(objectclass=wlanUser)(uid=myusername))
rlm_ldap: checking if remote access for myusername is allowed by uid
rlm_ldap: Added password 123 in check items
rlm_ldap: looking for check items in directory...
rlm_ldap: extracted attribute Pool-Name from generic item Pool-Name := "main_pool"
rlm_ldap: looking for reply items in directory...
rlm_ldap: user myusername authorized to use remote access
ldap_release_conn: Release Id: 0
modcall[authorize]: module "ldap" returns ok for request 0
rlm_eap: EAP packet type notification id 0 length 15
rlm_eap: EAP Start not found
modcall[authorize]: module "eap" returns updated for request 0
modcall[authorize]: module "mschap" returns noop for request 0
modcall: group authorize returns updated for request 0
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate for request 0
rlm_eap: EAP packet type notification id 0 length 15
rlm_eap: EAP Start not found
rlm_eap: EAP Identity
rlm_eap: processing type leap
rlm_eap_leap: Stage 2
rlm_eap_leap: Issuing AP Challenge
rlm_eap_leap: Successfully initiated
modcall[authenticate]: module "eap" returns ok for request 0
modcall: group authenticate returns ok for request 0
Login OK: [myusername] (from client pwl-ap1 port 1 cli 00-0F-3D-86-D5-C5)
modcall: entering group post-auth for request 0
rlm_ippool: Searching for an entry for nas/port: 10.0.1.1/1
rlm_ippool: Found a stale entry for ip/port: 192.168.3.243/1
rlm_ippool: num: 0
rlm_ippool: Searching for an entry for nas/port: 10.0.1.1/1
rlm_ippool: Allocating ip to nas/port: 10.0.1.1/1
rlm_ippool: num: 1
rlm_ippool: Allocated ip 192.168.3.252 to client on nas 10.0.1.1,port 1
modcall[post-auth]: module "main_pool" returns ok for request 0
modcall: group post-auth returns ok for request 0
Sending Access-Challenge of id 0 to 10.0.1.1:2075
EAP-Message = 0x0101001a11010008df4daf094797e8066d79757365726e616d65
Message-Authenticator = 0x00000000000000000000000000000000
State = 0xf258082bed5914766c5d7b9074f6efb062f8b640eb9fc34df65bf89ec598f79f0038d347
Framed-IP-Address = 192.168.3.252
Framed-IP-Netmask = 255.255.255.0
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 10.0.1.1:2075, id=1, length=273
Message-Authenticator = 0x46eb56576a65025aa3b4ef91815b9b4b
Service-Type = Framed-User
User-Name = "myusername"
Framed-MTU = 1488
State = 0xf258082bed5914766c5d7b9074f6efb062f8b640eb9fc34df65bf89ec598f79f0038d347
Called-Station-Id = "00-0F-3D-9F-D1-6F:pwlz001"
Calling-Station-Id = "00-0F-3D-86-D5-C5"
NAS-Identifier = "D-link Corp. Access Point"
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 54Mbps 802.11g"
EAP-Message = 0x0201002a11010018ec1a23ccec0a11019439b64b174a0e31aeac77a98fd797476d79757365726e616d65
NAS-IP-Address = 10.0.1.1
NAS-Port = 1
NAS-Port-Id = "STA port # 1"
modcall: entering group authorize for request 1
rlm_ldap: - authorize
rlm_ldap: performing user authorization for myusername
radius_xlat: '(&(objectclass=wlanUser)(uid=myusername))'
radius_xlat: 'c=at'
ldap_get_conn: Got Id: 0
rlm_ldap: performing search in c=at, with filter (&(objectclass=wlanUser)(uid=myusername))
rlm_ldap: checking if remote access for myusername is allowed by uid
rlm_ldap: Added password 123 in check items
rlm_ldap: looking for check items in directory...
rlm_ldap: extracted attribute Pool-Name from generic item Pool-Name := "main_pool"
rlm_ldap: looking for reply items in directory...
rlm_ldap: user myusername authorized to use remote access
ldap_release_conn: Release Id: 0
modcall[authorize]: module "ldap" returns ok for request 1
rlm_eap: EAP packet type notification id 1 length 42
rlm_eap: EAP Start not found
modcall[authorize]: module "eap" returns updated for request 1
modcall[authorize]: module "mschap" returns noop for request 1
modcall: group authorize returns updated for request 1
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate for request 1
rlm_eap: EAP packet type notification id 1 length 42
rlm_eap: EAP Start not found
rlm_eap: Request found, released from the list
rlm_eap: EAP_TYPE - leap
rlm_eap: processing type leap
rlm_eap_leap: Stage 4
rlm_eap_leap: NtChallengeResponse from AP is valid
rlm_eap: Underlying EAP-Type set EAP ID to 2
rlm_eap: Saving LEAP state
modcall[authenticate]: module "eap" returns ok for request 1
modcall: group authenticate returns ok for request 1
Login OK: [myusername] (from client pwl-ap1 port 1 cli 00-0F-3D-86-D5-C5)
modcall: entering group post-auth for request 1
rlm_ippool: Searching for an entry for nas/port: 10.0.1.1/1
rlm_ippool: Found a stale entry for ip/port: 192.168.3.252/1
rlm_ippool: num: 0
rlm_ippool: Searching for an entry for nas/port: 10.0.1.1/1
rlm_ippool: Allocating ip to nas/port: 10.0.1.1/1
rlm_ippool: num: 1
rlm_ippool: Allocated ip 192.168.3.243 to client on nas 10.0.1.1,port 1
modcall[post-auth]: module "main_pool" returns ok for request 1
modcall: group post-auth returns ok for request 1
Sending Access-Challenge of id 1 to 10.0.1.1:2075
EAP-Message = 0x03020004
Message-Authenticator = 0x00000000000000000000000000000000
State = 0xf258082bed5914766c5d7b9074f6efb062f8b640eb9fc34df65bf89ec598f79f0038d347
Framed-IP-Address = 192.168.3.243
Framed-IP-Netmask = 255.255.255.0
Finished request 1
Going to the next request
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 10.0.1.1:2075, id=3, length=208
Message-Authenticator = 0x3e4f369f3e6f08679f4f0792f6da8120
Service-Type = Framed-User
User-Name = "myusername"
Framed-MTU = 1488
Called-Station-Id = "00-0F-3D-9F-D1-6F:pwlz001"
Calling-Station-Id = "00-0F-3D-86-D5-C5"
NAS-Identifier = "D-link Corp. Access Point"
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 54Mbps 802.11g"
EAP-Message = 0x0203000f016d79757365726e616d65
NAS-IP-Address = 10.0.1.1
NAS-Port = 1
NAS-Port-Id = "STA port # 1"
modcall: entering group authorize for request 2
rlm_ldap: - authorize
rlm_ldap: performing user authorization for myusername
radius_xlat: '(&(objectclass=wlanUser)(uid=myusername))'
radius_xlat: 'c=at'
ldap_get_conn: Got Id: 0
rlm_ldap: performing search in c=at, with filter (&(objectclass=wlanUser)(uid=myusername))
rlm_ldap: checking if remote access for myusername is allowed by uid
rlm_ldap: Added password 123 in check items
rlm_ldap: looking for check items in directory...
rlm_ldap: extracted attribute Pool-Name from generic item Pool-Name := "main_pool"
rlm_ldap: looking for reply items in directory...
rlm_ldap: user myusername authorized to use remote access
ldap_release_conn: Release Id: 0
modcall[authorize]: module "ldap" returns ok for request 2
rlm_eap: EAP packet type notification id 3 length 15
rlm_eap: EAP Start not found
modcall[authorize]: module "eap" returns updated for request 2
modcall[authorize]: module "mschap" returns noop for request 2
modcall: group authorize returns updated for request 2
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate for request 2
rlm_eap: EAP packet type notification id 3 length 15
rlm_eap: EAP Start not found
rlm_eap: EAP Identity
rlm_eap: processing type leap
rlm_eap_leap: Stage 2
rlm_eap_leap: Issuing AP Challenge
rlm_eap_leap: Successfully initiated
modcall[authenticate]: module "eap" returns ok for request 2
modcall: group authenticate returns ok for request 2
Login OK: [myusername] (from client pwl-ap1 port 1 cli 00-0F-3D-86-D5-C5)
modcall: entering group post-auth for request 2
rlm_ippool: Searching for an entry for nas/port: 10.0.1.1/1
rlm_ippool: Found a stale entry for ip/port: 192.168.3.243/1
rlm_ippool: num: 0
rlm_ippool: Searching for an entry for nas/port: 10.0.1.1/1
rlm_ippool: Allocating ip to nas/port: 10.0.1.1/1
rlm_ippool: num: 1
rlm_ippool: Allocated ip 192.168.3.252 to client on nas 10.0.1.1,port 1
modcall[post-auth]: module "main_pool" returns ok for request 2
modcall: group post-auth returns ok for request 2
Sending Access-Challenge of id 3 to 10.0.1.1:2075
EAP-Message = 0x0104001a110100086e32acf1192442796d79757365726e616d65
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x83a84d1491b352ae314e4dbe93d0e1d065f8b640c328e233f0117724f9529928931c6a1a
Framed-IP-Address = 192.168.3.252
Framed-IP-Netmask = 255.255.255.0
Finished request 2
Going to the next request
--- Walking the entire request list ---
Waking up in 3 seconds...
rad_recv: Access-Request packet from host 10.0.1.1:2075, id=4, length=273
Message-Authenticator = 0x727e32b5af8182e40db1ad51699060f9
Service-Type = Framed-User
User-Name = "myusername"
Framed-MTU = 1488
State = 0x83a84d1491b352ae314e4dbe93d0e1d065f8b640c328e233f0117724f9529928931c6a1a
Called-Station-Id = "00-0F-3D-9F-D1-6F:pwlz001"
Calling-Station-Id = "00-0F-3D-86-D5-C5"
NAS-Identifier = "D-link Corp. Access Point"
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 54Mbps 802.11g"
EAP-Message = 0x0204002a110100188148d67ac80e6b4775d3d69ccf0043d5193a6f1f20ee0bb26d79757365726e616d65
NAS-IP-Address = 10.0.1.1
NAS-Port = 1
NAS-Port-Id = "STA port # 1"
modcall: entering group authorize for request 3
rlm_ldap: - authorize
rlm_ldap: performing user authorization for myusername
radius_xlat: '(&(objectclass=wlanUser)(uid=myusername))'
radius_xlat: 'c=at'
ldap_get_conn: Got Id: 0
rlm_ldap: performing search in c=at, with filter (&(objectclass=wlanUser)(uid=myusername))
rlm_ldap: checking if remote access for myusername is allowed by uid
rlm_ldap: Added password 123 in check items
rlm_ldap: looking for check items in directory...
rlm_ldap: extracted attribute Pool-Name from generic item Pool-Name := "main_pool"
rlm_ldap: looking for reply items in directory...
rlm_ldap: user myusername authorized to use remote access
ldap_release_conn: Release Id: 0
modcall[authorize]: module "ldap" returns ok for request 3
rlm_eap: EAP packet type notification id 4 length 42
rlm_eap: EAP Start not found
modcall[authorize]: module "eap" returns updated for request 3
modcall[authorize]: module "mschap" returns noop for request 3
modcall: group authorize returns updated for request 3
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate for request 3
rlm_eap: EAP packet type notification id 4 length 42
rlm_eap: EAP Start not found
rlm_eap: Request found, released from the list
rlm_eap: EAP_TYPE - leap
rlm_eap: processing type leap
rlm_eap_leap: Stage 4
rlm_eap_leap: NtChallengeResponse from AP is valid
rlm_eap: Underlying EAP-Type set EAP ID to 5
rlm_eap: Saving LEAP state
modcall[authenticate]: module "eap" returns ok for request 3
modcall: group authenticate returns ok for request 3
Login OK: [myusername] (from client pwl-ap1 port 1 cli 00-0F-3D-86-D5-C5)
modcall: entering group post-auth for request 3
rlm_ippool: Searching for an entry for nas/port: 10.0.1.1/1
rlm_ippool: Found a stale entry for ip/port: 192.168.3.252/1
rlm_ippool: num: 0
rlm_ippool: Searching for an entry for nas/port: 10.0.1.1/1
rlm_ippool: Allocating ip to nas/port: 10.0.1.1/1
rlm_ippool: num: 1
rlm_ippool: Allocated ip 192.168.3.243 to client on nas 10.0.1.1,port 1
modcall[post-auth]: module "main_pool" returns ok for request 3
modcall: group post-auth returns ok for request 3
Sending Access-Challenge of id 4 to 10.0.1.1:2075
EAP-Message = 0x03050004
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x83a84d1491b352ae314e4dbe93d0e1d065f8b640c328e233f0117724f9529928931c6a1a
Framed-IP-Address = 192.168.3.243
Framed-IP-Netmask = 255.255.255.0
Finished request 3
Going to the next request
Waking up in 3 seconds...
rad_recv: Access-Request packet from host 10.0.1.1:2075, id=5, length=235
Message-Authenticator = 0x0913ff3bdaa1eb1444f85dabec991713
Service-Type = Framed-User
User-Name = "myusername"
Framed-MTU = 1488
State = 0x83a84d1491b352ae314e4dbe93d0e1d065f8b640c328e233f0117724f9529928931c6a1a
Called-Station-Id = "00-0F-3D-9F-D1-6F:pwlz001"
Calling-Station-Id = "00-0F-3D-86-D5-C5"
NAS-Identifier = "D-link Corp. Access Point"
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 54Mbps 802.11g"
EAP-Message = 0x03050004
NAS-IP-Address = 10.0.1.1
NAS-Port = 1
NAS-Port-Id = "STA port # 1"
modcall: entering group authorize for request 4
rlm_ldap: - authorize
rlm_ldap: performing user authorization for myusername
radius_xlat: '(&(objectclass=wlanUser)(uid=myusername))'
radius_xlat: 'c=at'
ldap_get_conn: Got Id: 0
rlm_ldap: performing search in c=at, with filter (&(objectclass=wlanUser)(uid=myusername))
rlm_ldap: checking if remote access for myusername is allowed by uid
rlm_ldap: Added password 123 in check items
rlm_ldap: looking for check items in directory...
rlm_ldap: extracted attribute Pool-Name from generic item Pool-Name := "main_pool"
rlm_ldap: looking for reply items in directory...
rlm_ldap: user myusername authorized to use remote access
ldap_release_conn: Release Id: 0
modcall[authorize]: module "ldap" returns ok for request 4
rlm_eap: EAP packet type nak id 5 length 4
rlm_eap: EAP Start not found
modcall[authorize]: module "eap" returns updated for request 4
modcall[authorize]: module "mschap" returns noop for request 4
modcall: group authorize returns updated for request 4
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate for request 4
rlm_eap: EAP packet type nak id 5 length 4
rlm_eap: EAP Start not found
rlm_eap: Incorrect EAP Message, Ignoring the packet
modcall[authenticate]: module "eap" returns invalid for request 4
modcall: group authenticate returns invalid for request 4
auth: Failed to validate the user.
Login incorrect: [myusername/<no User-Password attribute>] (from client pwl-ap1 port 1 cli 00-0F-3D-86-D5-C5)
Delaying request 4 for 1 seconds
Finished request 4
Going to the next request
Waking up in 3 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 0 with timestamp 40b6f862
Cleaning up request 1 ID 1 with timestamp 40b6f862
Sending Access-Reject of id 5 to 10.0.1.1:2075
Waking up in 3 seconds...
--- Walking the entire request list ---
Cleaning up request 2 ID 3 with timestamp 40b6f865
Cleaning up request 3 ID 4 with timestamp 40b6f865
Cleaning up request 4 ID 5 with timestamp 40b6f865
Nothing to do. Sleeping until we see a request.
radiusd.conf:
prefix = /usr/local exec_prefix = ${prefix} sysconfdir = ${prefix}/etc localstatedir = ${prefix}/var sbindir = ${exec_prefix}/sbin logdir = ${localstatedir}/log/radius raddbdir = ${sysconfdir}/raddb radacctdir = ${logdir}/radacct confdir = ${raddbdir} run_dir = ${localstatedir}/run/radiusd log_file = ${logdir}/radius.log libdir = ${exec_prefix}/lib pidfile = ${run_dir}/radiusd.pid max_request_time = 30 delete_blocked_requests = no cleanup_delay = 5 max_requests = 1024 bind_address = * port = 0 hostname_lookups = no allow_core_dumps = no regular_expressions = yes extended_expressions = yes log_stripped_names = no log_auth = yes log_auth_badpass = yes log_auth_goodpass = no usercollide = no lower_user = no lower_pass = no nospace_user = no nospace_pass = no checkrad = ${sbindir}/checkrad security { max_attributes = 200 reject_delay = 1 status_server = no } proxy_requests = no $INCLUDE ${confdir}/clients.conf snmp = no $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 { radutmp { filename = ${logdir}/radutmp username = %{User-Name} case_sensitive = yes check_with_nas = yes perm = 0600 callerid = "yes" } eap { default_eap_type = leap timer_expire = 60 leap { } md5 { }
}
mschap {
authtype = MS-CHAP
use_mppe = yes
require_encryption = yes
require_strong = yes
}
ldap {
server = "localhost"
identity = "cn=ldapuser,ou=admins,c=at"
password = ldappass
basedn = "c=at"
filter = "(&(objectclass=wlanUser)(uid=%{Stripped-User-Name:-%{User-Name}}))"
start_tls = no
access_attr = "uid"
dictionary_mapping = ${raddbdir}/ldap.attrmap
ldap_connections_number = 5
password_header = ""
password_attribute = "userPassword"
timeout = 4
timelimit = 3
net_timeout = 1
}
ippool main_pool {
name = main_pool
range-start = 192.168.1.1
range-stop = 192.168.3.254
netmask = 255.255.255.0
cache-size = 800
session-db = ${raddbdir}/db.ippool
ip-index = ${raddbdir}/db.ipindex
override = yes
}
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
}
}
authorize {
ldap
eap
mschap
}
authenticate {
Auth-Type MS-CHAP {
mschap
}
Auth-Type LDAP {
ldap
}
eap
}
instantiate {
}
preacct {
}
accounting {
radutmp
main_pool
}
session {
radutmp
}
post-auth {
main_pool
}
pre-proxy {
}
post-proxy {
}
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

