Help request: WPA Enterprise Authentication with UniFi equipment and Google Workspace LDAPS
rafa alfurqan
rafa.alfurqan at gmail.com
Wed Jul 9 10:47:00 UTC 2025
5 vu c2
On Wed, Jul 9, 2025, 00:52 Taylor Gorman <taylorgorman at thecampusway.com>
wrote:
> Hello there. I would like to request assistance.
>
> Supplicant device: 2017 inch MacBook Air running macOS Monterey 12.7.6
>
> Network equipment: UAP-AC-PRO wireless access point and UDM-SE router
>
> Directory server: Google Workspace LDAPS
>
> My Implementation: Using official docker imagine
> "freeradius/freeradius-server" running on Google Compute Engine COS.
>
> What am I trying to do: WPA Enterprise Authentication (EAP-TTLS-PAP)
>
> Why am I trying to do it: To eliminate the security risk of pre-shared
> keys in a professional setting
>
> What I expect the server to do: Continue past authenticate and on to
> authorize.
>
> What the server does: Completes authenticate and fails on authorize
>
> Remarks: I am a novice, but by my understanding, freeRADIUS is
> completing the authentication portion. This means that freeRADIUS
> connects to LDAPS and verifies the supplicant's username and password.
> So if all of this works, then why is freeRADIUS unable to proceed to
> authenticate? I suspect that there is some error with passing the
> supplicant user's password from the authenticate section to the
> authorize section.
>
> I apologize for not truncating the debug output. I am not sure which
> parts are relevant and which parts are not.
>
> Thank you for your assistance,
>
> Taylor Gorman
>
> FreeRADIUS Version 3.2.7
> Copyright (C) 1999-2023 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/share/freeradius/dictionary
> including dictionary file /usr/share/freeradius/dictionary.dhcp
> including dictionary file /usr/share/freeradius/dictionary.vqp
> including dictionary file /etc/freeradius/dictionary
> 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/mods-enabled/
> including configuration file /etc/freeradius/mods-enabled/utf8
> including configuration file /etc/freeradius/mods-enabled/totp
> including configuration file /etc/freeradius/mods-enabled/date
> including configuration file /etc/freeradius/mods-enabled/proxy_rate_limit
> including configuration file /etc/freeradius/mods-enabled/mschap
> including configuration file /etc/freeradius/mods-enabled/cache_auth
> including configuration file /etc/freeradius/mods-enabled/attr_filter
> including configuration file /etc/freeradius/mods-enabled/detail.log
> including configuration file /etc/freeradius/mods-enabled/ntlm_auth
> including configuration file /etc/freeradius/mods-enabled/expiration
> including configuration file /etc/freeradius/mods-enabled/unix
> including configuration file /etc/freeradius/mods-enabled/echo
> including configuration file /etc/freeradius/mods-enabled/digest
> including configuration file /etc/freeradius/mods-enabled/files
> including configuration file /etc/freeradius/mods-enabled/linelog
> including configuration file /etc/freeradius/mods-enabled/dynamic_clients
> including configuration file /etc/freeradius/mods-enabled/preprocess
> including configuration file /etc/freeradius/mods-enabled/passwd
> including configuration file /etc/freeradius/mods-enabled/chap
> including configuration file /etc/freeradius/mods-enabled/unpack
> including configuration file /etc/freeradius/mods-enabled/eap
> including configuration file /etc/freeradius/mods-enabled/replicate
> including configuration file /etc/freeradius/mods-enabled/logintime
> including configuration file /etc/freeradius/mods-enabled/soh
> including configuration file /etc/freeradius/mods-enabled/radutmp
> including configuration file /etc/freeradius/mods-enabled/pap
> including configuration file /etc/freeradius/mods-enabled/detail
> including configuration file /etc/freeradius/mods-enabled/always
> including configuration file /etc/freeradius/mods-enabled/realm
> including configuration file /etc/freeradius/mods-enabled/exec
> including configuration file /etc/freeradius/mods-enabled/ldap_google
> including configuration file /etc/freeradius/mods-enabled/expr
> including configuration file /etc/freeradius/mods-enabled/sradutmp
> including files in directory /etc/freeradius/policy.d/
> including configuration file /etc/freeradius/policy.d/accounting
> including configuration file /etc/freeradius/policy.d/cui
> including configuration file /etc/freeradius/policy.d/canonicalization
> including configuration file /etc/freeradius/policy.d/moonshot-targeted-ids
> including configuration file /etc/freeradius/policy.d/abfab-tr
> including configuration file /etc/freeradius/policy.d/debug
> including configuration file /etc/freeradius/policy.d/eap
> including configuration file /etc/freeradius/policy.d/operator-name
> including configuration file /etc/freeradius/policy.d/dhcp
> including configuration file /etc/freeradius/policy.d/control
> including configuration file /etc/freeradius/policy.d/filter
> including configuration file /etc/freeradius/policy.d/rfc7542
> including files in directory /etc/freeradius/sites-enabled/
> including configuration file /etc/freeradius/sites-enabled/google-ldap-auth
> including configuration file /etc/freeradius/sites-enabled/default
> including configuration file /etc/freeradius/sites-enabled/check-eap-tls
> including configuration file /etc/freeradius/sites-enabled/inner-tunnel
> main {
> security {
> user = "freerad"
> group = "freerad"
> allow_core_dumps = no
> }
> name = "freeradius"
> prefix = "/usr"
> localstatedir = "/var"
> logdir = "/var/log/freeradius"
> run_dir = "/var/run/freeradius"
> }
> main {
> name = "freeradius"
> prefix = "/usr"
> localstatedir = "/var"
> sbindir = "/usr/sbin"
> logdir = "/var/log/freeradius"
> run_dir = "/var/run/freeradius"
> libdir = "/usr/lib/freeradius"
> radacctdir = "/var/log/freeradius/radacct"
> hostname_lookups = no
> max_request_time = 30
> proxy_dedup_window = 1
> cleanup_delay = 5
> max_requests = 16384
> max_fds = 512
> postauth_client_lost = no
> pidfile = "/var/run/freeradius/freeradius.pid"
> checkrad = "/usr/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
> require_message_authenticator = "auto"
> limit_proxy_state = "auto"
> }
> unlang {
> group_stop_return = no
> policy_stop_return = 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 {
> nonblock = no
> 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_pool my_auth_failover {
> type = fail-over
> home_server = localhost
> }
> realm example.com {
> auth_pool = my_auth_failover
> }
> realm LOCAL {
> }
> radiusd: #### Loading Clients ####
> client radiusserver_radtest_interlink {
> ipaddr = 172.18.0.0/16
> secret = <<< secret >>>
> limit {
> max_connections = 16
> lifetime = 0
> idle_timeout = 30
> }
> }
> Shared secret for client radiusserver_radtest_interlink is short, and
> likely can be broken by an attacker.
> client 300Tivoli {
> ipaddr = wan1.normandy.taylorgorman.net IPv4 address [71.59.46.3]
> secret = <<< secret >>>
> proto = "*"
> limit {
> max_connections = 16
> lifetime = 0
> idle_timeout = 30
> }
> }
> client localhost {
> ipaddr = 127.0.0.1
> secret = <<< secret >>>
> nas_type = "other"
> proto = "*"
> limit {
> max_connections = 16
> lifetime = 0
> idle_timeout = 900
> }
> }
> Shared secret for client localhost is short, and likely can be broken by
> an attacker.
> client localhost_ipv6 {
> ipv6addr = ::1
> secret = <<< secret >>>
> limit {
> max_connections = 16
> lifetime = 0
> idle_timeout = 30
> }
> }
> Shared secret for client localhost_ipv6 is short, and likely can be
> broken by an attacker.
> Debug state unknown (cap_sys_ptrace capability not set)
> Configuration version: 752e-6ff7-6ec8-d014
> systemd watchdog is disabled
> # Creating Auth-Type = LDAP
> # 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_utf8
> # Loading module "utf8" from file /etc/freeradius/mods-enabled/utf8
> # Loaded module rlm_totp
> # Loading module "totp" from file /etc/freeradius/mods-enabled/totp
> totp {
> time_step = 30
> otp_length = 6
> lookback_steps = 1
> lookback_interval = 30
> lookforward_steps = 0
> }
> # Loaded module rlm_date
> # Loading module "date" from file /etc/freeradius/mods-enabled/date
> date {
> format = "%b %e %Y %H:%M:%S %Z"
> utc = no
> }
> # Loading module "wispr2date" from file
> /etc/freeradius/mods-enabled/date
> date wispr2date {
> format = "%Y-%m-%dT%H:%M:%S"
> utc = no
> }
> # Loaded module rlm_proxy_rate_limit
> # Loading module "proxy_rate_limit" from file
> /etc/freeradius/mods-enabled/proxy_rate_limit
> proxy_rate_limit {
> max_entries = 2048
> idle_timeout = 10
> num_subtables = 256
> window = 1
> }
> # Loaded module rlm_mschap
> # Loading module "mschap" from file /etc/freeradius/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_cache
> # Loading module "cache_auth_accept" from file
> /etc/freeradius/mods-enabled/cache_auth
> cache cache_auth_accept {
> driver = "rlm_cache_rbtree"
> key =
> "%{md5:%{%{Stripped-User-Name}:-%{User-Name}}%{User-Password}}"
> ttl = 7200
> max_entries = 0
> epoch = 0
> add_stats = no
> }
> # Loading module "cache_auth_reject" from file
> /etc/freeradius/mods-enabled/cache_auth
> cache cache_auth_reject {
> driver = "rlm_cache_rbtree"
> key =
> "%{md5:%{Calling-Station-Id}%{Stripped-User-Name}%{User-Password}}"
> ttl = 3600
> max_entries = 0
> epoch = 0
> add_stats = no
> }
> # Loading module "cache_ldap_user_dn" from file
> /etc/freeradius/mods-enabled/cache_auth
> cache cache_ldap_user_dn {
> driver = "rlm_cache_rbtree"
> key = "%{Stripped-User-Name}"
> ttl = 86400
> max_entries = 0
> epoch = 0
> add_stats = no
> }
> # Loaded module rlm_attr_filter
> # Loading module "attr_filter.post-proxy" from file
> /etc/freeradius/mods-enabled/attr_filter
> attr_filter attr_filter.post-proxy {
> filename = "/etc/freeradius/mods-config/attr_filter/post-proxy"
> key = "%{Realm}"
> relaxed = no
> }
> # Loading module "attr_filter.pre-proxy" from file
> /etc/freeradius/mods-enabled/attr_filter
> attr_filter attr_filter.pre-proxy {
> filename = "/etc/freeradius/mods-config/attr_filter/pre-proxy"
> key = "%{Realm}"
> relaxed = no
> }
> # Loading module "attr_filter.access_reject" from file
> /etc/freeradius/mods-enabled/attr_filter
> attr_filter attr_filter.access_reject {
> filename = "/etc/freeradius/mods-config/attr_filter/access_reject"
> key = "%{User-Name}"
> relaxed = no
> }
> # Loading module "attr_filter.access_challenge" from file
> /etc/freeradius/mods-enabled/attr_filter
> attr_filter attr_filter.access_challenge {
> filename =
> "/etc/freeradius/mods-config/attr_filter/access_challenge"
> key = "%{User-Name}"
> relaxed = no
> }
> # Loading module "attr_filter.accounting_response" from file
> /etc/freeradius/mods-enabled/attr_filter
> attr_filter attr_filter.accounting_response {
> filename =
> "/etc/freeradius/mods-config/attr_filter/accounting_response"
> key = "%{User-Name}"
> relaxed = no
> }
> # Loading module "attr_filter.coa" from file
> /etc/freeradius/mods-enabled/attr_filter
> attr_filter attr_filter.coa {
> filename = "/etc/freeradius/mods-config/attr_filter/coa"
> key = "%{User-Name}"
> relaxed = no
> }
> # Loaded module rlm_detail
> # Loading module "auth_log" from file
> /etc/freeradius/mods-enabled/detail.log
> detail auth_log {
> filename =
>
> "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
> header = "%t"
> permissions = 384
> locking = no
> dates_as_integer = no
> escape_filenames = no
> log_packet_header = no
> }
> # Loading module "reply_log" from file
> /etc/freeradius/mods-enabled/detail.log
> detail reply_log {
> filename =
>
> "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
> header = "%t"
> permissions = 384
> locking = no
> dates_as_integer = no
> escape_filenames = no
> log_packet_header = no
> }
> # Loading module "pre_proxy_log" from file
> /etc/freeradius/mods-enabled/detail.log
> detail pre_proxy_log {
> filename =
>
> "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
> header = "%t"
> permissions = 384
> locking = no
> dates_as_integer = no
> escape_filenames = no
> log_packet_header = no
> }
> # Loading module "post_proxy_log" from file
> /etc/freeradius/mods-enabled/detail.log
> detail post_proxy_log {
> filename =
>
> "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
> header = "%t"
> permissions = 384
> locking = no
> dates_as_integer = no
> escape_filenames = no
> log_packet_header = no
> }
> # Loaded module rlm_exec
> # Loading module "ntlm_auth" from file
> /etc/freeradius/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
> }
> # Loaded module rlm_expiration
> # Loading module "expiration" from file
> /etc/freeradius/mods-enabled/expiration
> # Loaded module rlm_unix
> # Loading module "unix" from file /etc/freeradius/mods-enabled/unix
> unix {
> radwtmp = "/var/log/freeradius/radwtmp"
> }
> Creating attribute Unix-Group
> # Loading module "echo" from file /etc/freeradius/mods-enabled/echo
> exec echo {
> wait = yes
> program = "/bin/echo %{User-Name}"
> input_pairs = "request"
> output_pairs = "reply"
> shell_escape = yes
> }
> # Loaded module rlm_digest
> # Loading module "digest" from file /etc/freeradius/mods-enabled/digest
> # Loaded module rlm_files
> # Loading module "files" from file /etc/freeradius/mods-enabled/files
> files {
> filename = "/etc/freeradius/mods-config/files/authorize"
> acctusersfile = "/etc/freeradius/mods-config/files/accounting"
> preproxy_usersfile = "/etc/freeradius/mods-config/files/pre-proxy"
> }
> # Loaded module rlm_linelog
> # Loading module "linelog" from file
> /etc/freeradius/mods-enabled/linelog
> linelog {
> filename = "/var/log/freeradius/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
> /etc/freeradius/mods-enabled/linelog
> linelog log_accounting {
> filename = "/var/log/freeradius/linelog-accounting"
> escape_filenames = no
> syslog_severity = "info"
> permissions = 384
> format = ""
> reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
> }
> # Loaded module rlm_dynamic_clients
> # Loading module "dynamic_clients" from file
> /etc/freeradius/mods-enabled/dynamic_clients
> # Loaded module rlm_preprocess
> # Loading module "preprocess" from file
> /etc/freeradius/mods-enabled/preprocess
> preprocess {
> huntgroups = "/etc/freeradius/mods-config/preprocess/huntgroups"
> hints = "/etc/freeradius/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_passwd
> # Loading module "etc_passwd" from file
> /etc/freeradius/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_chap
> # Loading module "chap" from file /etc/freeradius/mods-enabled/chap
> # Loaded module rlm_unpack
> # Loading module "unpack" from file /etc/freeradius/mods-enabled/unpack
> # Loaded module rlm_eap
> # Loading module "eap" from file /etc/freeradius/mods-enabled/eap
> eap {
> default_eap_type = "ttls"
> timer_expire = 60
> max_eap_type = 52
> ignore_unknown_eap_types = no
> cisco_accounting_username_bug = no
> max_sessions = 16384
> dedup_key = ""
> }
> # Loaded module rlm_replicate
> # Loading module "replicate" from file
> /etc/freeradius/mods-enabled/replicate
> # Loaded module rlm_logintime
> # Loading module "logintime" from file
> /etc/freeradius/mods-enabled/logintime
> logintime {
> minimum_timeout = 60
> }
> # Loaded module rlm_soh
> # Loading module "soh" from file /etc/freeradius/mods-enabled/soh
> soh {
> dhcp = yes
> }
> # Loaded module rlm_radutmp
> # Loading module "radutmp" from file
> /etc/freeradius/mods-enabled/radutmp
> radutmp {
> filename = "/var/log/freeradius/radutmp"
> username = "%{User-Name}"
> case_sensitive = yes
> check_with_nas = yes
> permissions = 384
> caller_id = yes
> }
> # Loaded module rlm_pap
> # Loading module "pap" from file /etc/freeradius/mods-enabled/pap
> pap {
> normalise = yes
> }
> # Loading module "detail" from file /etc/freeradius/mods-enabled/detail
> detail {
> filename =
>
> "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
> header = "%t"
> permissions = 384
> locking = no
> dates_as_integer = no
> escape_filenames = no
> log_packet_header = no
> }
> # Loaded module rlm_always
> # Loading module "reject" from file /etc/freeradius/mods-enabled/always
> always reject {
> rcode = "reject"
> simulcount = 0
> mpp = no
> }
> # Loading module "fail" from file /etc/freeradius/mods-enabled/always
> always fail {
> rcode = "fail"
> simulcount = 0
> mpp = no
> }
> # Loading module "ok" from file /etc/freeradius/mods-enabled/always
> always ok {
> rcode = "ok"
> simulcount = 0
> mpp = no
> }
> # Loading module "handled" from file /etc/freeradius/mods-enabled/always
> always handled {
> rcode = "handled"
> simulcount = 0
> mpp = no
> }
> # Loading module "invalid" from file /etc/freeradius/mods-enabled/always
> always invalid {
> rcode = "invalid"
> simulcount = 0
> mpp = no
> }
> # Loading module "userlock" from file
> /etc/freeradius/mods-enabled/always
> always userlock {
> rcode = "userlock"
> simulcount = 0
> mpp = no
> }
> # Loading module "notfound" from file
> /etc/freeradius/mods-enabled/always
> always notfound {
> rcode = "notfound"
> simulcount = 0
> mpp = no
> }
> # Loading module "noop" from file /etc/freeradius/mods-enabled/always
> always noop {
> rcode = "noop"
> simulcount = 0
> mpp = no
> }
> # Loading module "updated" from file /etc/freeradius/mods-enabled/always
> always updated {
> rcode = "updated"
> simulcount = 0
> mpp = no
> }
> # Loaded module rlm_realm
> # Loading module "IPASS" from file /etc/freeradius/mods-enabled/realm
> realm IPASS {
> format = "prefix"
> delimiter = "/"
> ignore_default = no
> ignore_null = no
> }
> # Loading module "suffix" from file /etc/freeradius/mods-enabled/realm
> realm suffix {
> format = "suffix"
> delimiter = "@"
> ignore_default = no
> ignore_null = no
> }
> # Loading module "bangpath" from file /etc/freeradius/mods-enabled/realm
> realm bangpath {
> format = "prefix"
> delimiter = "!"
> ignore_default = no
> ignore_null = no
> }
> # Loading module "realmpercent" from file
> /etc/freeradius/mods-enabled/realm
> realm realmpercent {
> format = "suffix"
> delimiter = "%"
> ignore_default = no
> ignore_null = no
> }
> # Loading module "ntdomain" from file /etc/freeradius/mods-enabled/realm
> realm ntdomain {
> format = "prefix"
> delimiter = "\"
> ignore_default = no
> ignore_null = no
> }
> # Loading module "exec" from file /etc/freeradius/mods-enabled/exec
> exec {
> wait = no
> input_pairs = "request"
> shell_escape = yes
> timeout = 10
> }
> # Loaded module rlm_ldap
> # Loading module "ldap_google" from file
> /etc/freeradius/mods-enabled/ldap_google
> ldap ldap_google {
> server = "ldaps://ldap.google.com:636/"
> identity = "MortifiedU"
> password = <<< secret >>>
> sasl {
> }
> user_dn = "LDAP-UserDn"
> user {
> scope = "sub"
> access_positive = yes
> sasl {
> }
> }
> group {
> filter = "(objectClass=posixGroup)"
> scope = "sub"
> name_attribute = "cn"
> membership_attribute = "memberOf"
> cacheable_name = no
> cacheable_dn = yes
> cache_attribute = "LDAP-Cached-Membership"
> allow_dangling_group_ref = no
> }
> client {
> scope = "sub"
> base_dn = ""
> }
> profile {
> }
> options {
> ldap_debug = 0
> chase_referrals = no
> net_timeout = 3
> res_timeout = 10
> srv_timelimit = 3
> idle = 60
> probes = 3
> interval = 3
> }
> tls {
> certificate_file = "/etc/freeradius/certs/google/certificate.crt"
> private_key_file = "/etc/freeradius/certs/google/key.key"
> random_file = "/dev/urandom"
> check_crl = no
> start_tls = no
> require_cert = "allow"
> }
> }
> Creating attribute ldap_google-LDAP-Group
> # Loaded module rlm_expr
> # Loading module "expr" from file /etc/freeradius/mods-enabled/expr
> expr {
> safe_characters =
> "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:
> /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
> }
> # Loading module "sradutmp" from file
> /etc/freeradius/mods-enabled/sradutmp
> radutmp sradutmp {
> filename = "/var/log/freeradius/sradutmp"
> username = "%{User-Name}"
> case_sensitive = yes
> check_with_nas = yes
> permissions = 420
> caller_id = no
> }
> instantiate {
> }
> # Instantiating module "totp" from file
> /etc/freeradius/mods-enabled/totp
> # Instantiating module "proxy_rate_limit" from file
> /etc/freeradius/mods-enabled/proxy_rate_limit
> # Instantiating module "mschap" from file
> /etc/freeradius/mods-enabled/mschap
> rlm_mschap (mschap): using internal authentication
> # Instantiating module "cache_auth_accept" from file
> /etc/freeradius/mods-enabled/cache_auth
> rlm_cache (cache_auth_accept): Driver rlm_cache_rbtree (module
> rlm_cache_rbtree) loaded and linked
> # Instantiating module "cache_auth_reject" from file
> /etc/freeradius/mods-enabled/cache_auth
> rlm_cache (cache_auth_reject): Driver rlm_cache_rbtree (module
> rlm_cache_rbtree) loaded and linked
> # Instantiating module "cache_ldap_user_dn" from file
> /etc/freeradius/mods-enabled/cache_auth
> rlm_cache (cache_ldap_user_dn): Driver rlm_cache_rbtree (module
> rlm_cache_rbtree) loaded and linked
> # Instantiating module "attr_filter.post-proxy" from file
> /etc/freeradius/mods-enabled/attr_filter
> reading pairlist file /etc/freeradius/mods-config/attr_filter/post-proxy
> # Instantiating module "attr_filter.pre-proxy" from file
> /etc/freeradius/mods-enabled/attr_filter
> reading pairlist file /etc/freeradius/mods-config/attr_filter/pre-proxy
> # Instantiating module "attr_filter.access_reject" from file
> /etc/freeradius/mods-enabled/attr_filter
> reading pairlist file /etc/freeradius/mods-config/attr_filter/access_reject
> # Instantiating module "attr_filter.access_challenge" from file
> /etc/freeradius/mods-enabled/attr_filter
> reading pairlist file
> /etc/freeradius/mods-config/attr_filter/access_challenge
> # Instantiating module "attr_filter.accounting_response" from file
> /etc/freeradius/mods-enabled/attr_filter
> reading pairlist file
> /etc/freeradius/mods-config/attr_filter/accounting_response
> # Instantiating module "attr_filter.coa" from file
> /etc/freeradius/mods-enabled/attr_filter
> reading pairlist file /etc/freeradius/mods-config/attr_filter/coa
> # Instantiating module "auth_log" from file
> /etc/freeradius/mods-enabled/detail.log
> rlm_detail (auth_log): 'User-Password' suppressed, will not appear in
> detail output
> # Instantiating module "reply_log" from file
> /etc/freeradius/mods-enabled/detail.log
> # Instantiating module "pre_proxy_log" from file
> /etc/freeradius/mods-enabled/detail.log
> # Instantiating module "post_proxy_log" from file
> /etc/freeradius/mods-enabled/detail.log
> # Instantiating module "expiration" from file
> /etc/freeradius/mods-enabled/expiration
> # Instantiating module "files" from file
> /etc/freeradius/mods-enabled/files
> reading pairlist file /etc/freeradius/mods-config/files/authorize
> reading pairlist file /etc/freeradius/mods-config/files/accounting
> reading pairlist file /etc/freeradius/mods-config/files/pre-proxy
> # Instantiating module "linelog" from file
> /etc/freeradius/mods-enabled/linelog
> # Instantiating module "log_accounting" from file
> /etc/freeradius/mods-enabled/linelog
> # Instantiating module "preprocess" from file
> /etc/freeradius/mods-enabled/preprocess
> reading pairlist file /etc/freeradius/mods-config/preprocess/huntgroups
> reading pairlist file /etc/freeradius/mods-config/preprocess/hints
> # Instantiating module "etc_passwd" from file
> /etc/freeradius/mods-enabled/passwd
> rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
> # Instantiating module "eap" from file /etc/freeradius/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"
> virtual_server = "check-eap-tls"
> configurable_client_cert = no
> }
> tls-config tls-common {
> verify_depth = 0
> ca_path = "/etc/freeradius/certs"
> pem_file_type = yes
> private_key_file = "/etc/freeradius/certs/server.pem"
> certificate_file = "/etc/freeradius/certs/server.pem"
> ca_file = "/etc/freeradius/certs/ca.pem"
> private_key_password = <<< secret >>>
> 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
> reject_unknown_intermediate_ca = no
> ecdh_curve = ""
> tls_max_version = "1.3"
> tls_min_version = "1.2"
> cache {
> enable = yes
> lifetime = 8
> name = "base-eap-cache"
> max_entries = 255
> persist_dir = "/var/log/freeradius/tlscache"
> }
> 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 = "google-ldap-auth"
> 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
> }
> # Instantiating module "logintime" from file
> /etc/freeradius/mods-enabled/logintime
> # Instantiating module "pap" from file /etc/freeradius/mods-enabled/pap
> # Instantiating module "detail" from file
> /etc/freeradius/mods-enabled/detail
> # Instantiating module "reject" from file
> /etc/freeradius/mods-enabled/always
> # Instantiating module "fail" from file
> /etc/freeradius/mods-enabled/always
> # Instantiating module "ok" from file
> /etc/freeradius/mods-enabled/always
> # Instantiating module "handled" from file
> /etc/freeradius/mods-enabled/always
> # Instantiating module "invalid" from file
> /etc/freeradius/mods-enabled/always
> # Instantiating module "userlock" from file
> /etc/freeradius/mods-enabled/always
> # Instantiating module "notfound" from file
> /etc/freeradius/mods-enabled/always
> # Instantiating module "noop" from file
> /etc/freeradius/mods-enabled/always
> # Instantiating module "updated" from file
> /etc/freeradius/mods-enabled/always
> # Instantiating module "IPASS" from file
> /etc/freeradius/mods-enabled/realm
> # Instantiating module "suffix" from file
> /etc/freeradius/mods-enabled/realm
> # Instantiating module "bangpath" from file
> /etc/freeradius/mods-enabled/realm
> # Instantiating module "realmpercent" from file
> /etc/freeradius/mods-enabled/realm
> # Instantiating module "ntdomain" from file
> /etc/freeradius/mods-enabled/realm
> # Instantiating module "ldap_google" from file
> /etc/freeradius/mods-enabled/ldap_google
> rlm_ldap: libldap vendor: OpenLDAP, version: 20518
> rlm_ldap (ldap_google): Couldn't find configuration for accounting, will
> return NOOP for calls from this section
> rlm_ldap (ldap_google): Couldn't find configuration for post-auth, will
> return NOOP for calls from this section
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> !! libldap is using GnuTLS, while FreeRADIUS is using OpenSSL
> !! There may be random issues with TLS connections due to this conflict.
> !! The server may also crash.
> !! See https://wiki.freeradius.org/modules/Rlm_ldap for more information.
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> rlm_ldap (ldap_google): Initialising connection pool
> pool {
> start = 5
> min = 3
> max = 32
> spare = 10
> uses = 0
> lifetime = 0
> cleanup_interval = 30
> idle_timeout = 60
> retry_delay = 30
> max_retries = 5
> spread = no
> }
> rlm_ldap (ldap_google): Opening additional connection (0), 1 of 32
> pending slots used
> rlm_ldap (ldap_google): Connecting to ldaps://ldap.google.com:636
> rlm_ldap (ldap_google): Waiting for bind result...
> rlm_ldap (ldap_google): Bind successful
> rlm_ldap (ldap_google): Opening additional connection (1), 1 of 31
> pending slots used
> rlm_ldap (ldap_google): Connecting to ldaps://ldap.google.com:636
> rlm_ldap (ldap_google): Waiting for bind result...
> rlm_ldap (ldap_google): Bind successful
> rlm_ldap (ldap_google): Opening additional connection (2), 1 of 30
> pending slots used
> rlm_ldap (ldap_google): Connecting to ldaps://ldap.google.com:636
> rlm_ldap (ldap_google): Waiting for bind result...
> rlm_ldap (ldap_google): Bind successful
> rlm_ldap (ldap_google): Opening additional connection (3), 1 of 29
> pending slots used
> rlm_ldap (ldap_google): Connecting to ldaps://ldap.google.com:636
> rlm_ldap (ldap_google): Waiting for bind result...
> rlm_ldap (ldap_google): Bind successful
> rlm_ldap (ldap_google): Opening additional connection (4), 1 of 28
> pending slots used
> rlm_ldap (ldap_google): Connecting to ldaps://ldap.google.com:636
> rlm_ldap (ldap_google): Waiting for bind result...
> rlm_ldap (ldap_google): Bind successful
> } # modules
> radiusd: #### Loading Virtual Servers ####
> server { # from file /etc/freeradius/radiusd.conf
> } # server
> server google-ldap-auth { # from file
> /etc/freeradius/sites-enabled/google-ldap-auth
> # Loading authenticate {...}
> Compiling Auth-Type LDAP for attr Auth-Type
> # Loading authorize {...}
> # Loading post-auth {...}
> Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
> } # server google-ldap-auth
> server default { # from file /etc/freeradius/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
> Compiling Auth-Type LDAP for attr Auth-Type
> # Loading authorize {...}
> Ignoring "sql" (see raddb/mods-available/README.rst)
> Compiling Autz-Type New-TLS-Connection for attr Autz-Type
> # Loading preacct {...}
> # Loading accounting {...}
> # 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 check-eap-tls { # from file
> /etc/freeradius/sites-enabled/check-eap-tls
> # Loading authorize {...}
> } # server check-eap-tls
> server inner-tunnel { # from file
> /etc/freeradius/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
> Compiling Auth-Type LDAP for attr Auth-Type
> # Loading authorize {...}
> Ignoring "ldap" (see raddb/mods-available/README.rst)
> # Loading post-proxy {...}
> # Loading post-auth {...}
> # Skipping contents of 'if' as it is always 'false' --
> /etc/freeradius/sites-enabled/inner-tunnel:366
> Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
> } # server inner-tunnel
> radiusd: #### Opening IP addresses and Ports ####
> listen {
> type = "auth"
> ipaddr = 127.0.0.1
> port = 18123
> }
> listen {
> type = "auth"
> ipaddr = *
> port = 1812
> limit {
> max_connections = 16
> lifetime = 0
> idle_timeout = 900
> }
> }
> listen {
> type = "acct"
> ipaddr = *
> port = 1813
> limit {
> max_connections = 16
> lifetime = 0
> idle_timeout = 30
> }
> }
> listen {
> type = "auth"
> ipv6addr = ::
> port = 1812
> limit {
> max_connections = 16
> lifetime = 0
> idle_timeout = 30
> }
> }
> listen {
> type = "acct"
> ipv6addr = ::
> port = 1813
> limit {
> max_connections = 16
> lifetime = 0
> idle_timeout = 30
> }
> }
> listen {
> type = "auth"
> ipaddr = 127.0.0.1
> port = 18120
> }
> Listening on auth address 127.0.0.1 port 18123 bound to server
> google-ldap-auth
> 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 43959
> Listening on proxy address :: port 57843
> Ready to process requests
> (0) Received Access-Request Id 7 from 71.59.46.3:50614 to
> 172.17.0.2:1812 length 279
> (0) User-Name = "radiustest at thecampusway.com"
> (0) NAS-IP-Address = 10.0.10.44
> (0) NAS-Identifier = "default"
> (0) Called-Station-Id = "78-8A-20-58-6E-4E:CampusInternal"
> (0) NAS-Port-Type = Wireless-802.11
> (0) Service-Type = Framed-User
> (0) Calling-Station-Id = "30-35-AD-A5-B9-A6"
> (0) Connect-Info = "CONNECT 0Mbps 802.11b"
> (0) Acct-Session-Id = "2CD80055E5E3D815"
> (0) Acct-Multi-Session-Id = "C462484392D6AC24"
> (0) WLAN-Pairwise-Cipher = 1027076
> (0) WLAN-Group-Cipher = 1027076
> (0) WLAN-AKM-Suite = 1027077
> (0) WLAN-Group-Mgmt-Cipher = 1027078
> (0) Filter-Id = "wpa-eap"
> (0) Framed-MTU = 1002
> (0) EAP-Message =
> 0x0223002001726164697573746573744074686563616d7075737761792e636f6d
> (0) Message-Authenticator = 0x99176599a9049015a131259af64cb46e
> (0) # Executing section authorize from file
> /etc/freeradius/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 !~ /@(.+)\.(.+)$/)) {
> (0) if ((&User-Name =~ /@/) && (&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) = notfound
> (0) } # policy filter_username = notfound
> (0) [preprocess] = ok
> (0) auth_log: EXPAND
>
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
> (0) auth_log: -->
> /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (0) auth_log:
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
>
> expands to /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (0) auth_log: EXPAND %t
> (0) auth_log: --> Tue Jul 8 17:06:54 2025
> (0) [auth_log] = ok
> (0) [chap] = noop
> (0) [mschap] = noop
> (0) [digest] = noop
> (0) policy rewrite_called_station_id {
> (0) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (0) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> -> TRUE
> (0) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (0) update request {
> (0) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
> (0) --> 78-8A-20-58-6E-4E
> (0) &Called-Station-Id := 78-8A-20-58-6E-4E
> (0) EXPAND 0x%{toupper:%{1}%{2}%{3}%{4}%{5}%{6}}
> (0) --> 0x788A20586E4E
> (0) &Called-Station-MAC := 0x788a20586e4e
> (0) } # update request = noop
> (0) if ("%{8}") {
> (0) EXPAND %{8}
> (0) --> CampusInternal
> (0) if ("%{8}") -> TRUE
> (0) if ("%{8}") {
> (0) update request {
> (0) EXPAND %{8}
> (0) --> CampusInternal
> (0) &Called-Station-SSID := CampusInternal
> (0) } # update request = noop
> (0) } # if ("%{8}") = noop
> (0) [updated] = updated
> (0) } # if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> = updated
> (0) ... skipping else: Preceding "if" was taken
> (0) } # policy rewrite_called_station_id = updated
> (0) suffix: Checking for suffix after "@"
> (0) suffix: Looking up realm "thecampusway.com" for User-Name =
> "radiustest at thecampusway.com"
> (0) suffix: No such realm "thecampusway.com"
> (0) [suffix] = noop
> (0) eap: Peer sent EAP Response (code 2) ID 35 length 32
> (0) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the
> rest of authorize
> (0) [eap] = ok
> (0) } # authorize = ok
> (0) Found Auth-Type = eap
> (0) # Executing group from file /etc/freeradius/sites-enabled/default
> (0) authenticate {
> (0) eap: Peer sent packet with method EAP Identity (1)
> (0) eap: Using default_eap_type = TTLS
> (0) eap: Calling submodule eap_ttls to process data
> (0) eap_ttls: (TLS) TTLS -Initiating new session
> (0) eap: Sending EAP Request (code 1) ID 36 length 6
> (0) eap: EAP session adding &reply:State = 0x03aa1051038e0583
> (0) [eap] = handled
> (0) } # authenticate = handled
> (0) Using Post-Auth-Type Challenge
> (0) # Executing group from file /etc/freeradius/sites-enabled/default
> (0) Challenge { ... } # empty sub-section is ignored
> (0) session-state: Saving cached attributes
> (0) Framed-MTU = 994
> (0) Sent Access-Challenge Id 7 from 172.17.0.2:1812 to 71.59.46.3:50614
> length 64
> (0) EAP-Message = 0x012400061520
> (0) Message-Authenticator = 0x00000000000000000000000000000000
> (0) State = 0x03aa1051038e0583178612c213b1973d
> (0) Finished request
> Waking up in 4.9 seconds.
> (1) Received Access-Request Id 8 from 71.59.46.3:50614 to
> 172.17.0.2:1812 length 426
> (1) User-Name = "radiustest at thecampusway.com"
> (1) NAS-IP-Address = 10.0.10.44
> (1) NAS-Identifier = "default"
> (1) Called-Station-Id = "78-8A-20-58-6E-4E:CampusInternal"
> (1) NAS-Port-Type = Wireless-802.11
> (1) Service-Type = Framed-User
> (1) Calling-Station-Id = "30-35-AD-A5-B9-A6"
> (1) Connect-Info = "CONNECT 0Mbps 802.11b"
> (1) Acct-Session-Id = "2CD80055E5E3D815"
> (1) Acct-Multi-Session-Id = "C462484392D6AC24"
> (1) WLAN-Pairwise-Cipher = 1027076
> (1) WLAN-Group-Cipher = 1027076
> (1) WLAN-AKM-Suite = 1027077
> (1) WLAN-Group-Mgmt-Cipher = 1027078
> (1) Filter-Id = "wpa-eap"
> (1) Framed-MTU = 1002
> (1) EAP-Message =
>
> 0x022400a115800000009716030100920100008e0303686d502e471b6ec9eeeadb59cbb76ec7ef7cb1fa459defde87ba81a8f1cae83700002c00ffc02cc02bc024c023c00ac009c008c030c02fc028c027c014c013c012009d009c003d003c0035002f000a01000039000a00080006001700180019000b00020100000d00120010040102010501060104030203050306030005000501000000000012000000170000
> (1) State = 0x03aa1051038e0583178612c213b1973d
> (1) Message-Authenticator = 0x1771f89eede34a34666acd191581c527
> (1) Restoring &session-state
> (1) &session-state:Framed-MTU = 994
> (1) # Executing section authorize from file
> /etc/freeradius/sites-enabled/default
> (1) authorize {
> (1) policy filter_username {
> (1) if (&User-Name) {
> (1) if (&User-Name) -> TRUE
> (1) if (&User-Name) {
> (1) if (&User-Name =~ / /) {
> (1) if (&User-Name =~ / /) -> FALSE
> (1) if (&User-Name =~ /@[^@]*@/ ) {
> (1) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
> (1) if (&User-Name =~ /\.\./ ) {
> (1) if (&User-Name =~ /\.\./ ) -> FALSE
> (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
> (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
> -> FALSE
> (1) if (&User-Name =~ /\.$/) {
> (1) if (&User-Name =~ /\.$/) -> FALSE
> (1) if (&User-Name =~ /@\./) {
> (1) if (&User-Name =~ /@\./) -> FALSE
> (1) } # if (&User-Name) = notfound
> (1) } # policy filter_username = notfound
> (1) [preprocess] = ok
> (1) auth_log: EXPAND
>
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
> (1) auth_log: -->
> /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (1) auth_log:
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
>
> expands to /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (1) auth_log: EXPAND %t
> (1) auth_log: --> Tue Jul 8 17:06:54 2025
> (1) [auth_log] = ok
> (1) [chap] = noop
> (1) [mschap] = noop
> (1) [digest] = noop
> (1) policy rewrite_called_station_id {
> (1) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (1) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> -> TRUE
> (1) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (1) update request {
> (1) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
> (1) --> 78-8A-20-58-6E-4E
> (1) &Called-Station-Id := 78-8A-20-58-6E-4E
> (1) EXPAND 0x%{toupper:%{1}%{2}%{3}%{4}%{5}%{6}}
> (1) --> 0x788A20586E4E
> (1) &Called-Station-MAC := 0x788a20586e4e
> (1) } # update request = noop
> (1) if ("%{8}") {
> (1) EXPAND %{8}
> (1) --> CampusInternal
> (1) if ("%{8}") -> TRUE
> (1) if ("%{8}") {
> (1) update request {
> (1) EXPAND %{8}
> (1) --> CampusInternal
> (1) &Called-Station-SSID := CampusInternal
> (1) } # update request = noop
> (1) } # if ("%{8}") = noop
> (1) [updated] = updated
> (1) } # if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> = updated
> (1) ... skipping else: Preceding "if" was taken
> (1) } # policy rewrite_called_station_id = updated
> (1) suffix: Checking for suffix after "@"
> (1) suffix: Looking up realm "thecampusway.com" for User-Name =
> "radiustest at thecampusway.com"
> (1) suffix: No such realm "thecampusway.com"
> (1) [suffix] = noop
> (1) eap: Peer sent EAP Response (code 2) ID 36 length 161
> (1) eap: Continuing tunnel setup
> (1) [eap] = ok
> (1) } # authorize = ok
> (1) Found Auth-Type = eap
> (1) # Executing group from file /etc/freeradius/sites-enabled/default
> (1) authenticate {
> (1) eap: Removing EAP session with state 0x03aa1051038e0583
> (1) eap: Previous EAP request found for state 0x03aa1051038e0583,
> released from the list
> (1) eap: Peer sent packet with method EAP TTLS (21)
> (1) eap: Calling submodule eap_ttls to process data
> (1) eap_ttls: Authenticate
> (1) eap_ttls: (TLS) EAP Peer says that the final record size will be 151
> bytes
> (1) eap_ttls: (TLS) EAP Got all data (151 bytes)
> (1) eap_ttls: (TLS) TTLS - Handshake state - before SSL initialization
> (1) eap_ttls: (TLS) TTLS - Handshake state - Server before SSL
> initialization
> (1) eap_ttls: (TLS) TTLS - Handshake state - Server before SSL
> initialization
> (1) eap_ttls: (TLS) TTLS - recv TLS 1.3 Handshake, ClientHello
> (1) eap_ttls: (TLS) TTLS - Handshake state - Server SSLv3/TLS read
> client hello
> (1) eap_ttls: (TLS) TTLS - send TLS 1.2 Handshake, ServerHello
> (1) eap_ttls: (TLS) TTLS - Handshake state - Server SSLv3/TLS write
> server hello
> (1) eap_ttls: (TLS) TTLS - send TLS 1.2 Handshake, Certificate
> (1) eap_ttls: (TLS) TTLS - Handshake state - Server SSLv3/TLS write
> certificate
> (1) eap_ttls: (TLS) TTLS - send TLS 1.2 Handshake, ServerKeyExchange
> (1) eap_ttls: (TLS) TTLS - Handshake state - Server SSLv3/TLS write key
> exchange
> (1) eap_ttls: (TLS) TTLS - send TLS 1.2 Handshake, ServerHelloDone
> (1) eap_ttls: (TLS) TTLS - Handshake state - Server SSLv3/TLS write
> server done
> (1) eap_ttls: (TLS) TTLS - Server : Need to read more data: SSLv3/TLS
> write server done
> (1) eap_ttls: (TLS) TTLS - In Handshake Phase
> (1) eap: Sending EAP Request (code 1) ID 37 length 1000
> (1) eap: EAP session adding &reply:State = 0x03aa1051028f0583
> (1) [eap] = handled
> (1) } # authenticate = handled
> (1) Using Post-Auth-Type Challenge
> (1) # Executing group from file /etc/freeradius/sites-enabled/default
> (1) Challenge { ... } # empty sub-section is ignored
> (1) session-state: Saving cached attributes
> (1) Framed-MTU = 994
> (1) TLS-Session-Information = "(TLS) TTLS - recv TLS 1.3 Handshake,
> ClientHello"
> (1) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerHello"
> (1) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> Certificate"
> (1) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerKeyExchange"
> (1) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerHelloDone"
> (1) Sent Access-Challenge Id 8 from 172.17.0.2:1812 to 71.59.46.3:50614
> length 1064
> (1) EAP-Message =
>
> 0x012503e815c000000b9e160303005d02000059030386ec205ce0daf23042da63f9fb8c7297e6cd39e952194965444f574e47524401204d51560031fda57dc5cdbc1e121c6f4529b6925c897065fd9a361a3a00c33ef8c030000011ff01000100000b0004030001020017000016030309dc0b0009d80009d500049e3082049a30820382a003020102020101300d06092a864886f70d01010b05003081a4310b30090603550406130255533110300e06035504080c0747656f726769613117301506035504070c0e506561636874726565204369747931183016060355040a0c0f5468652043616d7075732c204c4c433125302306092a864886f70d010901161661646d696e4074686563616d7075737761792e636f6d3129302706035504030c205468652043616d70757320436572746966696361746520417574686f72697479301e170d3235303632343230333635365a170d3236303632343230333635365a308181310b30090603550406130255533110300e0603
> (1) Message-Authenticator = 0x00000000000000000000000000000000
> (1) State = 0x03aa1051028f0583178612c213b1973d
> (1) Finished request
> Waking up in 4.9 seconds.
> (2) Received Access-Request Id 9 from 71.59.46.3:50614 to
> 172.17.0.2:1812 length 271
> (2) User-Name = "radiustest at thecampusway.com"
> (2) NAS-IP-Address = 10.0.10.44
> (2) NAS-Identifier = "default"
> (2) Called-Station-Id = "78-8A-20-58-6E-4E:CampusInternal"
> (2) NAS-Port-Type = Wireless-802.11
> (2) Service-Type = Framed-User
> (2) Calling-Station-Id = "30-35-AD-A5-B9-A6"
> (2) Connect-Info = "CONNECT 0Mbps 802.11b"
> (2) Acct-Session-Id = "2CD80055E5E3D815"
> (2) Acct-Multi-Session-Id = "C462484392D6AC24"
> (2) WLAN-Pairwise-Cipher = 1027076
> (2) WLAN-Group-Cipher = 1027076
> (2) WLAN-AKM-Suite = 1027077
> (2) WLAN-Group-Mgmt-Cipher = 1027078
> (2) Filter-Id = "wpa-eap"
> (2) Framed-MTU = 1002
> (2) EAP-Message = 0x022500061500
> (2) State = 0x03aa1051028f0583178612c213b1973d
> (2) Message-Authenticator = 0xc06f6349e2aa457f3ba04bf1b4094885
> (2) Restoring &session-state
> (2) &session-state:Framed-MTU = 994
> (2) &session-state:TLS-Session-Information = "(TLS) TTLS - recv TLS
> 1.3 Handshake, ClientHello"
> (2) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, ServerHello"
> (2) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, Certificate"
> (2) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, ServerKeyExchange"
> (2) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, ServerHelloDone"
> (2) # Executing section authorize from file
> /etc/freeradius/sites-enabled/default
> (2) authorize {
> (2) policy filter_username {
> (2) if (&User-Name) {
> (2) if (&User-Name) -> TRUE
> (2) if (&User-Name) {
> (2) if (&User-Name =~ / /) {
> (2) if (&User-Name =~ / /) -> FALSE
> (2) if (&User-Name =~ /@[^@]*@/ ) {
> (2) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
> (2) if (&User-Name =~ /\.\./ ) {
> (2) if (&User-Name =~ /\.\./ ) -> FALSE
> (2) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
> (2) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
> -> FALSE
> (2) if (&User-Name =~ /\.$/) {
> (2) if (&User-Name =~ /\.$/) -> FALSE
> (2) if (&User-Name =~ /@\./) {
> (2) if (&User-Name =~ /@\./) -> FALSE
> (2) } # if (&User-Name) = notfound
> (2) } # policy filter_username = notfound
> (2) [preprocess] = ok
> (2) auth_log: EXPAND
>
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
> (2) auth_log: -->
> /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (2) auth_log:
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
>
> expands to /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (2) auth_log: EXPAND %t
> (2) auth_log: --> Tue Jul 8 17:06:54 2025
> (2) [auth_log] = ok
> (2) [chap] = noop
> (2) [mschap] = noop
> (2) [digest] = noop
> (2) policy rewrite_called_station_id {
> (2) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (2) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> -> TRUE
> (2) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (2) update request {
> (2) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
> (2) --> 78-8A-20-58-6E-4E
> (2) &Called-Station-Id := 78-8A-20-58-6E-4E
> (2) EXPAND 0x%{toupper:%{1}%{2}%{3}%{4}%{5}%{6}}
> (2) --> 0x788A20586E4E
> (2) &Called-Station-MAC := 0x788a20586e4e
> (2) } # update request = noop
> (2) if ("%{8}") {
> (2) EXPAND %{8}
> (2) --> CampusInternal
> (2) if ("%{8}") -> TRUE
> (2) if ("%{8}") {
> (2) update request {
> (2) EXPAND %{8}
> (2) --> CampusInternal
> (2) &Called-Station-SSID := CampusInternal
> (2) } # update request = noop
> (2) } # if ("%{8}") = noop
> (2) [updated] = updated
> (2) } # if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> = updated
> (2) ... skipping else: Preceding "if" was taken
> (2) } # policy rewrite_called_station_id = updated
> (2) suffix: Checking for suffix after "@"
> (2) suffix: Looking up realm "thecampusway.com" for User-Name =
> "radiustest at thecampusway.com"
> (2) suffix: No such realm "thecampusway.com"
> (2) [suffix] = noop
> (2) eap: Peer sent EAP Response (code 2) ID 37 length 6
> (2) eap: Continuing tunnel setup
> (2) [eap] = ok
> (2) } # authorize = ok
> (2) Found Auth-Type = eap
> (2) # Executing group from file /etc/freeradius/sites-enabled/default
> (2) authenticate {
> (2) eap: Removing EAP session with state 0x03aa1051028f0583
> (2) eap: Previous EAP request found for state 0x03aa1051028f0583,
> released from the list
> (2) eap: Peer sent packet with method EAP TTLS (21)
> (2) eap: Calling submodule eap_ttls to process data
> (2) eap_ttls: Authenticate
> (2) eap_ttls: (TLS) Peer ACKed our handshake fragment
> (2) eap: Sending EAP Request (code 1) ID 38 length 1000
> (2) eap: EAP session adding &reply:State = 0x03aa1051018c0583
> (2) [eap] = handled
> (2) } # authenticate = handled
> (2) Using Post-Auth-Type Challenge
> (2) # Executing group from file /etc/freeradius/sites-enabled/default
> (2) Challenge { ... } # empty sub-section is ignored
> (2) session-state: Saving cached attributes
> (2) Framed-MTU = 994
> (2) TLS-Session-Information = "(TLS) TTLS - recv TLS 1.3 Handshake,
> ClientHello"
> (2) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerHello"
> (2) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> Certificate"
> (2) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerKeyExchange"
> (2) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerHelloDone"
> (2) Sent Access-Challenge Id 9 from 172.17.0.2:1812 to 71.59.46.3:50614
> length 1064
> (2) EAP-Message =
>
> 0x012603e815c000000b9e551d23041830168014daadca16512273368faeee38e3d1448d166bf928300d06092a864886f70d01010b050003820101001778615f4e67853c306a035d59f5b19f9e78ffeac70a76e18f5022a5907dbc2e37291333d8d0592698632662d9d8e33601a46a0b9193ac86c60487d4d9a0fdb47bc36ca4a9df0537d61eaa6645f1b4815362105cbcc8a7fdffc1e5c909d16ab4c55bef8abb78c4abf703fb70c5233e2f17e2872dc11b30d2264df6398615c6ddb3c6e4d484b11134e73779a853dc0a3a1c83396d979ddd74c188d14a6602009a57f1cd9060fc421372d6daa1134515ff124d47adab6017f8a3793bfda9baf3b47f31d37d743232c82e50c97125ce3684e6b1aa39720f907b5ccdcfddee967daa37e783b7e70cb342837cb95d55570d509daef58e0d892216d1cd01d09c9354c30005313082052d30820415a003020102021453b0418eacdfd3ef23e70a35243230ee4b124c8d300d06092a864886f70d01010b05003081a4310b3009
> (2) Message-Authenticator = 0x00000000000000000000000000000000
> (2) State = 0x03aa1051018c0583178612c213b1973d
> (2) Finished request
> Waking up in 4.9 seconds.
> (3) Received Access-Request Id 10 from 71.59.46.3:50614 to
> 172.17.0.2:1812 length 271
> (3) User-Name = "radiustest at thecampusway.com"
> (3) NAS-IP-Address = 10.0.10.44
> (3) NAS-Identifier = "default"
> (3) Called-Station-Id = "78-8A-20-58-6E-4E:CampusInternal"
> (3) NAS-Port-Type = Wireless-802.11
> (3) Service-Type = Framed-User
> (3) Calling-Station-Id = "30-35-AD-A5-B9-A6"
> (3) Connect-Info = "CONNECT 0Mbps 802.11b"
> (3) Acct-Session-Id = "2CD80055E5E3D815"
> (3) Acct-Multi-Session-Id = "C462484392D6AC24"
> (3) WLAN-Pairwise-Cipher = 1027076
> (3) WLAN-Group-Cipher = 1027076
> (3) WLAN-AKM-Suite = 1027077
> (3) WLAN-Group-Mgmt-Cipher = 1027078
> (3) Filter-Id = "wpa-eap"
> (3) Framed-MTU = 1002
> (3) EAP-Message = 0x022600061500
> (3) State = 0x03aa1051018c0583178612c213b1973d
> (3) Message-Authenticator = 0xf938181e70d289aaa9c97c49842228ee
> (3) Restoring &session-state
> (3) &session-state:Framed-MTU = 994
> (3) &session-state:TLS-Session-Information = "(TLS) TTLS - recv TLS
> 1.3 Handshake, ClientHello"
> (3) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, ServerHello"
> (3) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, Certificate"
> (3) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, ServerKeyExchange"
> (3) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, ServerHelloDone"
> (3) # Executing section authorize from file
> /etc/freeradius/sites-enabled/default
> (3) authorize {
> (3) policy filter_username {
> (3) if (&User-Name) {
> (3) if (&User-Name) -> TRUE
> (3) if (&User-Name) {
> (3) if (&User-Name =~ / /) {
> (3) if (&User-Name =~ / /) -> FALSE
> (3) if (&User-Name =~ /@[^@]*@/ ) {
> (3) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
> (3) if (&User-Name =~ /\.\./ ) {
> (3) if (&User-Name =~ /\.\./ ) -> FALSE
> (3) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
> (3) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
> -> FALSE
> (3) if (&User-Name =~ /\.$/) {
> (3) if (&User-Name =~ /\.$/) -> FALSE
> (3) if (&User-Name =~ /@\./) {
> (3) if (&User-Name =~ /@\./) -> FALSE
> (3) } # if (&User-Name) = notfound
> (3) } # policy filter_username = notfound
> (3) [preprocess] = ok
> (3) auth_log: EXPAND
>
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
> (3) auth_log: -->
> /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (3) auth_log:
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
>
> expands to /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (3) auth_log: EXPAND %t
> (3) auth_log: --> Tue Jul 8 17:06:54 2025
> (3) [auth_log] = ok
> (3) [chap] = noop
> (3) [mschap] = noop
> (3) [digest] = noop
> (3) policy rewrite_called_station_id {
> (3) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (3) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> -> TRUE
> (3) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (3) update request {
> (3) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
> (3) --> 78-8A-20-58-6E-4E
> (3) &Called-Station-Id := 78-8A-20-58-6E-4E
> (3) EXPAND 0x%{toupper:%{1}%{2}%{3}%{4}%{5}%{6}}
> (3) --> 0x788A20586E4E
> (3) &Called-Station-MAC := 0x788a20586e4e
> (3) } # update request = noop
> (3) if ("%{8}") {
> (3) EXPAND %{8}
> (3) --> CampusInternal
> (3) if ("%{8}") -> TRUE
> (3) if ("%{8}") {
> (3) update request {
> (3) EXPAND %{8}
> (3) --> CampusInternal
> (3) &Called-Station-SSID := CampusInternal
> (3) } # update request = noop
> (3) } # if ("%{8}") = noop
> (3) [updated] = updated
> (3) } # if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> = updated
> (3) ... skipping else: Preceding "if" was taken
> (3) } # policy rewrite_called_station_id = updated
> (3) suffix: Checking for suffix after "@"
> (3) suffix: Looking up realm "thecampusway.com" for User-Name =
> "radiustest at thecampusway.com"
> (3) suffix: No such realm "thecampusway.com"
> (3) [suffix] = noop
> (3) eap: Peer sent EAP Response (code 2) ID 38 length 6
> (3) eap: Continuing tunnel setup
> (3) [eap] = ok
> (3) } # authorize = ok
> (3) Found Auth-Type = eap
> (3) # Executing group from file /etc/freeradius/sites-enabled/default
> (3) authenticate {
> (3) eap: Removing EAP session with state 0x03aa1051018c0583
> (3) eap: Previous EAP request found for state 0x03aa1051018c0583,
> released from the list
> (3) eap: Peer sent packet with method EAP TTLS (21)
> (3) eap: Calling submodule eap_ttls to process data
> (3) eap_ttls: Authenticate
> (3) eap_ttls: (TLS) Peer ACKed our handshake fragment
> (3) eap: Sending EAP Request (code 1) ID 39 length 1000
> (3) eap: EAP session adding &reply:State = 0x03aa1051008d0583
> (3) [eap] = handled
> (3) } # authenticate = handled
> (3) Using Post-Auth-Type Challenge
> (3) # Executing group from file /etc/freeradius/sites-enabled/default
> (3) Challenge { ... } # empty sub-section is ignored
> (3) session-state: Saving cached attributes
> (3) Framed-MTU = 994
> (3) TLS-Session-Information = "(TLS) TTLS - recv TLS 1.3 Handshake,
> ClientHello"
> (3) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerHello"
> (3) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> Certificate"
> (3) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerKeyExchange"
> (3) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerHelloDone"
> (3) Sent Access-Challenge Id 10 from 172.17.0.2:1812 to 71.59.46.3:50614
> length 1064
> (3) EAP-Message =
>
> 0x012703e815c000000b9ebcf130fd82a66d6bac241c75a83cb5eab479b81361e8610203010001a38201533082014f301d0603551d0e04160414daadca16512273368faeee38e3d1448d166bf9283081e40603551d230481dc3081d98014daadca16512273368faeee38e3d1448d166bf928a181aaa481a73081a4310b30090603550406130255533110300e06035504080c0747656f726769613117301506035504070c0e506561636874726565204369747931183016060355040a0c0f5468652043616d7075732c204c4c433125302306092a864886f70d010901161661646d696e4074686563616d7075737761792e636f6d3129302706035504030c205468652043616d70757320436572746966696361746520417574686f72697479821453b0418eacdfd3ef23e70a35243230ee4b124c8d300f0603551d130101ff040530030101ff30360603551d1f042f302d302ba029a0278625687474703a2f2f7777772e6578616d706c652e6f72672f6578616d706c655f
> (3) Message-Authenticator = 0x00000000000000000000000000000000
> (3) State = 0x03aa1051008d0583178612c213b1973d
> (3) Finished request
> Waking up in 4.8 seconds.
> (4) Received Access-Request Id 11 from 71.59.46.3:50614 to
> 172.17.0.2:1812 length 271
> (4) User-Name = "radiustest at thecampusway.com"
> (4) NAS-IP-Address = 10.0.10.44
> (4) NAS-Identifier = "default"
> (4) Called-Station-Id = "78-8A-20-58-6E-4E:CampusInternal"
> (4) NAS-Port-Type = Wireless-802.11
> (4) Service-Type = Framed-User
> (4) Calling-Station-Id = "30-35-AD-A5-B9-A6"
> (4) Connect-Info = "CONNECT 0Mbps 802.11b"
> (4) Acct-Session-Id = "2CD80055E5E3D815"
> (4) Acct-Multi-Session-Id = "C462484392D6AC24"
> (4) WLAN-Pairwise-Cipher = 1027076
> (4) WLAN-Group-Cipher = 1027076
> (4) WLAN-AKM-Suite = 1027077
> (4) WLAN-Group-Mgmt-Cipher = 1027078
> (4) Filter-Id = "wpa-eap"
> (4) Framed-MTU = 1002
> (4) EAP-Message = 0x022700061500
> (4) State = 0x03aa1051008d0583178612c213b1973d
> (4) Message-Authenticator = 0x71f254904fce529fa0fc4e9fe4e0420e
> (4) Restoring &session-state
> (4) &session-state:Framed-MTU = 994
> (4) &session-state:TLS-Session-Information = "(TLS) TTLS - recv TLS
> 1.3 Handshake, ClientHello"
> (4) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, ServerHello"
> (4) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, Certificate"
> (4) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, ServerKeyExchange"
> (4) &session-state:TLS-Session-Information = "(TLS) TTLS - send TLS
> 1.2 Handshake, ServerHelloDone"
> (4) # Executing section authorize from file
> /etc/freeradius/sites-enabled/default
> (4) authorize {
> (4) policy filter_username {
> (4) if (&User-Name) {
> (4) if (&User-Name) -> TRUE
> (4) if (&User-Name) {
> (4) if (&User-Name =~ / /) {
> (4) if (&User-Name =~ / /) -> FALSE
> (4) if (&User-Name =~ /@[^@]*@/ ) {
> (4) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
> (4) if (&User-Name =~ /\.\./ ) {
> (4) if (&User-Name =~ /\.\./ ) -> FALSE
> (4) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
> (4) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
> -> FALSE
> (4) if (&User-Name =~ /\.$/) {
> (4) if (&User-Name =~ /\.$/) -> FALSE
> (4) if (&User-Name =~ /@\./) {
> (4) if (&User-Name =~ /@\./) -> FALSE
> (4) } # if (&User-Name) = notfound
> (4) } # policy filter_username = notfound
> (4) [preprocess] = ok
> (4) auth_log: EXPAND
>
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
> (4) auth_log: -->
> /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (4) auth_log:
> /var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
>
> expands to /var/log/freeradius/radacct/71.59.46.3/auth-detail-20250708
> (4) auth_log: EXPAND %t
> (4) auth_log: --> Tue Jul 8 17:06:54 2025
> (4) [auth_log] = ok
> (4) [chap] = noop
> (4) [mschap] = noop
> (4) [digest] = noop
> (4) policy rewrite_called_station_id {
> (4) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (4) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> -> TRUE
> (4) if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> {
> (4) update request {
> (4) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
> (4) --> 78-8A-20-58-6E-4E
> (4) &Called-Station-Id := 78-8A-20-58-6E-4E
> (4) EXPAND 0x%{toupper:%{1}%{2}%{3}%{4}%{5}%{6}}
> (4) --> 0x788A20586E4E
> (4) &Called-Station-MAC := 0x788a20586e4e
> (4) } # update request = noop
> (4) if ("%{8}") {
> (4) EXPAND %{8}
> (4) --> CampusInternal
> (4) if ("%{8}") -> TRUE
> (4) if ("%{8}") {
> (4) update request {
> (4) EXPAND %{8}
> (4) --> CampusInternal
> (4) &Called-Station-SSID := CampusInternal
> (4) } # update request = noop
> (4) } # if ("%{8}") = noop
> (4) [updated] = updated
> (4) } # if (&Called-Station-Id && (&Called-Station-Id =~
> /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i))
>
> = updated
> (4) ... skipping else: Preceding "if" was taken
> (4) } # policy rewrite_called_station_id = updated
> (4) suffix: Checking for suffix after "@"
> (4) suffix: Looking up realm "thecampusway.com" for User-Name =
> "radiustest at thecampusway.com"
> (4) suffix: No such realm "thecampusway.com"
> (4) [suffix] = noop
> (4) eap: Peer sent EAP Response (code 2) ID 39 length 6
> (4) eap: Continuing tunnel setup
> (4) [eap] = ok
> (4) } # authorize = ok
> (4) Found Auth-Type = eap
> (4) # Executing group from file /etc/freeradius/sites-enabled/default
> (4) authenticate {
> (4) eap: Removing EAP session with state 0x03aa1051008d0583
> (4) eap: Previous EAP request found for state 0x03aa1051008d0583,
> released from the list
> (4) eap: Peer sent packet with method EAP TTLS (21)
> (4) eap: Calling submodule eap_ttls to process data
> (4) eap_ttls: Authenticate
> (4) eap_ttls: (TLS) Peer ACKed our handshake fragment
> (4) eap: Sending EAP Request (code 1) ID 40 length 14
> (4) eap: EAP session adding &reply:State = 0x03aa105107820583
> (4) [eap] = handled
> (4) } # authenticate = handled
> (4) Using Post-Auth-Type Challenge
> (4) # Executing group from file /etc/freeradius/sites-enabled/default
> (4) Challenge { ... } # empty sub-section is ignored
> (4) session-state: Saving cached attributes
> (4) Framed-MTU = 994
> (4) TLS-Session-Information = "(TLS) TTLS - recv TLS 1.3 Handshake,
> ClientHello"
> (4) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerHello"
> (4) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> Certificate"
> (4) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerKeyExchange"
> (4) TLS-Session-Information = "(TLS) TTLS - send TLS 1.2 Handshake,
> ServerHelloDone"
> (4) Sent Access-Challenge Id 11 from 172.17.0.2:1812 to 71.59.46.3:50614
> length 72
> (4) EAP-Message = 0x0128000e158000000b9e0e000000
> (4) Message-Authenticator = 0x00000000000000000000000000000000
> (4) State = 0x03aa105107820583178612c213b1973d
> (4) Finished request
> Waking up in 4.8 seconds.
> (5) Received Access-Request Id 12 from 71.59.46.3:50614 to
> 172.17.0.2:1812 length 401
> (5) User-Name = "radiustest at thecampusway.com"
> (5) NAS-IP-Address = 10.0.10.44
> (5) NAS-Identifier = "default"
> (5) Called-Station-Id = "78-8A-20-58-6E-4E:CampusInternal"
> (5) NAS-Port-Type = Wireless-802.11
> (5) Service-Type = Framed-User
> (5) Calling-Station-Id = "30-35-AD-A5-B9-A6"
> (5) Connect-Info = "CONNECT 0Mbps 802.11b"
> (5) Acct-Session-Id = "2CD80055E5E3D815"
> (5) Acct-Multi-Session-Id = "C462484392D6AC24"
> (5) WLAN-Pairwise-Cipher = 1027076
> (5) WLAN-Group-Cipher = 1027076
> (5) WLAN-AKM-Suite = 1027077
> (5) WLAN-Group-Mgmt-Cipher = 1027078
> (5) Filter-Id = "wpa-eap"
> (5) Framed-MTU = 1002
> (5) EAP-Message =
>
> 0x0228008815800000007e1603030046100000424104f87f7bdd5321da1823aaedf3cd09d62b6e5d21256c9099da611acbae6d8d1723ab1f895e34a14f549ad6a9172d7166bccf01d2eaf59748b1d89f3e0017e8dcf314030300010116030300287008d26c1da49b8327023ccbee1e649fb5f095b37bc5a5a14e41e0478fce1a9026e5999184b3920d
> (5) State = 0x03aa105107820583178612c213b1973d
> (5) Message-Authenticator = 0x96854403b1ef6d478ee71a044a447b6e
> (5) Re
More information about the Freeradius-Users
mailing list