Freeradius-Users
Threads by month
- ----- 2026 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- 7 participants
- 27067 discussions
Hello,
I'm trying to configure my freeradius server (version 2.1.8 running in
a ubuntu 10.04 server) to log access request results to syslog. My
configuration is:
authorize {
...
sistemas_syslog
...
}
accounting {
...
sistemas_syslog
...
}
post-auth {
...
sistemas_syslog
Post-Auth-Type REJECT {
...
sistemas_syslog
}
Post-Auth-Type ACCEPT {
...
sistemas_syslog
}
}
And I also have:
linelog sistemas_syslog {
filename = syslog
format = "This is a Application log message for %{User-Name}
(%{Packet-Type})"
reference = "%{%{Packet-Type}:-format}"
Access-Request = "Application Requested access: %{User-Name}"
Access-Reject = "Application Rejected access: %{User-Name}"
Access-Challenge = "Application Sent challenge: %{User-Name}"
Access-Accept = "Application Accepted access: %{User-Name}"
}
But all logs I have are:
May 23 12:44:33 vulpes21 freeradius: Application Requested access:
XXXXXXXXXXXX
May 23 12:44:33 vulpes21 freeradius: Application Requested access:
XXXXXXXXXXXX
(yes, it is sent twice). In debug mode I get:
rad_recv: Access-Request packet from host 155.54.67.15 port 52081, id=1,
length=71
Calling-Station-Id = "XXXXXXXXXXXXXXXXXx"
User-Name = "XXXXXXXXXXXXXXXXXXXX"
User-Password = "XXXXXXXXXXXXX"
Service-Type = Login-User
server sistemas {
+- entering group authorize {...}
[sistemas_log] expand:
/var/log/freeradius/radacct/%{Client-IP-Address}/sistemas_log-%Y%m%d ->
/var/log/freeradius/radacct/155.54.67.15/sistemas_log-20110523
[sistemas_log]
/var/log/freeradius/radacct/%{Client-IP-Address}/sistemas_log-%Y%m%d
expands to /var/log/freeradius/radacct/155.54.67.15/sistemas_log-20110523
[sistemas_log] expand: %t -> Mon May 23 12:44:33 2011
++[sistemas_log] returns ok
[sistemas_syslog] expand: %{Packet-Type} -> Access-Request
[sistemas_syslog] expand: %{%{Packet-Type}:-format} -> Access-Request
[sistemas_syslog] expand: Application Requested access: %{User-Name} ->
Application Requested access: XXXXXXXXXXXX
++[sistemas_syslog] returns ok
[suffix] Looking up realm "um.es" for User-Name = "XXXXXXXXXXXX"
[suffix] Found realm "um.es"
[suffix] Adding Stripped-User-Name = "amateo"
[suffix] Adding Realm = "um.es"
[suffix] Authentication realm is LOCAL.
++[suffix] returns ok
[files_sistemas] users: Matched entry DEFAULT at line 15
[files_sistemas] expand: %{User-Name} -> XXXXXXXXXXXX
++[files_sistemas] returns ok
[pap] WARNING! No "known good" password found for the user.
Authentication may fail because of this.
++[pap] returns noop
Found Auth-Type = LDAP
+- entering group LDAP {...}
[ldap-email] login attempt by "amateo" with password "XXXXXXXXXXXXXX"
<The rest of LDAP debug messages>
++[ldap-email] returns ok
Login OK: [XXXXXXXXXXXX] (from client monitor port 0 cli PORTALREDES)
+- entering group post-auth {...}
[sistemas_log] expand:
/var/log/freeradius/radacct/%{Client-IP-Address}/sistemas_log-%Y%m%d ->
/var/log/freeradius/radacct/155.54.67.15/sistemas_log-20110523
[sistemas_log]
/var/log/freeradius/radacct/%{Client-IP-Address}/sistemas_log-%Y%m%d
expands to /var/log/freeradius/radacct/155.54.67.15/sistemas_log-20110523
[sistemas_log] expand: %t -> Mon May 23 12:44:33 2011
++[sistemas_log] returns ok
[sistemas_syslog] expand: %{Packet-Type} -> Access-Request
[sistemas_syslog] expand: %{%{Packet-Type}:-format} -> Access-Request
[sistemas_syslog] expand: Application Requested access: %{User-Name} ->
Application Requested access: XXXXXXXXXXXX
++[sistemas_syslog] returns ok
} # server sistemas
Sending Access-Accept of id 1 to 155.54.67.15 port 52081
User-Name = "XXXXXXXXXXXX"
Finished request 0.
Going to the next request
Waking up in 4.9 seconds.
All I want is to log in syslog if the access-request is accepted or
rejected for any reason.
Any help?
--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información _o)
y las Comunicaciones Aplicadas (ATICA) / \\
http://www.um.es/atica _(___V
Tfo: 868887590
Fax: 868888337
2
2
How to change "++[files] returns noop " into "++[files] returns reject"
by thomas.dohl@24-7-it-services.de 24 May '11
by thomas.dohl@24-7-it-services.de 24 May '11
24 May '11
Hi all,
in the section "authorize" I include the module "file".
(/etc/raddb/users)
At the moment I get an noop if a user is not found in the file.
How can I change it to return a reject, if a user is not found?
Now:
++[files] returns noop
Destination:
++[files] returns reject
Thanks in advance,
Thomas
3
4
________________________________
From: Fajar A. Nugraha <list(a)fajar.net>
To: FreeRadius users mailing list <freeradius-users(a)lists.freeradius.org>
Sent: Tue, May 24, 2011 8:15:42 AM
Subject: Re: Authentication Problem
On Tue, May 24, 2011 at 9:20 AM, john decot <johndecot(a)yahoo.com> wrote:
> Hi ,
> I have been using freeradius-server-2.1.10 . Dialupadmin is using for web
> based administration. It was working fine till yesterday. I have changed
> added attribute to check Max-All-Session. Then I have face problem of
> No authenticate method (Auth-Type) found for the request: Rejecting the
> user
Max-All-Session alone should not cause that
>
> however the authorized section is working fine. After googling i have check
> with option default Auth-Type = Local but it was not success.
Normally you should never have to mess with Auth-Type, unless you're
doing some exotic setup (like LDAP bind with fallback to system user)
> this error
> occurs for new create user only , old user are authenticating normally.
>
> I have revert back my changes with removing attribute to check
> Max-All-Session but still the error exists.
... which again, simply confirms that Max-All-Session was not the
cause of the problem
>
> Please advise me.
You have changed something else and made it broken. Reverse that.
I use git to record changes in /etc/raddb so I can have a record of
what have changed. You might need something similar.
In the mean time, see
http://wiki.freeradius.org/index.php/FAQ#It_still_doesn.27t_work.21
Since you say only some users experience it, compare the log for both
the working and non-working user.
--
Fajar
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
1
0
Hi,
I would like to MAC filtering on a DHCP system with LDAP. I think, radius
may work as a DHCP server. There are some methods as radius proxy or some
experimental ways.
What is the best way to do MAC filtering? What is your suggestion?
thanks,
1
0
Hi,
I tried to change the ldap-searchfilter in the ldap module, to search
for a username "user" and "user$" in LDAP, if "user" is given. This is
neccecary to authenticate my workstations and users via LDAP.
This is my filter definition in the ldap module:
filter =
"(|(uid=%{%{Stripped-User-Name}:-%{User-Name}})(uid=%{%{Stripped-User-Name}:-%{User-Name}}\$))"
This ist what I get:
[ldap] expand:
(|(uid=%{%{Stripped-User-Name}:-%{User-Name}})(uid=%{%{Stripped-User-Name}:-%{User-Name}}$))
-> (|(uid=scit-beerchen)(uid=scit-beerchen))
[ldap] expand: dc=verwaltung,dc=kh-berlin,dc=de ->
dc=verwaltung,dc=kh-berlin,dc=de
[ldap] ldap_get_conn: Checking Id: 0
[ldap] ldap_get_conn: Got Id: 0
[ldap] attempting LDAP reconnection
[ldap] (re)connect to physalis:389, authentication 0
[ldap] bind as / to physalis:389
[ldap] waiting for bind result ...
[ldap] Bind was successful
[ldap] performing search in dc=verwaltung,dc=kh-berlin,dc=de, with
filter (|(uid=scit-beerchen)(uid=scit-beerchen))
[ldap] object not found
But the "$" sign is always ignored. I tried also \\$ and some other
combinations. But none worked. So I'am doing it the wrong way. How do I
add (or escape) the $ into my query?
BTW: The query
(|(uid=scit-beerchen)(uid=scit-beerchen$))
works on the shell with ldapsearch. the ldap module itself works also.
What's the problem?
TIA
Alex
1
0
I followed the guide that was linked from http://wiki.freeradius.org/FreeRADIUS_Active_Directory_Integration_HOWTO because I'm running v2 of the radius server.
After going to the guide I was still unable to authenticate to the AD though the wireless AP controller. This radius is running on Ubuntu 10.04 and is supposed to replace a free radius controller running v1 on Gentoo. The one running on Gentoo is working for the most part, just dies from time to time. So we are just upgrading and refreshing.
For some reason I have not been able to get the radius server to do what I need it to do and that is work with MS-CHAP so that it will authenticate to AD.
FreeRADIUS Version 2.1.8, for host i486-pc-linux-gnu, built on Jan 5 2010 at 02:49:11
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/proxy.conf
including configuration file /etc/freeradius/clients.conf
including files in directory /etc/freeradius/modules/
including configuration file /etc/freeradius/modules/cui
including configuration file /etc/freeradius/modules/detail.log
including configuration file /etc/freeradius/modules/mac2ip
including configuration file /etc/freeradius/modules/attr_rewrite
including configuration file /etc/freeradius/modules/sqlcounter_expire_on_login
including configuration file /etc/freeradius/modules/perl
including configuration file /etc/freeradius/modules/smbpasswd
including configuration file /etc/freeradius/modules/inner-eap
including configuration file /etc/freeradius/modules/counter
including configuration file /etc/freeradius/modules/echo
including configuration file /etc/freeradius/modules/exec
including configuration file /etc/freeradius/modules/acct_unique
including configuration file /etc/freeradius/modules/radutmp
including configuration file /etc/freeradius/modules/chap
including configuration file /etc/freeradius/modules/wimax
including configuration file /etc/freeradius/modules/sradutmp
including configuration file /etc/freeradius/modules/attr_filter
including configuration file /etc/freeradius/modules/ntlm_auth
including configuration file /etc/freeradius/modules/detail.example.com
including configuration file /etc/freeradius/modules/krb5
including configuration file /etc/freeradius/modules/detail
including configuration file /etc/freeradius/modules/expiration
including configuration file /etc/freeradius/modules/unix
including configuration file /etc/freeradius/modules/logintime
including configuration file /etc/freeradius/modules/linelog
including configuration file /etc/freeradius/modules/sql_log
including configuration file /etc/freeradius/modules/ldap
including configuration file /etc/freeradius/modules/expr
including configuration file /etc/freeradius/modules/pam
including configuration file /etc/freeradius/modules/policy
including configuration file /etc/freeradius/modules/files
including configuration file /etc/freeradius/modules/realm
including configuration file /etc/freeradius/modules/otp
including configuration file /etc/freeradius/modules/smsotp
including configuration file /etc/freeradius/modules/digest
including configuration file /etc/freeradius/modules/mschap
including configuration file /etc/freeradius/modules/etc_group
including configuration file /etc/freeradius/modules/pap
including configuration file /etc/freeradius/modules/mac2vlan
including configuration file /etc/freeradius/modules/passwd
including configuration file /etc/freeradius/modules/ippool
including configuration file /etc/freeradius/modules/always
including configuration file /etc/freeradius/modules/preprocess
including configuration file /etc/freeradius/modules/checkval
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/rad2/rad2.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
}
security {
max_attributes = 200
reject_delay = 1
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
home_server localhost {
ipaddr = 127.0.0.1
port = 1812
type = "auth"
secret = "testing123"
response_window = 20
max_outstanding = 65536
require_message_authenticator = no
zombie_period = 40
status_check = "status-server"
ping_interval = 30
check_interval = 30
num_answers_to_alive = 3
num_pings_to_alive = 3
revive_interval = 120
status_check_timeout = 4
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = "testing123"
nastype = "other"
}
client foundryap {
ipaddr = 192.168.103.10
require_message_authenticator = no
secret = "testing123"
}
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 = yes
require_strong = yes
with_ntdomain_hack = yes
ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{mschap:User-Name:-None} --domain=%{%{mschap:NT-Domain}:-ATL.EXAMPLE.COM} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00} --require-membership-of=ATL+wifi-secure"
}
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 = yes
use_tunneled_reply = yes
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_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: Linked to module rlm_realm
Module: Instantiating suffix
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = yes
}
Module: Instantiating ntdomain
realm ntdomain {
format = "prefix"
delimiter = "\"
ignore_default = no
ignore_null = yes
}
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: Linked to module rlm_pam
Module: Instantiating pam
pam {
pam_auth = "radiusd"
}
Module: Checking authorize {...} for more modules to load
Module: Linked to module rlm_detail
Module: Instantiating auth_log
detail auth_log {
detailfile = "/var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d"
header = "%t"
detailperm = 384
dirperm = 493
locking = no
log_packet_header = 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: 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: Linked to module rlm_unix
Module: Instantiating unix
unix {
radwtmp = "/var/log/freeradius/radwtmp"
}
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 = 1812
}
listen {
type = "acct"
ipaddr = *
port = 1813
}
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on proxy address * port 1814
Ready to process requests.
rad_recv: Access-Request packet from host 192.168.103.10 port 32890, id=83, length=158
User-Name = "ATL\\user"
NAS-IP-Address = 192.168.103.10
NAS-Port = 6145
Called-Station-Id = "00-90-0B-0A-81-96:radtest"
Calling-Station-Id = "00-26-C7-6F-FF-64"
Framed-MTU = 900
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 802.11g"
EAP-Message = 0x020100110141544c5c7069706b696e5f6d
Message-Authenticator = 0xf18704d104d0322078509df754b74003
+- entering group authorize {...}
++[preprocess] returns ok
[auth_log] expand: /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d -> /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] expand: %t -> Mon May 16 15:28:41 2011
++[auth_log] returns ok
++[chap] returns noop
++[mschap] returns noop
[ntdomain] Looking up realm "ATL" for User-Name = "ATL\user"
[ntdomain] No such realm "ATL"
++[ntdomain] returns noop
[eap] EAP packet type response id 1 length 17
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
++[files] returns noop
++[expiration] returns noop
++[logintime] returns noop
[pap] WARNING! No "known good" password found for the user. Authentication may fail because of this.
++[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 83 to 192.168.103.10 port 32890
EAP-Message = 0x010200061920
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x880bd1788809c8ca896d5b23fad51f0e
Finished request 0.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 192.168.103.10 port 32890, id=84, length=296
User-Name = "ATL\\user"
NAS-IP-Address = 192.168.103.10
NAS-Port = 6145
Called-Station-Id = "00-90-0B-0A-81-96:radtest"
Calling-Station-Id = "00-26-C7-6F-FF-64"
Framed-MTU = 900
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 802.11g"
EAP-Message = 0x0202008919800000007f160301007a0100007603014dd17b10f62607c3d64b96e5d9505d0180e01cb5bd8d86d43136a93b0805404a209e83189d67298bccdaa3ebde678430bac0f21f8fc6ae3786aa1efaadf9822f110018002f00350005000ac013c014c009c00a003200380013000401000015ff01000100000a0006000400170018000b00020100
State = 0x880bd1788809c8ca896d5b23fad51f0e
Message-Authenticator = 0x013e8d6954e859caabbe5767cb033984
+- entering group authorize {...}
++[preprocess] returns ok
[auth_log] expand: /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d -> /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] expand: %t -> Mon May 16 15:28:41 2011
++[auth_log] returns ok
++[chap] returns noop
++[mschap] returns noop
[ntdomain] Looking up realm "ATL" for User-Name = "ATL\user"
[ntdomain] No such realm "ATL"
++[ntdomain] returns noop
[eap] EAP packet type response id 2 length 137
[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
TLS Length 127
[peap] Length Included
[peap] eaptls_verify returned 11
[peap] (other): before/accept initialization
[peap] TLS_accept: before/accept initialization
[peap] <<< TLS 1.0 Handshake [length 007a], ClientHello
[peap] TLS_accept: SSLv3 read client hello A
[peap] >>> TLS 1.0 Handshake [length 0031], ServerHello
[peap] TLS_accept: SSLv3 write server hello A
[peap] >>> TLS 1.0 Handshake [length 01c3], Certificate
[peap] TLS_accept: SSLv3 write certificate 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 84 to 192.168.103.10 port 32890
EAP-Message = 0x0103020d190016030100310200002d03014dd17ae914ae79001cc53a10e9b7b1412d0c045d04221287bb1e07feb8d1656a00002f000005ff0100010016030101c30b0001bf0001bc0001b9308201b53082011e020900e959fd943dab9ed7300d06092a864886f70d0101050500301f311d301b06035504031314726164322e61746c2e616972327765622e636f6d301e170d3131303531323133313131395a170d3231303530393133313131395a301f311d301b06035504031314726164322e61746c2e616972327765622e636f6d30819f300d06092a864886f70d010101050003818d0030818902818100cdc310525259fed19d90dee18c44f2f8d8
EAP-Message = 0x6656c42938adcb2543a6f9b2756cc72ea5c7a23101ca2a9c20ffbb66fcde9b418d01310914e7a4bc382d33a38efcf1e58eb1d4bd669914cac1703da10b0c06cf6142b05887f4165ad77c1a2ca5fe53d154000a14db83505be59ab4fab339755fb0fbfb2392d92242d6996819e0527b0203010001300d06092a864886f70d01010505000381810080ec9a66411b895c708ae2ed324bd3e4757c052fc199bc3049f95dcca2f4817c3ae94691c13bc8c7101456d5ccf9a1d5809d20dad828fe922f315fa5c01a11598f616c12e54bd95f3198f87ee8c02130d0f23ebd2ca008f7ef0c82b583de3b995477b59731c4497d56c8943af00aee48efc7ad76276e
EAP-Message = 0x3336e1804d16833ff8b416030100040e000000
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x880bd1788908c8ca896d5b23fad51f0e
Finished request 1.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 192.168.103.10 port 32890, id=85, length=165
User-Name = "ATL\\user"
NAS-IP-Address = 192.168.103.10
NAS-Port = 6145
Called-Station-Id = "00-90-0B-0A-81-96:radtest"
Calling-Station-Id = "00-26-C7-6F-FF-64"
Framed-MTU = 900
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 802.11g"
EAP-Message = 0x020300061900
State = 0x880bd1788908c8ca896d5b23fad51f0e
Message-Authenticator = 0xada9d2724210731e12da1c6d2f3f0926
+- entering group authorize {...}
++[preprocess] returns ok
[auth_log] expand: /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d -> /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] expand: %t -> Mon May 16 15:28:41 2011
++[auth_log] returns ok
++[chap] returns noop
++[mschap] returns noop
[ntdomain] Looking up realm "ATL" for User-Name = "ATL\user"
[ntdomain] No such realm "ATL"
++[ntdomain] returns noop
[eap] EAP packet type response id 3 length 6
[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] Received TLS ACK
[peap] ACK handshake fragment handler
[peap] eaptls_verify returned 1
[peap] eaptls_process returned 13
[peap] EAPTLS_HANDLED
++[eap] returns handled
Sending Access-Challenge of id 85 to 192.168.103.10 port 32890
EAP-Message = 0x010400061900
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x880bd1788a0fc8ca896d5b23fad51f0e
Finished request 2.
Going to the next request
Waking up in 4.9 seconds.
Invalid packet code 4 sent to authentication port from client foundryap port 32770 : IGNORED
Waking up in 4.3 seconds.
Invalid packet code 4 sent to authentication port from client foundryap port 32770 : IGNORED
Waking up in 3.8 seconds.
Invalid packet code 4 sent to authentication port from client foundryap port 32770 : IGNORED
Waking up in 3.6 seconds.
rad_recv: Access-Request packet from host 192.168.103.10 port 32890, id=88, length=158
User-Name = "ATL\\user"
NAS-IP-Address = 192.168.103.10
NAS-Port = 6145
Called-Station-Id = "00-90-0B-0A-81-96:radtest"
Calling-Station-Id = "00-26-C7-6F-FF-64"
Framed-MTU = 900
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 802.11g"
EAP-Message = 0x020100110141544c5c7069706b696e5f6d
Message-Authenticator = 0x26e0f9d13ab7787bf244db77d342326d
+- entering group authorize {...}
++[preprocess] returns ok
[auth_log] expand: /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d -> /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] expand: %t -> Mon May 16 15:28:43 2011
++[auth_log] returns ok
++[chap] returns noop
++[mschap] returns noop
[ntdomain] Looking up realm "ATL" for User-Name = "ATL\user"
[ntdomain] No such realm "ATL"
++[ntdomain] returns noop
[eap] EAP packet type response id 1 length 17
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
++[files] returns noop
++[expiration] returns noop
++[logintime] returns noop
[pap] WARNING! No "known good" password found for the user. Authentication may fail because of this.
++[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 88 to 192.168.103.10 port 32890
EAP-Message = 0x010200061920
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x457c467c457e5f9ed7afaf432a46c660
Finished request 3.
Going to the next request
Waking up in 3.6 seconds.
rad_recv: Access-Request packet from host 192.168.103.10 port 32890, id=89, length=165
User-Name = "ATL\\user"
NAS-IP-Address = 192.168.103.10
NAS-Port = 6145
Called-Station-Id = "00-90-0B-0A-81-96:radtest"
Calling-Station-Id = "00-26-C7-6F-FF-64"
Framed-MTU = 900
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 802.11g"
EAP-Message = 0x020200060311
State = 0x457c467c457e5f9ed7afaf432a46c660
Message-Authenticator = 0xad2eebc61c93e9f242fc51bf2dafe2c0
+- entering group authorize {...}
++[preprocess] returns ok
[auth_log] expand: /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d -> /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] expand: %t -> Mon May 16 15:28:43 2011
++[auth_log] returns ok
++[chap] returns noop
++[mschap] returns noop
[ntdomain] Looking up realm "ATL" for User-Name = "ATL\user"
[ntdomain] No such realm "ATL"
++[ntdomain] returns noop
[eap] EAP packet type response id 2 length 6
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
++[files] returns noop
++[expiration] returns noop
++[logintime] returns noop
[pap] WARNING! No "known good" password found for the user. Authentication may fail because of this.
++[pap] returns noop
Found Auth-Type = EAP
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP NAK
[eap] EAP-NAK asked for EAP-Type/leap
[eap] processing type leap
rlm_eap_leap: Stage 2
rlm_eap_leap: Issuing AP Challenge
rlm_eap_leap: Successfully initiated
++[eap] returns handled
Sending Access-Challenge of id 89 to 192.168.103.10 port 32890
EAP-Message = 0x0103001c11010008765dcad2513ca14941544c5c7069706b696e5f6d
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x457c467c447f579ed7afaf432a46c660
Finished request 4.
Going to the next request
Waking up in 3.6 seconds.
rad_recv: Access-Request packet from host 192.168.103.10 port 32890, id=90, length=203
User-Name = "ATL\\user"
NAS-IP-Address = 192.168.103.10
NAS-Port = 6145
Called-Station-Id = "00-90-0B-0A-81-96:radtest"
Calling-Station-Id = "00-26-C7-6F-FF-64"
Framed-MTU = 900
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 802.11g"
EAP-Message = 0x0203002c1101001887b03ee7af25d8731fec4765958f0f4b0775fd12760ca7a341544c5c7069706b696e5f6d
State = 0x457c467c447f579ed7afaf432a46c660
Message-Authenticator = 0xcc373dbaa966a554c5a5a842877f7fed
+- entering group authorize {...}
++[preprocess] returns ok
[auth_log] expand: /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d -> /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.103.10/auth-detail-20110516
[auth_log] expand: %t -> Mon May 16 15:28:43 2011
++[auth_log] returns ok
++[chap] returns noop
++[mschap] returns noop
[ntdomain] Looking up realm "ATL" for User-Name = "ATL\user"
[ntdomain] No such realm "ATL"
++[ntdomain] returns noop
[eap] EAP packet type response id 3 length 44
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
++[files] returns noop
++[expiration] returns noop
++[logintime] returns noop
[pap] WARNING! No "known good" password found for the user. Authentication may fail because of this.
++[pap] returns noop
Found Auth-Type = EAP
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/leap
[eap] processing type leap
rlm_eap_leap: No Cleartext-Password or NT-Password configured for this user
[eap] Handler failed in EAP/leap
[eap] Failed in EAP select
++[eap] returns invalid
Failed to authenticate the user.
Using Post-Auth-Type Reject
+- entering group REJECT {...}
[attr_filter.access_reject] expand: %{User-Name} -> ATL\user
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.9 seconds.
Sending delayed reject for request 5
Sending Access-Reject of id 90 to 192.168.103.10 port 32890
EAP-Message = 0x04030004
Message-Authenticator = 0x00000000000000000000000000000000
Flame on!
Seriously though.. I'm going to keep working at this, just didn't know if someone would be able to help me out.
Thanks.
Mark PIpkin
Systems Administrator
Air2Web
Office: +1 404 942 5365
E-mail: mark.pipkin(a)air2web.com
Mobilize your business.
Find out how at www.air2web.com
Follow us on Twitter @a2wmobile
This message contains privileged and confidential information. If received in error, please delete immediately.
3
8
I have looked on the list for this a few times but there doesn't appear
to be a "how to", just an "it might work".
We are wanting to use freeradius with our wireless controller for .1x
termination. It will need to authenticate to AD and based on the
returned group hand back different attributes to the wireless
controller. I don't have any way to do a static group request because
the options are rather large here. AD needs to pass it back and then i
can probably do a match in the freeradius users file and pass the
controller an attribute (I think). We are using PEAP/MSCHAPv2 for this
currently. We were going to just proxy this to a microsoft NPS but it
appears that that option hands back attributes in the "wrong" place and
overall just seems terrible.
So far I have the ldap component querying AD correctly and I have the
ntlm_auth component doing the same and each individually passing from a
radtest. My question now revolves around passing the groups in our
setup and if this is even possible using the protocols listed above.
Unfortunately, we don't have the option to move away from these
protocols in our environment. I'm a bit of a freeradius noob so any
help is appreciated.
4
9
20 May '11
I just upgraded to net-dialup/freeradius-2.1.7 on a gentoo linux server.
I have already checked to see if there is anything listening on port 1812 including freeradius and there is nothing on that port. Any help would be greatly appreciated.
This is my radiusd-X output.
FreeRADIUS Version 2.1.7, for host i686-pc-linux-gnu, built on May 12 2011 at 10:43:07
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/raddb/radiusd.conf
including configuration file /etc/raddb/proxy.conf
including configuration file /etc/raddb/clients.conf
including files in directory /etc/raddb/modules/
including configuration file /etc/raddb/modules/cui
including configuration file /etc/raddb/modules/pam
including configuration file /etc/raddb/modules/pap
including configuration file /etc/raddb/modules/otp
including configuration file /etc/raddb/modules/chap
including configuration file /etc/raddb/modules/echo
including configuration file /etc/raddb/modules/exec
including configuration file /etc/raddb/modules/expr
including configuration file /etc/raddb/modules/ldap
including configuration file /etc/raddb/modules/krb5
including configuration file /etc/raddb/modules/perl
including configuration file /etc/raddb/modules/unix
including configuration file /etc/raddb/modules/inner-eap
including configuration file /etc/raddb/modules/radutmp
including configuration file /etc/raddb/modules/counter
including configuration file /etc/raddb/modules/acct_unique
including configuration file /etc/raddb/modules/files
including configuration file /etc/raddb/modules/realm
including configuration file /etc/raddb/modules/wimax
including configuration file /etc/raddb/modules/mac2vlan
including configuration file /etc/raddb/modules/linelog
including configuration file /etc/raddb/modules/sqlcounter_expire_on_login
including configuration file /etc/raddb/modules/detail.example.com
including configuration file /etc/raddb/modules/checkval
including configuration file /etc/raddb/modules/logintime
including configuration file /etc/raddb/modules/sql_log
including configuration file /etc/raddb/modules/sradutmp
including configuration file /etc/raddb/modules/always
including configuration file /etc/raddb/modules/attr_rewrite
including configuration file /etc/raddb/modules/krb5
including configuration file /etc/raddb/modules/perl
including configuration file /etc/raddb/modules/unix
including configuration file /etc/raddb/modules/inner-eap
including configuration file /etc/raddb/modules/radutmp
including configuration file /etc/raddb/modules/counter
including configuration file /etc/raddb/modules/acct_unique
including configuration file /etc/raddb/modules/files
including configuration file /etc/raddb/modules/realm
including configuration file /etc/raddb/modules/wimax
including configuration file /etc/raddb/modules/mac2vlan
including configuration file /etc/raddb/modules/linelog
including configuration file /etc/raddb/modules/sqlcounter_expire_on_login
including configuration file /etc/raddb/modules/detail.example.com
including configuration file /etc/raddb/modules/checkval
including configuration file /etc/raddb/modules/logintime
including configuration file /etc/raddb/modules/sql_log
including configuration file /etc/raddb/modules/sradutmp
including configuration file /etc/raddb/modules/always
including configuration file /etc/raddb/modules/attr_rewrite
including configuration file /etc/raddb/modules/detail
including configuration file /etc/raddb/modules/digest
including configuration file /etc/raddb/modules/ippool
including configuration file /etc/raddb/modules/mac2ip
including configuration file /etc/raddb/modules/mschap
including configuration file /etc/raddb/modules/smbpasswd
including configuration file /etc/raddb/modules/passwd
including configuration file /etc/raddb/modules/policy
including configuration file /etc/raddb/modules/smsotp
including configuration file /etc/raddb/modules/etc_group
including configuration file /etc/raddb/modules/preprocess
including configuration file /etc/raddb/modules/attr_filter
including configuration file /etc/raddb/modules/detail.log
including configuration file /etc/raddb/modules/expiration
including configuration file /etc/raddb/eap.conf
including configuration file /etc/raddb/sql.conf
including configuration file /etc/raddb/policy.conf
including files in directory /etc/raddb/sites-enabled/
including configuration file /etc/raddb/sites-enabled/default
including configuration file /etc/raddb/sites-enabled/inner-tunnel
including configuration file /etc/raddb/sites-enabled/control-socket
group = radiusd
user = radiusd
including dictionary file /etc/raddb/dictionary
main {
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/radius"
libdir = "/usr/lib/freeradius/"
radacctdir = "/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 1024
allow_core_dumps = no
pidfile = "/var/run/radiusd/radiusd.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
}
security {
max_attributes = 200
reject_delay = 1
status_server = no
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = yes
dead_time = 120
wake_all_if_all_dead = no
}
realm sfcd.net {
authhost = LOCAL
accthost = LOCAL
}
radiusd: #### Loading Clients ####
client 127.0.0.1 {
require_message_authenticator = no
secret = "test"
shortname = "localhost"
nastype = "other"
}
client 209.252.140.58/30 {
require_message_authenticator = no
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/radius/radwtmp"
}
Module: Linked to module rlm_eap
Module: Instantiating eap
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 2048
}
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/raddb/certs/server.pem"
certificate_file = "/etc/raddb/certs/server.pem"
CA_file = "/etc/raddb/certs/ca.pem"
private_key_password = "whatever"
dh_file = "/etc/raddb/certs/dh"
random_file = "/etc/raddb/certs/random"
fragment_size = 1024
include_length = yes
check_crl = no
cipher_list = "DEFAULT"
make_cert_command = "/etc/raddb/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: Linked to module rlm_unix
Module: Instantiating unix
unix {
radwtmp = "/var/log/radius/radwtmp"
}
Module: Linked to module rlm_eap
Module: Instantiating eap
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 2048
}
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/raddb/certs/server.pem"
certificate_file = "/etc/raddb/certs/server.pem"
CA_file = "/etc/raddb/certs/ca.pem"
private_key_password = "whatever"
dh_file = "/etc/raddb/certs/dh"
random_file = "/etc/raddb/certs/random"
fragment_size = 1024
include_length = yes
check_crl = no
cipher_list = "DEFAULT"
make_cert_command = "/etc/raddb/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/raddb/users"
acctusersfile = "/etc/raddb/acct_users"
preproxy_usersfile = "/etc/raddb/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/radius/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/raddb/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/raddb/huntgroups"
hints = "/dev/null"
with_ascend_hack = yes
ascend_channels_per_line = 24
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
Module: Linked to module rlm_sql
Module: Instantiating sql
sql {
driver = "rlm_sql_postgresql"
server = "gcd.dpu.net"
port = ""
login = "radius"
password = "radius"
radius_db = "radius"
read_groups = yes
sqltrace = no
sqltracefile = "/var/log/radius/sqltrace.sql"
readclients = no
deletestalesessions = yes
num_sql_socks = 2
lifetime = 0
max_queries = 0
sql_user_name = "%{%{Stripped-User-Name}:-%{User-Name}:-none}"
default_user_profile = ""
nas_query = "SELECT id,nasname,shortname,type,secret FROM nas"
authorize_check_query = "SELECT * FROM auth_user('%{SQL-User-Name}', '%{User-Password}', '%{NAS-Port-T$
authorize_reply_query = ""
authorize_group_check_query = "SELECT c.id, g.groupname, c.attribute, c.value, c.op FROM rad_groupcheck A$
authorize_group_reply_query = "SELECT r.id, g.groupname, r.attribute, r.value, r.Op FROM rad_groupreply A$
accounting_onoff_query = ""
accounting_update_query = "INSERT into rad_acct (id, nasipaddress, nasportid, acctsessionid, acctstat$
accounting_update_query_alt = ""
accounting_start_query = "INSERT into rad_acct (id, nasipaddress, nasportid, acctsessionid, acctstatustype, $
accounting_start_query_alt = ""
accounting_stop_query = "INSERT into rad_acct (id, nasipaddress, nasportid, acctsessionid, acctstatustype, $
accounting_stop_query_alt = ""
group_membership_query = "SELECT g.groupname FROM rad_groupnames AS g, rad_users AS u WHERE$
connect_failure_retry_delay = 60
simul_count_query = "SELECT max_logins('%{SQL-User-Name}')"
simul_verify_query = ""
postauth_query = ""
safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
}
rlm_sql (sql): Driver rlm_sql_postgresql (module rlm_sql_postgresql) loaded and linked
rlm_sql (sql): Attempting to connect to radius@gcd.dpu.net:/radius
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_postgresql #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_postgresql #1
rlm_sql (sql): Connected new DB handle, #1
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: Instantiating apt_port
exec apt_port {
wait = yes
program = "/etc/raddb/apt_port"
input_pairs = "request"
output_pairs = "request"
shell_escape = yes
}
Module: Checking accounting {...} for more modules to load
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"
ipv6addr = :: IPv6 address [::]
port = 0
/etc/raddb/radiusd.conf[249]: Error binding to port for :: port 1812
3
2
Please help i`ve configured the follow to enforce data limmits per user ,
sqlcounter noresetBytecounter {
counter-name = Total-Max-Octets
check-name = Max-Octets
reply-name = ChilliSpot-Max-Total-Octets
sqlmod-inst = sql
key = User-Name
reset = never
query = "SELECT (SUM(AcctInputOctets)+SUM(AcctOutputOctets))
FROM radacct WHERE UserName='%{%k}'"
}
However it is not disconecting the user from the network once limmit has
been reached , however if i log the user out and back in it then says user
limmit reached ,
Any ideas on how i can disconect the user ,
PS : i have added chillispots dictionary to freeradius dictionary
Many Thanks
Brent
--
View this message in context: http://freeradius.1045715.n5.nabble.com/Max-Octets-tp4412382p4412382.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
2
1
I am running freeradius-2.1.10 and ntlm_auth Version 3.0.33-3.29.el5_6.2.
Because our AD is managed by a different area (and we rely upon this for
user authentication), I am looking for ways to assist our customer
support area with appropriate logs to help debug AD issues. Sometimes,
due to bad processes, things don't always stay in sync across the domain.
What I have found is that ntlm_auth can return a variety of states like
the following (I am sure there is more):
[root@dvlana ~]# ntlm_auth --request-nt-key --domain=AD
--username=douglass --password=CORRECTPASSWORD
NT_STATUS_OK: Success (0x0)
[root@dvlana ~]# ntlm_auth --request-nt-key --domain=AD
--username=douglass --password=BADPASSWORDHERE
NT_STATUS_WRONG_PASSWORD: Wrong Password (0xc000006a)
[root@dvlana ~]# ntlm_auth --request-nt-key --domain=AD
--username=douglass --password=CORRECTPASSWORD
NT_STATUS_ACCOUNT_DISABLED: Account disabled (0xc0000072)
[root@dvlana ~]# ntlm_auth --request-nt-key --domain=AD
--username=douglass12 --password=PASSWORD
NT_STATUS_NO_SUCH_USER: No such user (0xc0000064)
Now, the actual ntlm_auth command within the $RADIUS/modules/mschap does
read:
ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key
--username=%{%{Stripped-User-Name}:-%{User-Name:-None}}
--challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}"
So it's not doing necessarily the same kind of authentication command as
I was doing above but I have no idea how to simulate a challege request
on command line to verify :)
I found a similar user in an old thread who submitted a patch:
(http://freeradius.1045715.n5.nabble.com/Capturing-ntlm-auth-failure-reasons…)
And it appears that this patch made it into the rlm_mschap.c module code:
if (result != 0) {
char *p;
VALUE_PAIR *vp = NULL;
RDEBUG2("External script failed.");
vp = pairmake("Module-Failure-Message", "",
T_OP_EQ);
if (!vp) {
radlog_request(L_ERR, 0, request, "No
memory to allocate Module-Failure-Message");
return RLM_MODULE_FAIL;
}
p = strchr(buffer, '\n');
if (p) *p = '\0';
snprintf(vp->vp_strvalue, sizeof(vp->vp_strvalue),
"%s: External script says %s",
inst->xlat_name, buffer);
vp->length = strlen(vp->vp_strvalue);
pairadd(&request->packet->vps, vp);
return -1;
}
However, when I view my debug for freeradius:
mschap] FAILED: MS-CHAP2-Response is incorrect
++[mschap] returns reject
[eap] Freeing handler
++[eap] returns reject
Failed to authenticate the user.
Login incorrect (mschap: External script says Logon failure
(0xc000006d)): [asdf/<via Auth-Type = EAP>] (from client LAWN-WiSM port
29 cli 00-25-00-f5-a3-2b via TLS tunnel)
However, "Logon failure" is nebulous when it could be either "bad
password", "account disabled", or "no such user" that comes out of the
"ntlm_auth" command (at least when I run it by hand).
Is this the fault of the results of ntlm_auth being vague or is
something else at play?
I also see that there may be a pair added with "Module-Failure-Message".
No where do I see that in a debug session when I force a failure to
occur (debug is below). Would that pair show up if it were available? If
so, any suggestions on how to get the output of ntlm_auth logged correctly?
Am I missing a logging option or configuration option to enable me to
get additional information out of the ntlm_auth failure or is this code
not functioning correctly?
Below is a full debug of a failed authentication with a non-existent
user "asdf":
rad_recv: Access-Request packet from host 10.80.10.42 port 32769, id=54,
length=180
User-Name = "asdf"
Calling-Station-Id = "00-25-00-f5-a3-2b"
Called-Station-Id = "00-25-45-37-5c-60:GTtestwpa"
NAS-Port = 29
NAS-IP-Address = 10.80.10.42
NAS-Identifier = "Rich-core-WiSM-E"
Airespace-Wlan-Id = 7
Service-Type = Framed-User
Framed-MTU = 1300
NAS-Port-Type = Wireless-802.11
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "809"
EAP-Message = 0x020200090161736466
Message-Authenticator = 0xbeb78b0b65e4a5537d6a1e14f56a93ac
server wpa {
# Executing section authorize from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authorize {...}
++[preprocess] returns ok
[eap] EAP packet type response id 2 length 9
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
[sqlwpa] expand: %{Stripped-User-Name} ->
[sqlwpa] ... expanding second conditional
[sqlwpa] expand: %{User-Name} -> asdf
[sqlwpa] expand: %{%{User-Name}:-DEFAULT} -> asdf
[sqlwpa] expand: %{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}}
-> asdf
[sqlwpa] sql_set_user escaped user --> 'asdf'
rlm_sql (sqlwpa): Reserving sql socket id: 63
[sqlwpa] expand: SELECT id, username, attribute, value, op
FROM radcheck WHERE username = '%{SQL-User-Name}'
ORDER BY id -> SELECT id, username, attribute, value, op FROM
radcheck WHERE username = 'asdf' ORDER BY id
[sqlwpa] expand: SELECT
determineGroup('%{Calling-Station-Id}','%{SQL-User-Name}','%{Called-Station-Id}')
as groupname -> SELECT
determineGroup('00-25-00-f5-a3-2b','asdf','00-25-45-37-5c-60:GTtestwpa')
as groupname
[sqlwpa] expand: SELECT id, groupname, attribute, value,
op FROM radgroupcheck WHERE groupname =
'%{Sql-Group}' ORDER BY id -> SELECT id, groupname,
attribute, value, op FROM radgroupcheck
WHERE groupname = 'NOTAUTHORIZED' ORDER BY id
[sqlwpa] User found in group NOTAUTHORIZED
[sqlwpa] expand: SELECT id, groupname, attribute, value,
op FROM radgroupreply WHERE groupname =
'%{Sql-Group}' ORDER BY id -> SELECT id, groupname,
attribute, value, op FROM radgroupreply
WHERE groupname = 'NOTAUTHORIZED' ORDER BY id
rlm_sql (sqlwpa): Released sql socket id: 63
++[sqlwpa] returns ok
Found Auth-Type = EAP
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authenticate {...}
[eap] EAP Identity
[eap] processing type tls
[tls] Initiate
[tls] Start returned 1
++[eap] returns handled
} # server wpa
Sending Access-Challenge of id 54 to 10.80.10.42 port 32769
Tunnel-Private-Group-Id:0 = "1296"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
EAP-Message = 0x010300061920
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x31b2f23b31b1eb74b6745cb38a442dac
Finished request 0.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 10.80.10.42 port 32769, id=55,
length=353
User-Name = "asdf"
Calling-Station-Id = "00-25-00-f5-a3-2b"
Called-Station-Id = "00-25-45-37-5c-60:GTtestwpa"
NAS-Port = 29
NAS-IP-Address = 10.80.10.42
NAS-Identifier = "Rich-core-WiSM-E"
Airespace-Wlan-Id = 7
Service-Type = Framed-User
Framed-MTU = 1300
NAS-Port-Type = Wireless-802.11
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "809"
EAP-Message =
0x020300a419800000009a16030100950100009103014dd565aa6f9f79a7fcdb3709b02977dec9ebd8d8aeb7a7bdf7058c390773fbf2000056c00ac009c007c008c013c014c011c012c004c005c002c003c00ec00fc00cc00d002f000500040035000a000900030008000600320033003800390016001500140013001200110034003a0018001b001a00170019000101000012000a00080006001700180019000b00020100
State = 0x31b2f23b31b1eb74b6745cb38a442dac
Message-Authenticator = 0xdf3024ad1da5df56ca9df7671138d5cf
server wpa {
# Executing section authorize from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authorize {...}
++[preprocess] returns ok
[eap] EAP packet type response id 3 length 164
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
TLS Length 154
[peap] Length Included
[peap] eaptls_verify returned 11
[peap] (other): before/accept initialization
[peap] TLS_accept: before/accept initialization
[peap] <<< TLS 1.0 Handshake [length 0095], 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 0377], Certificate
[peap] TLS_accept: SSLv3 write certificate 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
} # server wpa
Sending Access-Challenge of id 55 to 10.80.10.42 port 32769
EAP-Message =
0x010403ba1900160301002a0200002603014dd565a8ca1007fb5fafe0ddb0d92a0d821d77a8cf126a16b64b6452926bda3900002f0016030103770b00037300037000036d30820369308202d2a003020102020312c13e300d06092a864886f70d0101050500304e310b30090603550406130255533110300e060355040a130745717569666178312d302b060355040b1324457175696661782053656375726520436572746966696361746520417574686f72697479301e170d3130303530393035343732315a170d3132303531313034323731325a3081d13129302706035504051320704c4234414d775646504c43546d2d337651486e62686934324a
EAP-Message =
0x753746687961310b30090603550406130255533110300e0603550408130747656f726769613110300e0603550407130741746c616e746131283026060355040a131f47656f7267696120496e73746974757465206f6620546563686e6f6c6f677931293027060355040b13204f6666696365206f6620496e666f726d6174696f6e20546563686e6f6c6f6779311e301c0603550403131567747770612e6c61776e2e6761746563682e65647530819f300d06092a864886f70d010101050003818d0030818902818100d345aabc73a7777a683c06f6b359843b2b59523670ab0bce78ea74759290de2f8765a959fc7e197ba6829ef3da7fd6ea538dd98e
EAP-Message =
0xbfa46c8d26d724fee83a3eeb378a64410d9d92994f07208a0e90468a34af8d7d77e14aaa1d78b24f6a95af7034d8482d4e43626cc74c2bb5331b09dc59ba38b1fa60c6b9cfe841b2411089cf0203010001a381d03081cd301f0603551d2304183016801448e668f92bd2b295d747d82320104f3398909fd4300e0603551d0f0101ff0404030204f0301d0603551d250416301406082b0601050507030106082b0601050507030230200603551d1104193017821567747770612e6c61776e2e6761746563682e656475303a0603551d1f04333031302fa02da02b8629687474703a2f2f63726c2e67656f74727573742e636f6d2f63726c732f73656375
EAP-Message =
0x726563612e63726c301d0603551d0e041604146bd1c091faa8c9499db94ce449259017b097ecb2300d06092a864886f70d01010505000381810025a28346aaa5901f60d6e5004331971e1352103836c33a9845bfa928307a0472c7c87fe6eab5c81faecfca6b2d23af4496e70ef6a1ad775746a6329fef7e960eb8e06274c161accca9277c94b25bc03cdec5ed92b059ea5bd6fbb2668fe5a3d6da4454579368de2c4a583576a1ffae45c7e89c5ce8164572c5af1272ac0042ae16030100040e000000
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x31b2f23b30b6eb74b6745cb38a442dac
Finished request 1.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 10.80.10.42 port 32769, id=56,
length=397
User-Name = "asdf"
Calling-Station-Id = "00-25-00-f5-a3-2b"
Called-Station-Id = "00-25-45-37-5c-60:GTtestwpa"
NAS-Port = 29
NAS-IP-Address = 10.80.10.42
NAS-Identifier = "Rich-core-WiSM-E"
Airespace-Wlan-Id = 7
Service-Type = Framed-User
Framed-MTU = 1300
NAS-Port-Type = Wireless-802.11
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "809"
EAP-Message =
0x020400d01980000000c61603010086100000820080824a1517cc81fa0cde571f1c83147f0123f0ef6edf77a5db2c0ef03549a153c52f52c9d79e264c32cd37c8dc2155296528d2e9c7c66dcf6e6f638f11ffbdd7b932ed59299291db2f03e0830a15c7ec73bc8d42e19dc072f1a8bbbcf76df8a5cd02f7539a38c738242efdfc44fc232c20453886259ef36a33e7efd7aee22ca9d91403010001011603010030699d7d6451132470124ce6ea5e09507ec2504300d2e58010c2bfbcce1f50706a8689bfcc0287372fbf62cd49d04d974f
State = 0x31b2f23b30b6eb74b6745cb38a442dac
Message-Authenticator = 0x862f8d931f012e27f3a8d078d66e228f
server wpa {
# Executing section authorize from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authorize {...}
++[preprocess] returns ok
[eap] EAP packet type response id 4 length 208
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
TLS Length 198
[peap] Length Included
[peap] eaptls_verify returned 11
[peap] <<< TLS 1.0 Handshake [length 0086], ClientKeyExchange
[peap] TLS_accept: SSLv3 read client key exchange A
[peap] <<< TLS 1.0 ChangeCipherSpec [length 0001]
[peap] <<< TLS 1.0 Handshake [length 0010], Finished
[peap] TLS_accept: SSLv3 read finished A
[peap] >>> TLS 1.0 ChangeCipherSpec [length 0001]
[peap] TLS_accept: SSLv3 write change cipher spec A
[peap] >>> TLS 1.0 Handshake [length 0010], Finished
[peap] TLS_accept: SSLv3 write finished A
[peap] TLS_accept: SSLv3 flush data
[peap] (other): SSL negotiation finished successfully
SSL Connection Established
[peap] eaptls_process returned 13
[peap] EAPTLS_HANDLED
++[eap] returns handled
} # server wpa
Sending Access-Challenge of id 56 to 10.80.10.42 port 32769
EAP-Message =
0x0105004119001403010001011603010030bf952c90cdb0d1bcdaacff835f16d35972e70d499f19ece0e99d9245d4fb5c6fea2d3006fa95d3318e3e653b09cc52e4
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x31b2f23b33b7eb74b6745cb38a442dac
Finished request 2.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 10.80.10.42 port 32769, id=57,
length=195
User-Name = "asdf"
Calling-Station-Id = "00-25-00-f5-a3-2b"
Called-Station-Id = "00-25-45-37-5c-60:GTtestwpa"
NAS-Port = 29
NAS-IP-Address = 10.80.10.42
NAS-Identifier = "Rich-core-WiSM-E"
Airespace-Wlan-Id = 7
Service-Type = Framed-User
Framed-MTU = 1300
NAS-Port-Type = Wireless-802.11
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "809"
EAP-Message = 0x020500061900
State = 0x31b2f23b33b7eb74b6745cb38a442dac
Message-Authenticator = 0x58658f27fe9295794b51b5a904ee64d8
server wpa {
# Executing section authorize from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authorize {...}
++[preprocess] returns ok
[eap] EAP packet type response id 5 length 6
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
[peap] Received TLS ACK
[peap] ACK handshake is finished
[peap] eaptls_verify returned 3
[peap] eaptls_process returned 3
[peap] EAPTLS_SUCCESS
[peap] Session established. Decoding tunneled attributes.
[peap] Peap state TUNNEL ESTABLISHED
++[eap] returns handled
} # server wpa
Sending Access-Challenge of id 57 to 10.80.10.42 port 32769
EAP-Message =
0x0106002b19001703010020972a004adb0dbb0c23c5cca84018c922ee11b6a5541026a93f86adac05dfadc1
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x31b2f23b32b4eb74b6745cb38a442dac
Finished request 3.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 10.80.10.42 port 32769, id=58,
length=232
User-Name = "asdf"
Calling-Station-Id = "00-25-00-f5-a3-2b"
Called-Station-Id = "00-25-45-37-5c-60:GTtestwpa"
NAS-Port = 29
NAS-IP-Address = 10.80.10.42
NAS-Identifier = "Rich-core-WiSM-E"
Airespace-Wlan-Id = 7
Service-Type = Framed-User
Framed-MTU = 1300
NAS-Port-Type = Wireless-802.11
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "809"
EAP-Message =
0x0206002b19001703010020fe91dead08f0cc02d9d4581c8ccc77178098fd94a677579d72445bf14cde899f
State = 0x31b2f23b32b4eb74b6745cb38a442dac
Message-Authenticator = 0x331fbbeecc815c337c717573976b7da2
server wpa {
# Executing section authorize from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authorize {...}
++[preprocess] returns ok
[eap] EAP packet type response id 6 length 43
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- 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] eaptls_process returned 7
[peap] EAPTLS_OK
[peap] Session established. Decoding tunneled attributes.
[peap] Peap state WAITING FOR INNER IDENTITY
[peap] Identity - asdf
[peap] Got inner identity 'asdf'
[peap] Setting default EAP type for tunneled EAP session.
[peap] Got tunneled request
EAP-Message = 0x020600090161736466
server wpa {
PEAP: Setting User-Name to asdf
Sending tunneled request
EAP-Message = 0x020600090161736466
FreeRADIUS-Proxied-To = 127.0.0.1
User-Name = "asdf"
Calling-Station-Id = "00-25-00-f5-a3-2b"
Called-Station-Id = "00-25-45-37-5c-60:GTtestwpa"
NAS-Port = 29
NAS-IP-Address = 10.80.10.42
NAS-Identifier = "Rich-core-WiSM-E"
Airespace-Wlan-Id = 7
Service-Type = Framed-User
Framed-MTU = 1300
NAS-Port-Type = Wireless-802.11
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "809"
server wpa {
# Executing section authorize from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authorize {...}
++[preprocess] returns ok
[eap] EAP packet type response id 6 length 9
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
[sqlwpa] expand: %{Stripped-User-Name} ->
[sqlwpa] ... expanding second conditional
[sqlwpa] expand: %{User-Name} -> asdf
[sqlwpa] expand: %{%{User-Name}:-DEFAULT} -> asdf
[sqlwpa] expand: %{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}}
-> asdf
[sqlwpa] sql_set_user escaped user --> 'asdf'
rlm_sql (sqlwpa): Reserving sql socket id: 62
[sqlwpa] expand: SELECT id, username, attribute, value, op
FROM radcheck WHERE username = '%{SQL-User-Name}'
ORDER BY id -> SELECT id, username, attribute, value, op FROM
radcheck WHERE username = 'asdf' ORDER BY id
[sqlwpa] expand: SELECT
determineGroup('%{Calling-Station-Id}','%{SQL-User-Name}','%{Called-Station-Id}')
as groupname -> SELECT
determineGroup('00-25-00-f5-a3-2b','asdf','00-25-45-37-5c-60:GTtestwpa')
as groupname
[sqlwpa] expand: SELECT id, groupname, attribute, value,
op FROM radgroupcheck WHERE groupname =
'%{Sql-Group}' ORDER BY id -> SELECT id, groupname,
attribute, value, op FROM radgroupcheck
WHERE groupname = 'NOTAUTHORIZED' ORDER BY id
[sqlwpa] User found in group NOTAUTHORIZED
[sqlwpa] expand: SELECT id, groupname, attribute, value,
op FROM radgroupreply WHERE groupname =
'%{Sql-Group}' ORDER BY id -> SELECT id, groupname,
attribute, value, op FROM radgroupreply
WHERE groupname = 'NOTAUTHORIZED' ORDER BY id
rlm_sql (sqlwpa): Released sql socket id: 62
++[sqlwpa] returns ok
Found Auth-Type = EAP
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authenticate {...}
[eap] EAP Identity
[eap] processing type mschapv2
rlm_eap_mschapv2: Issuing Challenge
++[eap] returns handled
} # server wpa
[peap] Got tunneled reply code 11
Tunnel-Private-Group-Id:0 = "1296"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
EAP-Message =
0x0107001e1a0107001910bf7d536f84202f25bf5f17b9e50ce30061736466
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x33f674ce33f16e76ae35e5f2efd87279
[peap] Got tunneled reply RADIUS code 11
Tunnel-Private-Group-Id:0 = "1296"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
EAP-Message =
0x0107001e1a0107001910bf7d536f84202f25bf5f17b9e50ce30061736466
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x33f674ce33f16e76ae35e5f2efd87279
[peap] Got tunneled Access-Challenge
++[eap] returns handled
} # server wpa
Sending Access-Challenge of id 58 to 10.80.10.42 port 32769
EAP-Message =
0x0107003b19001703010030797656bba21df6dbff25f4fb69fa506584cb492a8ff148c2068733a4f1cdab3427c0180871bd822a0f03e227d5bce95d
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x31b2f23b35b5eb74b6745cb38a442dac
Finished request 4.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 10.80.10.42 port 32769, id=59,
length=280
User-Name = "asdf"
Calling-Station-Id = "00-25-00-f5-a3-2b"
Called-Station-Id = "00-25-45-37-5c-60:GTtestwpa"
NAS-Port = 29
NAS-IP-Address = 10.80.10.42
NAS-Identifier = "Rich-core-WiSM-E"
Airespace-Wlan-Id = 7
Service-Type = Framed-User
Framed-MTU = 1300
NAS-Port-Type = Wireless-802.11
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "809"
EAP-Message =
0x0207005b19001703010050e600f6973e85bcc2bcfecb03493bb4c70c4dc5e360fec76f2e8d5820fab9a8d904d2a9fd583dd02717f2b9ad8d1a390d263da98901eca94d4f6b35b065737f522e377b97661bb14d21c129b16bc0c650
State = 0x31b2f23b35b5eb74b6745cb38a442dac
Message-Authenticator = 0x57fc4a631ecb4d869888d51d38dd52a6
server wpa {
# Executing section authorize from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authorize {...}
++[preprocess] returns ok
[eap] EAP packet type response id 7 length 91
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- 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] eaptls_process returned 7
[peap] EAPTLS_OK
[peap] Session established. Decoding tunneled attributes.
[peap] Peap state phase2
[peap] EAP type mschapv2
[peap] Got tunneled request
EAP-Message =
0x0207003f1a0207003a31c3fc9644677023c2240c42be8ebcc26000000000000000001d977e4d0232ca801f0e20dde8767c7004d4ca2197cdf39b0061736466
server wpa {
PEAP: Setting User-Name to asdf
Sending tunneled request
EAP-Message =
0x0207003f1a0207003a31c3fc9644677023c2240c42be8ebcc26000000000000000001d977e4d0232ca801f0e20dde8767c7004d4ca2197cdf39b0061736466
FreeRADIUS-Proxied-To = 127.0.0.1
User-Name = "asdf"
State = 0x33f674ce33f16e76ae35e5f2efd87279
Calling-Station-Id = "00-25-00-f5-a3-2b"
Called-Station-Id = "00-25-45-37-5c-60:GTtestwpa"
NAS-Port = 29
NAS-IP-Address = 10.80.10.42
NAS-Identifier = "Rich-core-WiSM-E"
Airespace-Wlan-Id = 7
Service-Type = Framed-User
Framed-MTU = 1300
NAS-Port-Type = Wireless-802.11
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "809"
server wpa {
# Executing section authorize from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authorize {...}
++[preprocess] returns ok
[eap] EAP packet type response id 7 length 63
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
[sqlwpa] expand: %{Stripped-User-Name} ->
[sqlwpa] ... expanding second conditional
[sqlwpa] expand: %{User-Name} -> asdf
[sqlwpa] expand: %{%{User-Name}:-DEFAULT} -> asdf
[sqlwpa] expand: %{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}}
-> asdf
[sqlwpa] sql_set_user escaped user --> 'asdf'
rlm_sql (sqlwpa): Reserving sql socket id: 61
[sqlwpa] expand: SELECT id, username, attribute, value, op
FROM radcheck WHERE username = '%{SQL-User-Name}'
ORDER BY id -> SELECT id, username, attribute, value, op FROM
radcheck WHERE username = 'asdf' ORDER BY id
[sqlwpa] expand: SELECT
determineGroup('%{Calling-Station-Id}','%{SQL-User-Name}','%{Called-Station-Id}')
as groupname -> SELECT
determineGroup('00-25-00-f5-a3-2b','asdf','00-25-45-37-5c-60:GTtestwpa')
as groupname
[sqlwpa] expand: SELECT id, groupname, attribute, value,
op FROM radgroupcheck WHERE groupname =
'%{Sql-Group}' ORDER BY id -> SELECT id, groupname,
attribute, value, op FROM radgroupcheck
WHERE groupname = 'NOTAUTHORIZED' ORDER BY id
[sqlwpa] User found in group NOTAUTHORIZED
[sqlwpa] expand: SELECT id, groupname, attribute, value,
op FROM radgroupreply WHERE groupname =
'%{Sql-Group}' ORDER BY id -> SELECT id, groupname,
attribute, value, op FROM radgroupreply
WHERE groupname = 'NOTAUTHORIZED' ORDER BY id
rlm_sql (sqlwpa): Released sql socket id: 61
++[sqlwpa] returns ok
Found Auth-Type = EAP
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/mschapv2
[eap] processing type mschapv2
[mschapv2] # Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
[mschapv2] +- entering group MS-CHAP {...}
[mschap] Creating challenge hash with username: asdf
[mschap] Told to do MS-CHAPv2 for asdf with NT-Password
[mschap] WARNING: Deprecated conditional expansion ":-". See "man
unlang" for details
[mschap] ... expanding second conditional
[mschap] WARNING: Deprecated conditional expansion ":-". See "man
unlang" for details
[mschap] expand: %{User-Name:-None} -> asdf
[mschap] expand:
--username=%{Stripped-User-Name:-%{User-Name:-None}} -> --username=asdf
[mschap] mschap2: bf
[mschap] Creating challenge hash with username: asdf
[mschap] expand: --challenge=%{mschap:Challenge:-00} ->
--challenge=0a7a21bf18732797
[mschap] expand: --nt-response=%{mschap:NT-Response:-00} ->
--nt-response=1d977e4d0232ca801f0e20dde8767c7004d4ca2197cdf39b
Exec-Program output: Logon failure (0xc000006d)
Exec-Program-Wait: plaintext: Logon failure (0xc000006d)
Exec-Program: returned: 1
[mschap] External script failed.
[mschap] FAILED: MS-CHAP2-Response is incorrect
++[mschap] returns reject
[eap] Freeing handler
++[eap] returns reject
Failed to authenticate the user.
Login incorrect (mschap: External script says Logon failure
(0xc000006d)): [asdf/<via Auth-Type = EAP>] (from client LAWN-WiSM port
29 cli 00-25-00-f5-a3-2b via TLS tunnel)
} # server wpa
[peap] Got tunneled reply code 3
Tunnel-Private-Group-Id:0 = "1296"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
MS-CHAP-Error = "\007E=691 R=1"
EAP-Message = 0x04070004
Message-Authenticator = 0x00000000000000000000000000000000
[peap] Got tunneled reply RADIUS code 3
Tunnel-Private-Group-Id:0 = "1296"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
MS-CHAP-Error = "\007E=691 R=1"
EAP-Message = 0x04070004
Message-Authenticator = 0x00000000000000000000000000000000
[peap] Tunneled authentication was rejected.
[peap] FAILURE
++[eap] returns handled
} # server wpa
Sending Access-Challenge of id 59 to 10.80.10.42 port 32769
EAP-Message =
0x0108002b190017030100206e20a4a57f13f51e3edc4d3cdda2a7e64d8d8dde84c0cd825af17de0b236bbdc
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x31b2f23b34baeb74b6745cb38a442dac
Finished request 5.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 10.80.10.42 port 32769, id=60,
length=232
User-Name = "asdf"
Calling-Station-Id = "00-25-00-f5-a3-2b"
Called-Station-Id = "00-25-45-37-5c-60:GTtestwpa"
NAS-Port = 29
NAS-IP-Address = 10.80.10.42
NAS-Identifier = "Rich-core-WiSM-E"
Airespace-Wlan-Id = 7
Service-Type = Framed-User
Framed-MTU = 1300
NAS-Port-Type = Wireless-802.11
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "809"
EAP-Message =
0x0208002b1900170301002022152bb0e74b3277ae1b8711d62a966e885e9b7d5beb26f9fc716b74cadea38e
State = 0x31b2f23b34baeb74b6745cb38a442dac
Message-Authenticator = 0x14d7bb55cd857f2216d2addb790a6291
server wpa {
# Executing section authorize from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group authorize {...}
++[preprocess] returns ok
[eap] EAP packet type response id 8 length 43
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- 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] eaptls_process returned 7
[peap] EAPTLS_OK
[peap] Session established. Decoding tunneled attributes.
[peap] Peap state send tlv failure
[peap] Received EAP-TLV response.
[peap] The users session was previously rejected: returning reject (again.)
[peap] *** This means you need to read the PREVIOUS messages in the
debug output
[peap] *** to find out the reason why the user was rejected.
[peap] *** Look for "reject" or "fail". Those earlier messages will
tell you.
[peap] *** what went wrong, and how to fix the problem.
[eap] Handler failed in EAP/peap
[eap] Failed in EAP select
++[eap] returns invalid
Failed to authenticate the user.
Login incorrect: [asdf/<via Auth-Type = EAP>] (from client LAWN-WiSM
port 29 cli 00-25-00-f5-a3-2b)
} # server wpa
Using Post-Auth-Type Reject
# Executing group from file
/services/freeradius/etc/raddb//sites-enabled/dvlan-wpa
+- entering group REJECT {...}
[attr_filter.access_reject] expand: %{User-Name} -> asdf
attr_filter: Matched entry DEFAULT at line 11
++[attr_filter.access_reject] returns updated
Delaying reject of request 6 for 1 seconds
Going to the next request
Waking up in 0.9 seconds.
Sending delayed reject for request 6
Sending Access-Reject of id 60 to 10.80.10.42 port 32769
EAP-Message = 0x04080004
Message-Authenticator = 0x00000000000000000000000000000000
Waking up in 3.8 seconds.
Cleaning up request 0 ID 54 with timestamp +26
Cleaning up request 1 ID 55 with timestamp +26
Cleaning up request 2 ID 56 with timestamp +26
Cleaning up request 3 ID 57 with timestamp +26
Cleaning up request 4 ID 58 with timestamp +26
Cleaning up request 5 ID 59 with timestamp +26
Waking up in 1.0 seconds.
Cleaning up request 6 ID 60 with timestamp +26
Ready to process requests.
4
3