Freeradius-Users
Threads by month
- ----- 2026 -----
- 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
July 2021
- 49 participants
- 47 discussions
Updates to control list are not accessible later when using a virtual server as the home server
by paul.moser@bt.com 22 Jul '21
by paul.moser@bt.com 22 Jul '21
22 Jul '21
I have a home_server configured with just a virtual_server, ie I'm not doing any proxying. Within the post-auth section I update the control list but when I test the control list later in the default servers post-auth section the attribute is not present.
If instead I update the reply list then that change is visible later.
Elsewhere I have a virtual server associated with a home_server_pool and in that case updates to the control list in the post-proxy section are visible later in the default server so my issue appears to be specific to the control list when a virtual server is associated with a home_server.
Do I have an incomplete understanding of how the control list vs the reply lists work and/or their scope or is this a fault?
A minimal config otherwise unmodified from out of the box to reproduce the issue:
In proxy.conf:
server something_virt_server {
authorize {
update control {
&Auth-Type := Accept
}
}
authenticate {
accept
}
post-auth {
update control {
# any attribute, Idle-Timeout is just a contrived example
&Idle-Timeout := 60
}
}
}
home_server something_server {
virtual_server = something_virt_server
}
home_server_pool something_auth_pool {
home_server = something_server
}
realm something.com {
auth_pool = something_auth_pool
nostrip
}
Add to sites-available/default in the post-auth section:
if(&control:Idle-Timeout) {
update reply {
&Session-Timeout := 100
}
}
Snipped (full logs at the end)
(0) # Executing section post-auth from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/proxy.conf
(0) post-auth {
(0) update control {
(0) &Idle-Timeout := 60
(0) } # update control = noop
(0) } # post-auth = noop
...
(0) # Executing section post-auth from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/default
(0) post-auth {
...
(0) if (&control:Idle-Timeout) {
(0) if (&control:Idle-Timeout) -> FALSE
(0) } # post-auth = noop
However if I change the update and check to use the reply list I get:
(0) # Executing section post-auth from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/proxy.conf
(0) post-auth {
(0) update reply {
(0) &Idle-Timeout := 60
(0) } # update reply = noop
(0) } # post-auth = noop
...
(0) # Executing section post-auth from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/default
(0) post-auth {
...
(0) if (&reply:Idle-Timeout) {
(0) if (&reply:Idle-Timeout) -> TRUE
(0) if (&reply:Idle-Timeout) {
(0) update reply {
(0) &Session-Timeout := 100
(0) } # update reply = noop
(0) } # if (&reply:Idle-Timeout) = noop
(0) } # post-auth = noop
The use of Idle-Timeout in the example is just to simply it, the attribute itself doesn't seem to make a difference to the problem, I'm actually using our own VSA and was trying to use the control list as the VSA is just for use internally for flow control/logic and using the control list rather than the reply list would save me from having to clear it out before the response is actually sent to the client.
Thanks,
Paul
Full log when updating the control list:
~/opt/freeradius-server-3.0.23/sbin$ ./radiusd -X
FreeRADIUS Version 3.0.23
Copyright (C) 1999-2021 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
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /home/moserp/opt/freeradius-server-3.0.23/share/freeradius/dictionary
including dictionary file /home/moserp/opt/freeradius-server-3.0.23/share/freeradius/dictionary.dhcp
including dictionary file /home/moserp/opt/freeradius-server-3.0.23/share/freeradius/dictionary.vqp
including dictionary file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/dictionary
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/radiusd.conf
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/proxy.conf
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/clients.conf
including files in directory /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/echo
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/chap
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/totp
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/pap
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/date
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/preprocess
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/unix
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/expr
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail.log
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/dynamic_clients
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/sradutmp
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/soh
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/utf8
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/linelog
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/passwd
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/ntlm_auth
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/radutmp
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/digest
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/replicate
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/cache_eap
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/files
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/unpack
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/mschap
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/expiration
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/logintime
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/exec
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/eap
including files in directory /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/canonicalization
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/accounting
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/control
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/filter
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/rfc7542
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/operator-name
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/abfab-tr
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/cui
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/debug
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/moonshot-targeted-ids
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/eap
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/policy.d/dhcp
including files in directory /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/default
including configuration file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/inner-tunnel
main {
name = "radiusd"
prefix = "/home/moserp/opt/freeradius-server-3.0.23"
localstatedir = "/home/moserp/opt/freeradius-server-3.0.23/var"
sbindir = "/home/moserp/opt/freeradius-server-3.0.23/sbin"
logdir = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius"
run_dir = "/home/moserp/opt/freeradius-server-3.0.23/var/run/radiusd"
libdir = "/home/moserp/opt/freeradius-server-3.0.23/lib"
radacctdir = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 16384
postauth_client_lost = no
pidfile = "/home/moserp/opt/freeradius-server-3.0.23/var/run/radiusd/radiusd.pid"
checkrad = "/home/moserp/opt/freeradius-server-3.0.23/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
allow_vulnerable_openssl = "no"
}
}
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 = <<< secret >>>
response_window = 20.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "status-server"
ping_interval = 30
check_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 120
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server something_server {
virtual_server = "something_virt_server"
port = 0
response_window = 30.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "none"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool something_auth_pool {
home_server = something_server
}
realm something.com {
auth_pool = something_auth_pool
nostrip
}
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 = <<< secret >>>
nas_type = "other"
proto = "*"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client localhost_ipv6 {
ipv6addr = ::1
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Found debugger attached
# Creating Auth-Type = mschap
# Creating Auth-Type = digest
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
# Creating Autz-Type = New-TLS-Connection
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_exec
# Loading module "echo" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loaded module rlm_realm
# Loading module "IPASS" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "bangpath" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
realm bangpath {
format = "prefix"
delimiter = "!"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_chap
# Loading module "chap" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/chap
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.coa" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.coa {
filename = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/coa"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_totp
# Loading module "totp" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/totp
# Loaded module rlm_detail
# Loading module "detail" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail
detail {
filename = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_pap
# Loading module "pap" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_date
# Loading module "date" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/preprocess
preprocess {
huntgroups = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/preprocess/huntgroups"
hints = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/preprocess/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
}
# Loaded module rlm_unix
# Loading module "unix" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/unix
unix {
radwtmp = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_expr
# Loading module "expr" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loading module "auth_log" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail.log
detail auth_log {
filename = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail.log
detail reply_log {
filename = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail.log
detail post_proxy_log {
filename = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/dynamic_clients
# Loaded module rlm_radutmp
# Loading module "sradutmp" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_soh
# Loading module "soh" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/soh
soh {
dhcp = yes
}
# Loaded module rlm_always
# Loading module "reject" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_utf8
# Loading module "utf8" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/utf8
# Loaded module rlm_linelog
# Loading module "linelog" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/linelog
linelog {
filename = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/linelog
linelog log_accounting {
filename = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loading module "ntlm_auth" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loading module "radutmp" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/radutmp
radutmp {
filename = "/home/moserp/opt/freeradius-server-3.0.23/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_digest
# Loading module "digest" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/digest
# Loaded module rlm_replicate
# Loading module "replicate" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/replicate
# Loaded module rlm_cache
# Loading module "cache_eap" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_files
# Loading module "files" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/files
files {
filename = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/files/authorize"
acctusersfile = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/files/accounting"
preproxy_usersfile = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/files/pre-proxy"
}
# Loaded module rlm_unpack
# Loading module "unpack" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/unpack
# Loaded module rlm_mschap
# Loading module "mschap" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loaded module rlm_expiration
# Loading module "expiration" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/expiration
# Loaded module rlm_logintime
# Loading module "logintime" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loading module "exec" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_eap
# Loading module "eap" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/eap
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 16384
}
instantiate {
}
# Instantiating module "IPASS" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
# Instantiating module "suffix" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
# Instantiating module "bangpath" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
# Instantiating module "realmpercent" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
# Instantiating module "ntdomain" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/realm
# Instantiating module "attr_filter.post-proxy" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/access_reject
# Instantiating module "attr_filter.access_challenge" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "attr_filter.coa" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/attr_filter
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/attr_filter/coa
# Instantiating module "detail" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail
# Instantiating module "pap" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/pap
# Instantiating module "preprocess" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/preprocess
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/preprocess/hints
# Instantiating module "auth_log" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
# Instantiating module "reply_log" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/detail.log
# Instantiating module "reject" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
# Instantiating module "fail" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
# Instantiating module "ok" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
# Instantiating module "handled" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
# Instantiating module "invalid" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
# Instantiating module "userlock" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
# Instantiating module "notfound" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
# Instantiating module "noop" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
# Instantiating module "updated" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/always
# Instantiating module "linelog" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/linelog
# Instantiating module "log_accounting" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/linelog
# Instantiating module "etc_passwd" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "cache_eap" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
# Instantiating module "files" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/files
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/files/authorize
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/files/accounting
reading pairlist file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-config/files/pre-proxy
# Instantiating module "mschap" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "expiration" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/expiration
# Instantiating module "logintime" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/logintime
# Instantiating module "eap" from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
# Linked to sub-module rlm_eap_gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/certs/server.pem"
certificate_file = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/certs/server.pem"
ca_file = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/home/moserp/opt/freeradius-server-3.0.23/etc/raddb/certs/dh"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
ca_path_reload_interval = 0
cipher_list = "DEFAULT"
cipher_server_preference = no
ecdh_curve = "prime256v1"
tls_max_version = "1.2"
tls_min_version = "1.2"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "md5"
copy_request_to_tunnel = no
use_tunneled_reply = no
virtual_server = "inner-tunnel"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = no
use_tunneled_reply = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/radiusd.conf
} # server
server something_virt_server { # from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/proxy.conf
# Loading authenticate {...}
# Loading authorize {...}
# Loading post-auth {...}
} # server something_virt_server
server default { # from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/default
# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type CHAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
Ignoring "sql" (see raddb/mods-available/README.rst)
Ignoring "ldap" (see raddb/mods-available/README.rst)
Compiling Autz-Type New-TLS-Connection for attr Autz-Type
# Loading preacct {...}
# Loading accounting {...}
# Loading post-proxy {...}
# Loading post-auth {...}
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
Compiling Post-Auth-Type Challenge for attr Post-Auth-Type
Compiling Post-Auth-Type Client-Lost for attr Post-Auth-Type
} # server default
server inner-tunnel { # from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/inner-tunnel
# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type CHAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
# Loading session {...}
# Loading post-proxy {...}
# Loading post-auth {...}
# Skipping contents of 'if' as it is always 'false' -- /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/inner-tunnel:336
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
} # server inner-tunnel
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "auth"
ipv6addr = ::
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipv6addr = ::
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address :: port 1812 bound to server default
Listening on acct address :: port 1813 bound to server default
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on proxy address * port 48305
Listening on proxy address :: port 48650
Ready to process requests
(0) Received Access-Request Id 110 from 127.0.0.1:47369 to 127.0.0.1:1812 length 40
(0) User-Name = "paul(a)something.com"
(0) # Executing section authorize from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/default
(0) authorize {
(0) policy filter_username {
(0) if (&User-Name) {
(0) if (&User-Name) -> TRUE
(0) if (&User-Name) {
(0) if (&User-Name =~ / /) {
(0) if (&User-Name =~ / /) -> FALSE
(0) if (&User-Name =~ /@[^@]*@/ ) {
(0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(0) if (&User-Name =~ /\.\./ ) {
(0) if (&User-Name =~ /\.\./ ) -> FALSE
(0) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(0) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(0) if (&User-Name =~ /\.$/) {
(0) if (&User-Name =~ /\.$/) -> FALSE
(0) if (&User-Name =~ /(a)\./) {
(0) if (&User-Name =~ /(a)\./) -> FALSE
(0) } # if (&User-Name) = notfound
(0) } # policy filter_username = notfound
(0) [preprocess] = ok
(0) [chap] = noop
(0) [mschap] = noop
(0) [digest] = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: Looking up realm "something.com" for User-Name = "paul(a)something.com"
(0) suffix: Found realm "something.com"
(0) suffix: Adding Realm = "something.com"
(0) suffix: Proxying request from user paul(a)something.com to realm something.com
(0) suffix: Preparing to proxy authentication request to realm "something.com"
(0) [suffix] = updated
(0) eap: No EAP-Message, not doing EAP
(0) [eap] = noop
(0) [files] = noop
(0) [expiration] = noop
(0) [logintime] = noop
(0) [pap] = noop
(0) } # authorize = updated
(0) server something_virt_server {
(0) }
Proxying to virtual server something_virt_server
(0) # Executing section authorize from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/proxy.conf
(0) authorize {
(0) update control {
(0) &Auth-Type := Accept
(0) } # update control = noop
(0) } # authorize = noop
(0) Found Auth-Type = Accept
(0) Auth-Type = Accept, accepting the user
(0) # Executing section post-auth from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/proxy.conf
(0) post-auth {
(0) update control {
(0) &Idle-Timeout := 60
(0) } # update control = noop
(0) } # post-auth = noop
(0) Finished internally proxied request.
(0) Clearing existing &reply: attributes
(0) server something_virt_server {
(0) }
(0) Found Auth-Type = Accept
(0) Auth-Type = Accept, accepting the user
(0) # Executing section post-auth from file /home/moserp/opt/freeradius-server-3.0.23/etc/raddb/sites-enabled/default
(0) post-auth {
(0) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) {
(0) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) -> FALSE
(0) update {
(0) No attributes updated for RHS &session-state:
(0) } # update = noop
(0) [exec] = noop
(0) policy remove_reply_message_if_eap {
(0) if (&reply:EAP-Message && &reply:Reply-Message) {
(0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
(0) else {
(0) [noop] = noop
(0) } # else = noop
(0) } # policy remove_reply_message_if_eap = noop
(0) if (EAP-Key-Name && &reply:EAP-Session-Id) {
(0) if (EAP-Key-Name && &reply:EAP-Session-Id) -> FALSE
(0) if (&control:Idle-Timeout) {
(0) if (&control:Idle-Timeout) -> FALSE
(0) } # post-auth = noop
(0) Sent Access-Accept Id 110 from 127.0.0.1:1812 to 127.0.0.1:47369 length 0
(0) Finished request
Waking up in 4.9 seconds.
(0) Cleaning up request packet ID 110 with timestamp +5
Ready to process requests
2
2
Hi,
I've replaced an ancient FR 1.1.3 system with FR 3.0.17 from Debian buster and subsequently appear to be experiencing a problem where I would like user attributes to take precedence over those returned from the associated user's group.
I don't appear to find any references on the legacy system where this appears to have been changed and am a little stuck on how to get the new system to behave the same way.
>From a debug:
(2) sql: User found in radcheck table
(2) sql: Conditional check items matched, merging assignment check items
(2) sql: User-Password := "************"
(2) sql: Simultaneous-Use := 20
(2) sql: Max-Monthly-Traffic := 2450000
<snip>
(2) sql: Group "ADSL_Local_1G": Merging assignment check items
(2) sql: Simultaneous-Use := 4
(2) sql: Max-Monthly-Traffic := 1000
<snip>
(2) Multiple logins (max 4) : [companyd2382(a)local.dslrealm.co.za] (from client telkom-saix port 4444444444 cli 0112223333)
Would this require us to change the source code, to obtain the group membership attributes ahead of those associated with the user?
Regards
David Herselman
2
3
Hello,
because of the IPv4 shortage we exhausted our PPPOE assignment public IP
address pool,
I could not find documentation on this: what happens if pool is full and
an AAA request arrives to the radius?
At the moment it seems we have cases of users having a public IP address
and actually accessing internet with that BUT in the pool table it is
not correcty taken, so this generate cases where 2 different users have
the same IP address, only one working.
Thanks for the help!
--
Mirko Alberio
Amministratore di Sistemi
Via Enrico Fermi, 235 - 36100 Vicenza - Italia
Tel 0444 291302 - Fax 0444 566310 - www.telemar.it <http://www.telemar.it>
Reg. Imp. Di Vicenza /C.F./P.I. 02508710247
Cap. Soc. € 120.000,00 I.V.
R.E.A. VI-236292
<https://it-it.facebook.com/TelemarIt/>
<https://www.instagram.com/telemar_it/>
<https://it.linkedin.com/company/telemar-s-p-a->
Il presente messaggio non costituisce offerta e/o accettazione
contrattuale.
Ai sensi del Regolamento europeo per la protezione dei dati personali n.
679/2016 (GDPR) si precisa che le informazioni contenute in questo
messaggio e/o nel/i file/s allegato/i sono riservate ed a uso esclusivo
del destinatario. Qualora il messaggio in parola Le fosse pervenuto per
errore, La invitiamo ad eliminarlo senza copiarlo e a non inoltrarlo a
terzi, dandocene gentilmente comunicazione. Grazie.
Pursuant to General Data Protection Regulation (GDPR), you are hereby
informed that this message contains confidential information intended
only for the use of the addressee. If you are not the addressee, and
have received this message by mistake, please delete it and immediately
notify us. You may not copy or disseminate this message to anyone. Thank
you.
3
13
Debian stretch, freeradius 3.0.12+dfsg-5+deb9u1 and samba
2:4.10.18+dfsg-0.1stretch1, using the bultin winbind library.
I've setup freeradius to use PEAP/MSCHAPv2 auth aginst my AD domain,
using samba as AD DC, following i suppose pretty standard info like:
https://wiki.freeradius.org/guide/freeradius-active-directory-integration-h…
https://wiki.samba.org/index.php/Authenticating_Freeradius_against_Active_D…
All works as expected for users, but i've tried also to enable 'machine
auth' (eg, authentication of PC with the machine account stored in
AD), and does not work.
Following the docs, i've setup in 'mschap' module:
winbind_username = "%{%{mschap:User-Name}:-None}"
winbind_domain = "%{%{mschap:NT-Domain}:-LNFFVG}"
in this way i get in log (full log available):
(0) Received Access-Request Id 63 from 10.5.1.180:38380 to 10.5.1.3:1812 length 259
(0) User-Name = "host/AFTERSHOCK.ad.fvg.lnf.it"
(0) NAS-Identifier = "f29fc27da970"
(0) Called-Station-Id = "F2-9F-C2-7D-A9-70:LNFFVG"
(0) NAS-Port-Type = Wireless-802.11
(0) Service-Type = Framed-User
(0) Calling-Station-Id = "00-C2-C6-24-2D-63"
[...]
(9) eap: Calling submodule eap_mschapv2 to process data
(9) eap_mschapv2: # Executing group from file /etc/freeradius/3.0/sites-enabled/inner-tunnel
(9) eap_mschapv2: authenticate {
(9) mschap: Creating challenge hash with username: host/AFTERSHOCK.ad.fvg.lnf.it
(9) mschap: Client is using MS-CHAPv2
(9) mschap: EXPAND %{%{mschap:User-Name}:-None}
(9) mschap: --> AFTERSHOCK$
(9) mschap: EXPAND %{%{mschap:NT-Domain}:-LNFFVG}
(9) mschap: --> ad
rlm_mschap (mschap): Reserved connection (0)
(9) mschap: sending authentication request user='AFTERSHOCK$' domain='ad'
rlm_mschap (mschap): Released connection (0)
rlm_mschap (mschap): Need 5 more connections to reach 10 spares
rlm_mschap (mschap): Opening additional connection (5), 1 of 27 pending slots used
(9) mschap: ERROR: The specified account does not exist. [0xC0000064]
(9) mschap: ERROR: Password has expired. User should retry authentication
(9) [mschap] = reject
(9) } # authenticate = reject
(9) MSCHAP-Error: ?E=648 R=0 C=6ed38d69682eb836de8e7078f3952b66 V=3 M=Password expired
(9) Found new challenge from MS-CHAP-Error: err=648 retry=0 challenge=6ed38d69682eb836de8e7078f3952b66
(9) ERROR: MSCHAP Failure
Clearly, 'ad.fvg.lnf.it' is my Kerberos/'long' domain, while
'LNFFVG' is my NetBIOS 'short' domain.
So, seems to me that (and only for machine account! As stated users
works as expected!) mschap{} module 'misinterpret' the domain (seems to
strip the first dotted part from the long/kerberos domain, and use it a
short/netbios domain).
I'm not in a multidomain forest, so i've simply fix with an:
winbind_username = "%{%{mschap:User-Name}:-None}"
winbind_domain = "LNFFVG"
And in this way machne and user account works as expected; but i
think/hope that there's a better fix.
Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
3
3
Hello,
I installed a CentOS with freeradius 3.0.20.
And I'm a bit confused how to configure it to make it work with an AXIS
P8221 I/O Audio Module.
In the section 802.1X I uploaded the certificate I geneated with
freeradius Makefile from the directory /etc/raddb/certs/
I uploaded the CA certificate and the clients one and client ons plus
the key.
But when I have to set the EAPOL version, EAP identity and password I
don't know what specify and how to configure freeradius to match that
parametes.
Can someone help me?
I tryed to configure a simply user with a password into
/etc/raddb/mods-config/files/authorize :
testing Cleartext-Password := "password"
And using a freeradius client from an ArchLinux client it works doing
command line call.
But I don't know how configure the AXIS module.
Can someone help? I configured the Layer 3 switch correctly to send the
freeradius packet to the correct IP address and it works. I mean
enabling to use the swicth port to get authentication against that
freeradius.
But the configuration lack of the correct part.
Giovanni
2
4
** The 8 most common RADIUS mistakes
---------------------------------------------
We see a lot of questions on this mailing list and from our clients that boil down to “RADIUS isn’t working. Can you tell me why?”. Most of the time, the problem isn’t with RADIUS itself, it is with the supporting infrastructure, or with less than ideal network administration practices. Many of these issues aren’t necessarily self-evident so we wanted to outline the most common mistakes and tell you how to avoid them.
The good news is that most of these practices don’t cost much in terms of money or time to do correctly. The other good news is that they can make the difference between catastrophic failure and a minor inconvenience. The bad news is that most people don’t follow these practices.
Read the full article...
https://networkradius.com/articles/2021/06/09/8-most-common-RADIUS-mistakes…
** Sign up to get this content directly
---------------------------------------------
Want to get these articles in all their HTML glory?
Sign up here: http://eepurl.com/hwuWrn
** Need RADIUS help?
---------------------------------------------
Get commercial support from the team behind FreeRADIUS.
https://networkradius.com/contact/
** What is the relationship between Network RADIUS and FreeRADIUS?
----------------------------------------------
FreeRADIUS is an open source implementation of the RADIUS protocol and was written by Alan DeKok in 1999.
Network RADIUS is a private, for-profit company founded by Alan DeKok which provides commercial support for FreeRADIUS. The Network RADIUS team has been the primary contributor to FreeRADIUS for the last 20 years. The FreeRADIUS mailing list, wiki, and documentation are all moderated and maintained by the Network RADIUS team.
FreeRADIUS has always been, and will always continue to be, open source. The Network RADIUS team provides commercial support to paying clients, and free product development for the FreeRADIUS community at large.
All of our software development for FreeRADIUS is integrated into the Open Source platform, and will always continue to be.
1
0
I have installed FreeRADIUS 3.0.22 for the first time and run into an
issue. Although it loads clients, it does not recognize them as valid
NASes. This is my debug output. Relative lines are highlighted:
# radiusd -X
FreeRADIUS Version 3.0.22
Copyright (C) 1999-2021 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
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/local/share/freeradius/dictionary
including dictionary file /usr/local/share/freeradius/dictionary.dhcp
including dictionary file /usr/local/share/freeradius/dictionary.vqp
including dictionary file /usr/local/etc/raddb/dictionary
including configuration file /usr/local/etc/raddb/radiusd.conf
including configuration file /usr/local/etc/raddb/clients.conf
including files in directory /usr/local/etc/raddb/mods-enabled/
including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter
including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap
including configuration file /usr/local/etc/raddb/mods-enabled/chap
including configuration file /usr/local/etc/raddb/mods-enabled/date
including configuration file /usr/local/etc/raddb/mods-enabled/detail
including configuration file /usr/local/etc/raddb/mods-enabled/detail.log
including configuration file /usr/local/etc/raddb/mods-enabled/digest
including configuration file
/usr/local/etc/raddb/mods-enabled/dynamic_clients
including configuration file /usr/local/etc/raddb/mods-enabled/eap
including configuration file /usr/local/etc/raddb/mods-enabled/echo
including configuration file /usr/local/etc/raddb/mods-enabled/exec
including configuration file /usr/local/etc/raddb/mods-enabled/expiration
including configuration file /usr/local/etc/raddb/mods-enabled/expr
including configuration file /usr/local/etc/raddb/mods-enabled/files
including configuration file /usr/local/etc/raddb/mods-enabled/linelog
including configuration file /usr/local/etc/raddb/mods-enabled/logintime
including configuration file /usr/local/etc/raddb/mods-enabled/mschap
including configuration file /usr/local/etc/raddb/mods-enabled/realm
including configuration file /usr/local/etc/raddb/mods-enabled/pap
including configuration file /usr/local/etc/raddb/mods-enabled/passwd
including configuration file /usr/local/etc/raddb/mods-enabled/preprocess
including configuration file /usr/local/etc/raddb/mods-enabled/radutmp
including configuration file /usr/local/etc/raddb/mods-enabled/replicate
including configuration file /usr/local/etc/raddb/mods-enabled/soh
including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp
including configuration file /usr/local/etc/raddb/mods-enabled/unix
including configuration file /usr/local/etc/raddb/mods-enabled/unpack
including configuration file /usr/local/etc/raddb/mods-enabled/utf8
including configuration file /usr/local/etc/raddb/mods-enabled/always
including configuration file /usr/local/etc/raddb/mods-enabled/motp
including configuration file /usr/local/etc/raddb/mods-enabled/googleauth
including configuration file
/usr/local/etc/raddb/mods-enabled/datacounter_acct
including configuration file /usr/local/etc/raddb/mods-enabled/sql
including configuration file
/usr/local/etc/raddb/mods-config/sql/main/mysql/queries.conf
including configuration file /usr/local/etc/raddb/mods-enabled/sqlcounter
including configuration file
/usr/local/etc/raddb/mods-config/sql/counter/mysql/dailycounter.conf
including configuration file
/usr/local/etc/raddb/mods-config/sql/counter/mysql/monthlycounter.conf
including configuration file
/usr/local/etc/raddb/mods-config/sql/counter/mysql/noresetcounter.conf
including configuration file
/usr/local/etc/raddb/mods-config/sql/counter/mysql/expire_on_login.conf
including files in directory /usr/local/etc/raddb/policy.d/
including configuration file /usr/local/etc/raddb/policy.d/accounting
including configuration file /usr/local/etc/raddb/policy.d/canonicalization
including configuration file /usr/local/etc/raddb/policy.d/control
including configuration file /usr/local/etc/raddb/policy.d/cui
including configuration file /usr/local/etc/raddb/policy.d/debug
including configuration file /usr/local/etc/raddb/policy.d/dhcp
including configuration file /usr/local/etc/raddb/policy.d/eap
including configuration file /usr/local/etc/raddb/policy.d/filter
including configuration file
/usr/local/etc/raddb/policy.d/moonshot-targeted-ids
including configuration file /usr/local/etc/raddb/policy.d/operator-name
including configuration file /usr/local/etc/raddb/policy.d/rfc7542
including configuration file /usr/local/etc/raddb/policy.d/abfab-tr
including configuration file
/usr/local/etc/raddb/policy.d/pfs_custom_policies
including files in directory /usr/local/etc/raddb/sites-enabled/
including configuration file /usr/local/etc/raddb/sites-enabled/default
including configuration file
/usr/local/etc/raddb/sites-enabled/inner-tunnel-ttls
including configuration file
/usr/local/etc/raddb/sites-enabled/inner-tunnel-peap
main {
security {
allow_core_dumps = no
}
name = "radiusd"
prefix = "/usr/local"
localstatedir = "/var"
logdir = "/var/log"
run_dir = "/var/run"
}
main {
name = "radiusd"
prefix = "/usr/local"
localstatedir = "/var"
sbindir = "/usr/local/sbin"
logdir = "/var/log"
run_dir = "/var/run"
libdir = "/usr/local/lib/freeradius-3.0.22"
radacctdir = "/var/log/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 1024
pidfile = "/var/run/radiusd.pid"
checkrad = "/usr/local/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = yes
auth_badpass = no
auth_goodpass = no
msg_badpass = ""
msg_goodpass = ""
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = no
}
}
radiusd: #### Loading Realms and Home Servers ####
radiusd: #### Loading Clients ####
client pfsense {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = <<< secret >>>
shortname = "pfsense"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debugger not attached
# Creating Auth-Type = pap
# Creating Auth-Type = eap
# Creating Auth-Type = MS-CHAP
# Creating Autz-Type = Status-Server
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename =
"/usr/local/etc/raddb/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename =
"/usr/local/etc/raddb/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename =
"/usr/local/etc/raddb/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename =
"/usr/local/etc/raddb/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.coa" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.coa {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/coa"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_cache
# Loading module "cache_eap" from file
/usr/local/etc/raddb/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_chap
# Loading module "chap" from file /usr/local/etc/raddb/mods-enabled/chap
# Loaded module rlm_date
# Loading module "date" from file /usr/local/etc/raddb/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file
/usr/local/etc/raddb/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_detail
# Loading module "detail" from file
/usr/local/etc/raddb/mods-enabled/detail
detail {
filename =
"/var/log/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail_%Y_%m_%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "auth_log" from file
/usr/local/etc/raddb/mods-enabled/detail.log
detail auth_log {
filename =
"/var/log/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file
/usr/local/etc/raddb/mods-enabled/detail.log
detail reply_log {
filename =
"/var/log/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file
/usr/local/etc/raddb/mods-enabled/detail.log
detail pre_proxy_log {
filename =
"/var/log/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file
/usr/local/etc/raddb/mods-enabled/detail.log
detail post_proxy_log {
filename =
"/var/log/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_digest
# Loading module "digest" from file
/usr/local/etc/raddb/mods-enabled/digest
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file
/usr/local/etc/raddb/mods-enabled/dynamic_clients
# Loaded module rlm_eap
# Loading module "eap" from file /usr/local/etc/raddb/mods-enabled/eap
eap {
default_eap_type = "ttls"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 4096
}
# Loaded module rlm_exec
# Loading module "echo" from file /usr/local/etc/raddb/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loading module "exec" from file /usr/local/etc/raddb/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_expiration
# Loading module "expiration" from file
/usr/local/etc/raddb/mods-enabled/expiration
# Loaded module rlm_expr
# Loading module "expr" from file /usr/local/etc/raddb/mods-enabled/expr
expr {
safe_characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:
/äéöüàâæçèéêëîïôSùûüa ÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔRÙÛÜx"
}
# Loaded module rlm_files
# Loading module "files" from file
/usr/local/etc/raddb/mods-enabled/files
files {
filename = "/usr/local/etc/raddb/mods-config/files/authorize"
acctusersfile = "/usr/local/etc/raddb/mods-config/files/accounting"
preproxy_usersfile =
"/usr/local/etc/raddb/mods-config/files/pre-proxy"
}
# Loaded module rlm_linelog
# Loading module "linelog" from file
/usr/local/etc/raddb/mods-enabled/linelog
linelog {
filename = "/var/log/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file
/usr/local/etc/raddb/mods-enabled/linelog
linelog log_accounting {
filename = "/var/log/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_logintime
# Loading module "logintime" from file
/usr/local/etc/raddb/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_mschap
# Loading module "mschap" from file
/usr/local/etc/raddb/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loaded module rlm_realm
# Loading module "IPASS" from file
/usr/local/etc/raddb/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = yes
}
# Loading module "suffix" from file
/usr/local/etc/raddb/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = yes
}
# Loading module "realmpercent" from file
/usr/local/etc/raddb/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = yes
}
# Loading module "ntdomain" from file
/usr/local/etc/raddb/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\"
ignore_default = no
ignore_null = yes
}
# Loaded module rlm_pap
# Loading module "pap" from file /usr/local/etc/raddb/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file
/usr/local/etc/raddb/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file
/usr/local/etc/raddb/mods-enabled/preprocess
preprocess {
huntgroups =
"/usr/local/etc/raddb/mods-config/preprocess/huntgroups"
hints = "/usr/local/etc/raddb/mods-config/preprocess/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
}
# Loaded module rlm_radutmp
# Loading module "radutmp" from file
/usr/local/etc/raddb/mods-enabled/radutmp
radutmp {
filename = "/var/log/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_replicate
# Loading module "replicate" from file
/usr/local/etc/raddb/mods-enabled/replicate
# Loaded module rlm_soh
# Loading module "soh" from file /usr/local/etc/raddb/mods-enabled/soh
soh {
dhcp = yes
}
# Loading module "sradutmp" from file
/usr/local/etc/raddb/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/var/log/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_unix
# Loading module "unix" from file /usr/local/etc/raddb/mods-enabled/unix
unix {
radwtmp = "/var/log/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_unpack
# Loading module "unpack" from file
/usr/local/etc/raddb/mods-enabled/unpack
# Loaded module rlm_utf8
# Loading module "utf8" from file /usr/local/etc/raddb/mods-enabled/utf8
# Loaded module rlm_always
# Loading module "reject" from file
/usr/local/etc/raddb/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file
/usr/local/etc/raddb/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /usr/local/etc/raddb/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file
/usr/local/etc/raddb/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file
/usr/local/etc/raddb/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file
/usr/local/etc/raddb/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file
/usr/local/etc/raddb/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file
/usr/local/etc/raddb/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file
/usr/local/etc/raddb/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loading module "motp" from file /usr/local/etc/raddb/mods-enabled/motp
exec motp {
wait = yes
program = "/usr/local/bin/bash
/usr/local/etc/raddb/scripts/otpverify.sh %{request:User-Name}
%{request:User-Password} %{reply:MOTP-Init-Secret} %{reply:MOTP-PIN} %{
reply:MOTP-Offset}"
shell_escape = yes
}
# Loading module "googleauth" from file
/usr/local/etc/raddb/mods-enabled/googleauth
exec googleauth {
wait = yes
program = "/usr/local/etc/raddb/scripts/googleauth.py
%{request:User-Name} %{reply:MOTP-Init-Secret} %{reply:MOTP-PIN}
%{request:User-Password}"
shell_escape = yes
}
# Loading module "check_quota" from file
/usr/local/etc/raddb/mods-enabled/datacounter_acct
exec check_quota {
wait = no
program = "/usr/local/bin/bash
/usr/local/etc/raddb/scripts/datacounter_acct.sh %{request:User-Name}
%{request:Calling-Station-Id} %{request:NAS-IP-Address} %{reques
t:Class} %{request:Acct-Status-Type} %{request:Called-Station-Id}"
shell_escape = yes
}
# Loaded module rlm_sql
# Loading module "sql1" from file /usr/local/etc/raddb/mods-enabled/sql
sql sql1 {
driver = "rlm_sql_mysql"
server = "localhost"
port = 35689
login = "raduser"
password = <<< secret >>>
radius_db = "raddb"
read_groups = yes
read_profiles = yes
read_clients = yes
delete_stale_sessions = yes
sql_user_name = "%{User-Name}"
logfile = "/var/log/sqltrace.sql"
default_user_profile = ""
client_query = "CALL load_clients()"
authorize_check_query = "CALL authorize_check('%{SQL-User-Name}')"
authorize_reply_query = "CALL authorize_reply('%{SQL-User-Name}')"
authorize_group_check_query = "CALL
authorize_group_check('%{sql1-SQL-Group}')"
authorize_group_reply_query = "CALL
authorize_group_reply('%{sql1-SQL-Group}')"
group_membership_query = "CALL
group_membership('%{SQL-User-Name}')"
simul_count_query = "CALL simul_count('%{SQL-User-Name}')"
safe_characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#+%&?*-_@."
auto_escape = no
accounting {
reference = "%{tolower:type.%{Acct-Status-Type}.query}"
type {
accounting-on {
query = "CALL
accounting_on('%{Called-Station-Id}','%{Acct-Terminate-Cause}','%{NAS-Identifier}','%{NAS-IP-Address}','%{Event-Timestamp}')"
}
accounting-off {
query = "CALL
accounting_off('%{Called-Station-Id}','%{Acct-Terminate-Cause}','%{NAS-Identifier}','%{NAS-IP-Address}','%{Event-Timestamp}')"
}
start {
query = "CALL
accounting_start('%{Acct-Session-Id}','%{SQL-User-Name}','%{Class}','%{NAS-IP-Address}','%{Called-Station-Id}','%{Calling-Station-Id}','%{Framed-IP-Add
ress}','%{NAS-Identifier}','%{NAS-Port}','%{NAS-Port-Type}','%{Connect-Info}','%{Event-Timestamp}')"
}
interim-update {
query = "CALL accounting_update
('%{Acct-Session-Id}','%{Called-Station-Id}','%{Calling-Station-Id}','%{Acct-Session-Time}','%{Acct-Input-Octets}','%{Acct-Input-Giga
words}','%{Acct-Output-Octets}','%{Acct-Output-Gigawords}','%{User-Name}','%{Class}','%{Framed-IP-Address}','%{NAS-Identifier}','%{NAS-Port}','%{NAS-Port-Type}','%{Connect-I
nfo}','%{NAS-IP-Address}','%{Event-Timestamp}')"
}
stop {
query = "CALL accounting_stop
('%{Acct-Session-Id}','%{SQL-User-Name}','%{Called-Station-Id}','%{Calling-Station-Id}','%{Acct-Session-Time}','%{Acct-Input-Octets}','
%{Acct-Input-Gigawords}','%{Acct-Output-Octets}','%{Acct-Output-Gigawords}','%{Acct-Terminate-Cause}','%{Framed-IP-Address}','%{NAS-Identifier}','%{NAS-Port}','%{NAS-Port-Ty
pe}','%{Connect-Info}','%{Event-Timestamp}')"
}
}
}
post-auth {
reference = ".query"
}
}
rlm_sql (sql1): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and
linked
Creating attribute sql1-SQL-Group
# Loaded module rlm_sqlcounter
# Loading module "dailycounter" from file
/usr/local/etc/raddb/mods-enabled/sqlcounter
sqlcounter dailycounter {
sql_module_instance = "sql"
key = "User-Name"
query = "SELECT SUM(acctsessiontime - GREATEST((%%b -
UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username =
'%{User-Name}' AND UNIX_TIMESTAMP(acctstartti
me) + acctsessiontime > '%%b'"
reset = "daily"
counter_name = "Daily-Session-Time"
check_name = "Max-Daily-Session"
reply_name = "Session-Timeout"
}
# Loading module "monthlycounter" from file
/usr/local/etc/raddb/mods-enabled/sqlcounter
sqlcounter monthlycounter {
sql_module_instance = "sql"
key = "User-Name"
query = "SELECT SUM(acctsessiontime - GREATEST((%%b -
UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE
username='%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime
) + acctsessiontime > '%%b'"
reset = "monthly"
counter_name = "Monthly-Session-Time"
check_name = "Max-Monthly-Session"
reply_name = "Session-Timeout"
}
# Loading module "noresetcounter" from file
/usr/local/etc/raddb/mods-enabled/sqlcounter
sqlcounter noresetcounter {
sql_module_instance = "sql"
key = "User-Name"
query = "SELECT IFNULL(SUM(AcctSessionTime),0) FROM radacct
WHERE UserName='%{User-Name}'"
reset = "never"
counter_name = "Max-All-Session-Time"
check_name = "Max-All-Session"
reply_name = "Session-Timeout"
}
# Loading module "expire_on_login" from file
/usr/local/etc/raddb/mods-enabled/sqlcounter
sqlcounter expire_on_login {
sql_module_instance = "sql"
key = "User-Name"
query = "SELECT IFNULL( MAX(TIME_TO_SEC(TIMEDIFF(NOW(),
acctstarttime))),0) FROM radacct WHERE UserName='%{User-Name}' ORDER BY
acctstarttime LIMIT 1;"
reset = "never"
counter_name = "Expire-After-Initial-Login"
check_name = "Expire-After"
reply_name = "Session-Timeout"
}
instantiate {
# Instantiating module "expiration" from file
/usr/local/etc/raddb/mods-enabled/expiration
# Instantiating module "logintime" from file
/usr/local/etc/raddb/mods-enabled/logintime
# Instantiating module "sql1" from file
/usr/local/etc/raddb/mods-enabled/sql
rlm_sql_mysql: libmysql version: 5.7.34
mysql {
tls {
tls_required = no
check_cert = no
check_cert_cn = no
}
warnings = "auto"
}
rlm_sql (sql1): Attempting to connect to database "raddb"
rlm_sql (sql1): Initialising connection pool
pool {
start = 8
min = 4
max = 5
spare = 8
uses = 0
lifetime = 0
cleanup_interval = 30
idle_timeout = 60
retry_delay = 60
spread = no
}
Ignoring "start = 8", forcing to "start = 5"
Ignoring "spare = 8", forcing to "spare = 1"
rlm_sql (sql1): Opening additional connection (0), 1 of 5 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'raddb' on Localhost via UNIX
socket, server version 5.7.33, protocol version 10
rlm_sql (sql1): Opening additional connection (1), 1 of 4 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'raddb' on Localhost via UNIX
socket, server version 5.7.33, protocol version 10
rlm_sql (sql1): Opening additional connection (2), 1 of 3 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'raddb' on Localhost via UNIX
socket, server version 5.7.33, protocol version 10
rlm_sql (sql1): Opening additional connection (3), 1 of 2 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'raddb' on Localhost via UNIX
socket, server version 5.7.33, protocol version 10
rlm_sql (sql1): Opening additional connection (4), 1 of 1 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'raddb' on Localhost via UNIX
socket, server version 5.7.33, protocol version 10
rlm_sql (sql1): Processing generate_sql_clients
rlm_sql (sql1) in generate_sql_clients: query is CALL load_clients()
rlm_sql (sql1): Reserved connection (0)
*rlm_sql (sql1): Executing select query: CALL load_clients()**
**rlm_sql (sql1): Adding client 192.168.1.204 (ANA_SWITCH) to global
clients list**
**rlm_sql (192.168.1.204): Client "ANA_SWITCH" (sql1) added**
**rlm_sql (sql1): Adding client 192.168.2.251 (KORIDOR) to global
clients list**
**rlm_sql (192.168.2.251): Client "KORIDOR" (sql1) added**
**rlm_sql (sql1): Adding client 192.168.2.252 (TOPLANTI) to global
clients list**
**rlm_sql (192.168.2.252): Client "TOPLANTI" (sql1) added**
**rlm_sql (sql1): Adding client 192.168.2.253 (TEST) to global clients
list**
**rlm_sql (192.168.2.253): Client "TEST" (sql1) added*
rlm_sql (sql1): Released connection (0)
}
# Instantiating module "attr_filter.post-proxy" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file
/usr/local/etc/raddb/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file
/usr/local/etc/raddb/mods-config/attr_filter/access_reject
# Instantiating module "attr_filter.access_challenge" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file
/usr/local/etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file
/usr/local/etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "attr_filter.coa" from file
/usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/coa
# Instantiating module "cache_eap" from file
/usr/local/etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree)
loaded and linked
# Instantiating module "detail" from file
/usr/local/etc/raddb/mods-enabled/detail
# Instantiating module "auth_log" from file
/usr/local/etc/raddb/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in
detail output
# Instantiating module "reply_log" from file
/usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file
/usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file
/usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "eap" from file
/usr/local/etc/raddb/mods-enabled/eap
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/usr/local/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/usr/local/etc/raddb/certs/server_key.pem"
certificate_file = "/usr/local/etc/raddb/certs/server_cert.pem"
ca_file = "/usr/local/etc/raddb/certs/ca_cert.pem"
dh_file = "/usr/local/etc/raddb/certs/dh"
random_file = "/dev/urandom"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
ca_path_reload_interval = 0
cipher_list = "DEFAULT"
cipher_server_preference = no
ecdh_curve = "prime256v1"
tls_min_version = "1.2"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = no
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "tls"
copy_request_to_tunnel = yes
use_tunneled_reply = no
virtual_server = "inner-tunnel-ttls"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "tls"
copy_request_to_tunnel = yes
use_tunneled_reply = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel-peap"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "files" from file
/usr/local/etc/raddb/mods-enabled/files
reading pairlist file /usr/local/etc/raddb/mods-config/files/authorize
reading pairlist file /usr/local/etc/raddb/mods-config/files/accounting
reading pairlist file /usr/local/etc/raddb/mods-config/files/pre-proxy
# Instantiating module "linelog" from file
/usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "log_accounting" from file
/usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "mschap" from file
/usr/local/etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "IPASS" from file
/usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "suffix" from file
/usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "realmpercent" from file
/usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "ntdomain" from file
/usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "pap" from file
/usr/local/etc/raddb/mods-enabled/pap
# Instantiating module "etc_passwd" from file
/usr/local/etc/raddb/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "preprocess" from file
/usr/local/etc/raddb/mods-enabled/preprocess
reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/hints
# Instantiating module "reject" from file
/usr/local/etc/raddb/mods-enabled/always
# Instantiating module "fail" from file
/usr/local/etc/raddb/mods-enabled/always
# Instantiating module "ok" from file
/usr/local/etc/raddb/mods-enabled/always
# Instantiating module "handled" from file
/usr/local/etc/raddb/mods-enabled/always
# Instantiating module "invalid" from file
/usr/local/etc/raddb/mods-enabled/always
# Instantiating module "userlock" from file
/usr/local/etc/raddb/mods-enabled/always
# Instantiating module "notfound" from file
/usr/local/etc/raddb/mods-enabled/always
# Instantiating module "noop" from file
/usr/local/etc/raddb/mods-enabled/always
# Instantiating module "updated" from file
/usr/local/etc/raddb/mods-enabled/always
# Instantiating module "dailycounter" from file
/usr/local/etc/raddb/mods-enabled/sqlcounter
rlm_sqlcounter: Current Time: 1626328518 [2021-07-15 08:55:18], Prev
reset 1626296400 [2021-07-15 00:00:00]
# Instantiating module "monthlycounter" from file
/usr/local/etc/raddb/mods-enabled/sqlcounter
rlm_sqlcounter: Current Time: 1626328518 [2021-07-15 08:55:18], Prev
reset 1625086800 [2021-07-01 00:00:00]
# Instantiating module "noresetcounter" from file
/usr/local/etc/raddb/mods-enabled/sqlcounter
rlm_sqlcounter: Current Time: 1626328518 [2021-07-15 08:55:18], Prev
reset 0 [2021-07-15 08:00:00]
# Instantiating module "expire_on_login" from file
/usr/local/etc/raddb/mods-enabled/sqlcounter
rlm_sqlcounter: Current Time: 1626328518 [2021-07-15 08:55:18], Prev
reset 0 [2021-07-15 08:00:00]
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /usr/local/etc/raddb/radiusd.conf
} # server
server default { # from file /usr/local/etc/raddb/sites-enabled/default
# Loading authenticate {...}
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
Compiling Autz-Type Status-Server for attr Autz-Type
# Loading preacct {...}
# Loading accounting {...}
# Loading session {...}
# Loading post-proxy {...}
# Loading post-auth {...}
} # server default
server inner-tunnel-ttls { # from file
/usr/local/etc/raddb/sites-enabled/inner-tunnel-ttls
# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
# Loading session {...}
# Loading post-proxy {...}
# Loading post-auth {...}
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
} # server inner-tunnel-ttls
server inner-tunnel-peap { # from file
/usr/local/etc/raddb/sites-enabled/inner-tunnel-peap
# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
# Loading session {...}
# Loading post-proxy {...}
# Loading post-auth {...}
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
} # server inner-tunnel-peap
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 1812
client pfsense {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = <<< secret >>>
shortname = "pfsense"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Ignoring duplicate client 127.0.0.1
}
listen {
type = "acct"
ipaddr = *
port = 1813
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18127
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18128
}
Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address 127.0.0.1 port 18127 bound to server
inner-tunnel-ttls
Listening on auth address 127.0.0.1 port 18128 bound to server
inner-tunnel-peap
Ready to process requests
*Ignoring request to auth address * port 1812 bound to server default
from unknown client 192.168.2.251 port 48345 proto udp*
Ready to process requests
As you can see, the client is loaded but FreeRADIUS refuses to interect
with it.
FYI: I use a custom MySQL SPROC to load the clients and it returns a
result set that is perfeclty compatible with the original FreeRADIUS
provided query. I also triple-checked the passwords, there are no
mistakes there.
What am I missing?
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
3
2
Hi,
I'm trying to configure FreeRadius to control Mikrotik logins (Winbox, SSH,
Telnet, etc) + integration with Windows Active Directory
After a lot of searching about LDAP config I was able to get an
Access-Accept from AD Server using radtest:
root@lab-01:~# radtest -x paulo pass@777 127.0.0.1 0 testing123
Sent Access-Request Id 45 from 0.0.0.0:44663 to 127.0.0.1:1812 length 75
User-Name = "paulo"
User-Password = "pass@777"
NAS-IP-Address = 127.0.1.1
NAS-Port = 0
Message-Authenticator = 0x00
Cleartext-Password = "pass@777"
Received Access-Accept Id 45 from 127.0.0.1:1812 to 0.0.0.0:0 length 20
User-Name "paulo" is an AD user
#
My NAS (Mikrotik) is trying to authenticate against FreeRadius, but it
sends a MS-CHAP-Challenge in its logs:
sending Access-Request with id 23 to 172.x.x.70:1812
Signature = 0x00fbf419a1a52d28f3b7479a72eeda9c
Service-Type = 1
User-Name = "paulo"
MS-CHAP-Challenge = 0x728c84707e975a66640bfd9bd4d2ed98
MS-CHAP2-Response = 0x00004b64c3ae410e919c1adaf9ab1ea6
cf8700000000000000000cc476370d07
263c4c707bfb1e9cf52ac40b5ea6d6eb
230d
Calling-Station-Id = "10.x.x.253"
NAS-Identifier = "Mikrotik-1218"
NAS-IP-Address = 172.16.12.18
#
Then freeradius -X command gives me those warnings and errors:
(0) pap: WARNING: No "known good" password found for the user. Not setting
Auth-Type
(0) pap: WARNING: Authentication will fail unless a "known good" password
is available
(0) mschap: WARNING: No Cleartext-Password configured. Cannot create
NT-Password
(0) mschap: WARNING: No Cleartext-Password configured. Cannot create
LM-Password
(0) mschap: ERROR: FAILED: No NT/LM-Password. Cannot perform authentication
(0) mschap: ERROR: MS-CHAP2-Response is incorrect
#
What do those lines want to say?
I didn't find any hints after hours searching
Thank you!
2
1
Alan DeKok <aland(a)deployingradius.com> writes:
>Which one?
The client? A no-name embedded one used with SCADA devices that have
to be controlled from central servers. If it was up to me they'd just
be FreeRADIUS, but unfortunately some have to be NPS since there's
lots of different vendors involved.
>NPS is weird. If the NPS admins want to do PEAP, then they should do PEAP.
>Sending a different magic EAP type is just stupid.
Agreed :-). I don't think it's the admins though, they've configured
it to do PEAP and as far as they're aware that's what they're getting,
it's NPS that's adding the strangeness.
>You'll need to look at the full log from eapol_test to see why it works.
Already done that, we've taken Wireshark captures, the eapol_test and
FreeRADIUS logs, and diagnostics from the client, and made things
identical to what eapol_test sends (as far as we can tell, there may
be stuff inside the PEAP tunnel that we can't see and aren't not aware
of).
We've really tried everything we can think of, so it may be a case of
someone seeing this and remembering some obscure magic they used to
get it to work.
>I can't find anything in wpa_supplicant which handles a magic Microsoft EAP
>type. So it's not clear what's going on there.
What wpa_supplicant does is ignore the message and re-send the
Identity Response it's just sent, which continues the negotiation.
This is one of the bits that reverse-engineering the flow from
eapol_test/wpa_supplicant helped with. So for anyone else who's faced
with this, when doing PEAP/MSCHAPv2 with NPS, when you're expecting to
get the MSCHAPv2 Challenge if instead you get an EAP vendor-specific
undocumented Microsoft blob back, re-send the Identity Response a
second time and then you'll get the MSCHAPv2 Challenge you should have
got the first time.
JG.
2
1
This is possibly more an NPS question than a FreeRADIUS one but
possibly someone here might know what to do, we're using a third-party
embedded RADIUS client to authenticate to both FreeRADIUS and NPS with
PEAP/MSCHAPv2. The client is sending completely standard PEAP
messages to both, but while the exchange with FreeRADIUS works fine,
with NPS it's rejected with either Reason Code 1/An internal error
occurred or Reason Code 66/The user attempted to use an authentication
method that is not enabled on the matching network policy.
The NPS server admins insist that it's configured correctly and claim
that since eapol_test authenticates to it the problem is at our end.
Whatever NPS is doing it's quite weird and required
reverse-engineering wpa_supplicant to figure out, for example it sends
back an undocumented vendor-specific EAP request (vendor ID =
311/Microsoft, vendor type = 34, data = 00 00 00 01) when we're
expecting an MSCHAPv2 Challenge while FreeRADIUS behaves as expected.
At the moment we're stuck with finger-pointing, from our point of view
whatever NPS is doing isn't anything like what the spec says and
things work fine with FreeRADIUS so NPS is broken, from their point of
view eapol_test works with NPS and so there's something wrong with our
client. If this situation is ringing any bells with someone I'd be
interested in any information we can use to move forward, and can
provide more details on any part of the PEAP exchange if required.
JG.
2
1