FreeRadius and FreeIpa integration not working in our Lab setup
Krishna Chaitanya
krishna.chaitanya at qi-cap.com
Fri Jul 15 04:01:57 UTC 2022
Looks like I found the reason, the issue is because the wireless router is
not added in the cd /etc/raddb/client.conf file.
And I can see the radtest requests are getting accepted by the Freeradius
server for the user profiles on FreeIPA Directory as shown below.
====================================================================================================
krishna at QICAP:~$ radtest radius Freeip at 1234 122.1.5.84 1812 testing123
Sent Access-Request Id 50 from 0.0.0.0:43213 to 122.1.5.84:1812 length 76
User-Name = "radius"
User-Password = "Freeip at 1234"
NAS-IP-Address = 127.0.1.1
NAS-Port = 1812
Message-Authenticator = 0x00
Cleartext-Password = "Freeip at 1234"
Received Access-Accept Id 50 from 122.1.5.84:1812 to 122.1.5.136:43213
length 20
===================================================================================
However, when a user is trying to authenticate to wireless services,
getting a debug report as below and connection to wireless is failing:
---------------------------------------------------------------------------------------------------------------------------
(146) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 125
(146) User-Name = "radius"
(146) NAS-IP-Address = 122.1.5.89
(146) Called-Station-Id = "d45d6478fb58"
(146) Calling-Station-Id = "bc17b8e0bb04"
(146) NAS-Identifier = "d45d6478fb58"
(146) NAS-Port = 95
(146) Framed-MTU = 1400
(146) NAS-Port-Type = Wireless-802.11
(146) EAP-Message = 0x0200000b01726164697573
(146) Message-Authenticator = 0xc3197818dbeb318eb955862e583cae95
(146) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(146) authorize {
(146) policy filter_username {
(146) if (&User-Name) {
(146) if (&User-Name) -> TRUE
(146) if (&User-Name) {
(146) if (&User-Name =~ / /) {
(146) if (&User-Name =~ / /) -> FALSE
(146) if (&User-Name =~ /@[^@]*@/ ) {
(146) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(146) if (&User-Name =~ /\.\./ ) {
(146) if (&User-Name =~ /\.\./ ) -> FALSE
(146) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(146) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(146) if (&User-Name =~ /\.$/) {
(146) if (&User-Name =~ /\.$/) -> FALSE
(146) if (&User-Name =~ /@\./) {
(146) if (&User-Name =~ /@\./) -> FALSE
(146) } # if (&User-Name) = notfound
(146) } # policy filter_username = notfound
(146) [preprocess] = ok
(146) [chap] = noop
(146) [mschap] = noop
(146) [digest] = noop
(146) suffix: Checking for suffix after "@"
(146) suffix: No '@' in User-Name = "radius", looking up realm NULL
(146) suffix: No such realm "NULL"
(146) [suffix] = noop
(146) eap: Peer sent EAP Response (code 2) ID 0 length 11
(146) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the
rest of authorize
(146) [eap] = ok
(146) } # authorize = ok
(146) Found Auth-Type = eap
(146) # Executing group from file /etc/raddb/sites-enabled/default
(146) authenticate {
(146) eap: Peer sent packet with method EAP Identity (1)
(146) eap: Calling submodule eap_md5 to process data
(146) eap_md5: Issuing MD5 Challenge
(146) eap: Sending EAP Request (code 1) ID 1 length 22
(146) eap: EAP session adding &reply:State = 0x630ac958630bcd9a
(146) [eap] = handled
(146) } # authenticate = handled
(146) Using Post-Auth-Type Challenge
(146) # Executing group from file /etc/raddb/sites-enabled/default
(146) Challenge { ... } # empty sub-section is ignored
(146) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 0
(146) EAP-Message = 0x0101001604101e63ce5452c89c6aece882e4d03f82f9
(146) Message-Authenticator = 0x00000000000000000000000000000000
(146) State = 0x630ac958630bcd9a9aa17122d96b190f
(146) Finished request
Waking up in 4.9 seconds.
(146) Cleaning up request packet ID 0 with timestamp +1384
(147) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 138
(147) User-Name = "radius"
(147) NAS-IP-Address = 122.1.5.89
(147) Called-Station-Id = "d45d6478fb58"
(147) Calling-Station-Id = "bc17b8e0bb04"
(147) NAS-Identifier = "d45d6478fb58"
(147) NAS-Port = 95
(147) Framed-MTU = 1400
(147) State = 0x630ac958630bcd9a9aa17122d96b190f
(147) NAS-Port-Type = Wireless-802.11
(147) EAP-Message = 0x020100060319
(147) Message-Authenticator = 0xdcfa0787e8fe37af85665f3dc1664bce
(147) session-state: No cached attributes
(147) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(147) authorize {
(147) policy filter_username {
(147) if (&User-Name) {
(147) if (&User-Name) -> TRUE
(147) if (&User-Name) {
(147) if (&User-Name =~ / /) {
(147) if (&User-Name =~ / /) -> FALSE
(147) if (&User-Name =~ /@[^@]*@/ ) {
(147) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(147) if (&User-Name =~ /\.\./ ) {
(147) if (&User-Name =~ /\.\./ ) -> FALSE
(147) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(147) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(147) if (&User-Name =~ /\.$/) {
(147) if (&User-Name =~ /\.$/) -> FALSE
(147) if (&User-Name =~ /@\./) {
(147) if (&User-Name =~ /@\./) -> FALSE
(147) } # if (&User-Name) = notfound
(147) } # policy filter_username = notfound
(147) [preprocess] = ok
(147) [chap] = noop
(147) [mschap] = noop
(147) [digest] = noop
(147) suffix: Checking for suffix after "@"
(147) suffix: No '@' in User-Name = "radius", looking up realm NULL
(147) suffix: No such realm "NULL"
(147) [suffix] = noop
(147) eap: Peer sent EAP Response (code 2) ID 1 length 6
(147) eap: No EAP Start, assuming it's an on-going EAP conversation
(147) [eap] = updated
(147) [files] = noop
rlm_ldap (ldap): Closing connection (25): Hit idle_timeout, was idle for
202 seconds
rlm_ldap (ldap): Closing connection (26): Hit idle_timeout, was idle for
202 seconds
rlm_ldap (ldap): You probably need to lower "min"
rlm_ldap (ldap): Closing connection (24): Hit idle_timeout, was idle for
201 seconds
rlm_ldap (ldap): You probably need to lower "min"
rlm_ldap (ldap): Closing connection (27): Hit idle_timeout, was idle for
201 seconds
rlm_ldap (ldap): You probably need to lower "min"
rlm_ldap (ldap): 0 of 0 connections in use. You may need to increase
"spare"
rlm_ldap (ldap): Opening additional connection (28), 1 of 32 pending slots
used
rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): Reserved connection (28)
(147) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}})
(147) ldap: --> (uid=radius)
(147) ldap: Performing search in "cn=users,cn=compat,dc=qi-cap,dc=com" with
filter "(uid=radius)", scope "sub"
(147) ldap: Waiting for search result...
(147) ldap: User object found at DN
"uid=radius,cn=users,cn=compat,dc=qi-cap,dc=com"
(147) ldap: Processing user attributes
(147) ldap: WARNING: No "known good" password added. Ensure the admin user
has permission to read the password attribute
(147) ldap: WARNING: PAP authentication will *NOT* work with Active
Directory (if that is what you were trying to configure)
rlm_ldap (ldap): Released connection (28)
Need 2 more connections to reach min connections (3)
rlm_ldap (ldap): Opening additional connection (29), 1 of 31 pending slots
used
rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
(147) [ldap] = ok
(147) if ((ok || updated) && User-Password) {
(147) if ((ok || updated) && User-Password) -> FALSE
(147) [expiration] = noop
(147) [logintime] = noop
Not doing PAP as Auth-Type is already set.
(147) [pap] = noop
(147) } # authorize = updated
(147) Found Auth-Type = eap
(147) # Executing group from file /etc/raddb/sites-enabled/default
(147) authenticate {
(147) eap: Expiring EAP session with state 0x630ac958630bcd9a
(147) eap: Finished EAP session with state 0x630ac958630bcd9a
(147) eap: Previous EAP request found for state 0x630ac958630bcd9a,
released from the list
(147) eap: Peer sent packet with method EAP NAK (3)
(147) eap: Found mutually acceptable type PEAP (25)
(147) eap: Calling submodule eap_peap to process data
(147) eap_peap: (TLS) Initiating new session
(147) eap: Sending EAP Request (code 1) ID 2 length 6
(147) eap: EAP session adding &reply:State = 0x630ac9586208d09a
(147) [eap] = handled
(147) } # authenticate = handled
(147) Using Post-Auth-Type Challenge
(147) # Executing group from file /etc/raddb/sites-enabled/default
(147) Challenge { ... } # empty sub-section is ignored
(147) session-state: Saving cached attributes
(147) Framed-MTU = 994
(147) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 0
(147) EAP-Message = 0x010200061920
(147) Message-Authenticator = 0x00000000000000000000000000000000
(147) State = 0x630ac9586208d09a9aa17122d96b190f
(147) Finished request
Waking up in 4.9 seconds.
(147) Cleaning up request packet ID 0 with timestamp +1384
(148) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 326
(148) User-Name = "radius"
(148) NAS-IP-Address = 122.1.5.89
(148) Called-Station-Id = "d45d6478fb58"
(148) Calling-Station-Id = "bc17b8e0bb04"
(148) NAS-Identifier = "d45d6478fb58"
(148) NAS-Port = 95
(148) Framed-MTU = 1400
(148) State = 0x630ac9586208d09a9aa17122d96b190f
(148) NAS-Port-Type = Wireless-802.11
(148) EAP-Message =
0x020200c21980000000b816030100b3010000af030324dcb1053a2662d53368c1e7a1839e375af3d02b1070d1a75bb85cf3778a7920000038c02cc030009fcca9cca8ccaac02bc02f009ec024c028006bc023c0270067c00ac0140039c009c0130033009d009c003d003c0035002f00ff0100004e000b000403000102000a000c000a001d0017001e001900180016000000170000000d002a0028040305030603080708080809080a080b080408050806040105010601030303010302040205020602
(148) Message-Authenticator = 0xcb4908538e1b4358c863c3724f62bc3c
(148) Restoring &session-state
(148) &session-state:Framed-MTU = 994
(148) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(148) authorize {
(148) policy filter_username {
(148) if (&User-Name) {
(148) if (&User-Name) -> TRUE
(148) if (&User-Name) {
(148) if (&User-Name =~ / /) {
(148) if (&User-Name =~ / /) -> FALSE
(148) if (&User-Name =~ /@[^@]*@/ ) {
(148) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(148) if (&User-Name =~ /\.\./ ) {
(148) if (&User-Name =~ /\.\./ ) -> FALSE
(148) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(148) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(148) if (&User-Name =~ /\.$/) {
(148) if (&User-Name =~ /\.$/) -> FALSE
(148) if (&User-Name =~ /@\./) {
(148) if (&User-Name =~ /@\./) -> FALSE
(148) } # if (&User-Name) = notfound
(148) } # policy filter_username = notfound
(148) [preprocess] = ok
(148) [chap] = noop
(148) [mschap] = noop
(148) [digest] = noop
(148) suffix: Checking for suffix after "@"
(148) suffix: No '@' in User-Name = "radius", looking up realm NULL
(148) suffix: No such realm "NULL"
(148) [suffix] = noop
(148) eap: Peer sent EAP Response (code 2) ID 2 length 194
(148) eap: Continuing tunnel setup
(148) [eap] = ok
(148) } # authorize = ok
(148) Found Auth-Type = eap
(148) # Executing group from file /etc/raddb/sites-enabled/default
(148) authenticate {
(148) eap: Expiring EAP session with state 0x630ac9586208d09a
(148) eap: Finished EAP session with state 0x630ac9586208d09a
(148) eap: Previous EAP request found for state 0x630ac9586208d09a,
released from the list
(148) eap: Peer sent packet with method EAP PEAP (25)
(148) eap: Calling submodule eap_peap to process data
(148) eap_peap: (TLS) EAP Peer says that the final record size will be 184
bytes
(148) eap_peap: (TLS) EAP Got all data (184 bytes)
(148) eap_peap: (TLS) Handshake state - before SSL initialization
(148) eap_peap: (TLS) Handshake state - Server before SSL initialization
(148) eap_peap: (TLS) Handshake state - Server before SSL initialization
(148) eap_peap: (TLS) recv TLS 1.3 Handshake, ClientHello
(148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS read client hello
(148) eap_peap: (TLS) send TLS 1.2 Handshake, ServerHello
(148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write server hello
(148) eap_peap: (TLS) send TLS 1.2 Handshake, Certificate
(148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write certificate
(148) eap_peap: (TLS) send TLS 1.2 Handshake, ServerKeyExchange
(148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write key exchange
(148) eap_peap: (TLS) send TLS 1.2 Handshake, ServerHelloDone
(148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write server done
(148) eap_peap: (TLS) Server : Need to read more data: SSLv3/TLS write
server done
(148) eap_peap: (TLS) In Handshake Phase
(148) eap: Sending EAP Request (code 1) ID 3 length 1004
(148) eap: EAP session adding &reply:State = 0x630ac9586109d09a
(148) [eap] = handled
(148) } # authenticate = handled
(148) Using Post-Auth-Type Challenge
(148) # Executing group from file /etc/raddb/sites-enabled/default
(148) Challenge { ... } # empty sub-section is ignored
(148) session-state: Saving cached attributes
(148) Framed-MTU = 994
(148) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake,
ClientHello"
(148) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHello"
(148) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
Certificate"
(148) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerKeyExchange"
(148) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHelloDone"
(148) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 0
(148) EAP-Message =
0x010303ec19c000000ae7160303003d020000390303e40b7ece038fed5308f9347251dcdb5ce7cc0acd5d17bc8f4a9824746d2aafc900c030000011ff01000100000b0004030001020017000016030309450b00094100093e00043a308204363082031ea003020102020101300d06092a864886f70d01010b0500308193310b3009060355040613024652310f300d06035504080c065261646975733112301006035504070c09536f6d65776865726531153013060355040a0c0c4578616d706c6520496e632e3120301e06092a864886f70d010901161161646d696e406578616d706c652e6f72673126302406035504030c1d4578616d706c6520436572746966696361746520417574686f72697479301e170d3232303730373039333731375a170d3232303930353039333731375a307c310b3009060355040613024652310f300d06035504080c0652616469757331153013060355040a0c0c4578616d706c6520496e632e3123302106035504030c1a4578616d70
(148) Message-Authenticator = 0x00000000000000000000000000000000
(148) State = 0x630ac9586109d09a9aa17122d96b190f
(148) Finished request
Waking up in 4.9 seconds.
(148) Cleaning up request packet ID 0 with timestamp +1384
(149) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 138
(149) User-Name = "radius"
(149) NAS-IP-Address = 122.1.5.89
(149) Called-Station-Id = "d45d6478fb58"
(149) Calling-Station-Id = "bc17b8e0bb04"
(149) NAS-Identifier = "d45d6478fb58"
(149) NAS-Port = 95
(149) Framed-MTU = 1400
(149) State = 0x630ac9586109d09a9aa17122d96b190f
(149) NAS-Port-Type = Wireless-802.11
(149) EAP-Message = 0x020300061900
(149) Message-Authenticator = 0xe20bd002559c93cb548b9f3bcdda6377
(149) Restoring &session-state
(149) &session-state:Framed-MTU = 994
(149) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3
Handshake, ClientHello"
(149) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHello"
(149) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Certificate"
(149) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerKeyExchange"
(149) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHelloDone"
(149) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(149) authorize {
(149) policy filter_username {
(149) if (&User-Name) {
(149) if (&User-Name) -> TRUE
(149) if (&User-Name) {
(149) if (&User-Name =~ / /) {
(149) if (&User-Name =~ / /) -> FALSE
(149) if (&User-Name =~ /@[^@]*@/ ) {
(149) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(149) if (&User-Name =~ /\.\./ ) {
(149) if (&User-Name =~ /\.\./ ) -> FALSE
(149) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(149) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(149) if (&User-Name =~ /\.$/) {
(149) if (&User-Name =~ /\.$/) -> FALSE
(149) if (&User-Name =~ /@\./) {
(149) if (&User-Name =~ /@\./) -> FALSE
(149) } # if (&User-Name) = notfound
(149) } # policy filter_username = notfound
(149) [preprocess] = ok
(149) [chap] = noop
(149) [mschap] = noop
(149) [digest] = noop
(149) suffix: Checking for suffix after "@"
(149) suffix: No '@' in User-Name = "radius", looking up realm NULL
(149) suffix: No such realm "NULL"
(149) [suffix] = noop
(149) eap: Peer sent EAP Response (code 2) ID 3 length 6
(149) eap: Continuing tunnel setup
(149) [eap] = ok
(149) } # authorize = ok
(149) Found Auth-Type = eap
(149) # Executing group from file /etc/raddb/sites-enabled/default
(149) authenticate {
(149) eap: Expiring EAP session with state 0x630ac9586109d09a
(149) eap: Finished EAP session with state 0x630ac9586109d09a
(149) eap: Previous EAP request found for state 0x630ac9586109d09a,
released from the list
(149) eap: Peer sent packet with method EAP PEAP (25)
(149) eap: Calling submodule eap_peap to process data
(149) eap_peap: (TLS) Peer ACKed our handshake fragment
(149) eap: Sending EAP Request (code 1) ID 4 length 1000
(149) eap: EAP session adding &reply:State = 0x630ac958600ed09a
(149) [eap] = handled
(149) } # authenticate = handled
(149) Using Post-Auth-Type Challenge
(149) # Executing group from file /etc/raddb/sites-enabled/default
(149) Challenge { ... } # empty sub-section is ignored
(149) session-state: Saving cached attributes
(149) Framed-MTU = 994
(149) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake,
ClientHello"
(149) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHello"
(149) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
Certificate"
(149) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerKeyExchange"
(149) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHelloDone"
(149) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 0
(149) EAP-Message =
0x010403e81940ac6ab2e0a7b5c3ee232e3e1524bf37ca3c2974fe2a11ae07e9ba696843cc726f4f7977e5300b00fe1377608feabdc73ce1c84b2d138e50bf201c568fe120898dfe1c85bc1512aeac7b2e1a13c5392d360b09b3243f73efa033120706bfba135d3c3691e5ba2073cafe0b9918b9926baf86ee8278cab171f1dc3afe4fcb4b6036bbfcb5e2101084f8ba8621fb4c292d6b7398ad27842755f43c3164588fe2c204920fbbfdc435b537330004fe308204fa308203e2a00302010202147ea8445d8c33e6dc84e1d745a65b913ce025d8ea300d06092a864886f70d01010b0500308193310b3009060355040613024652310f300d06035504080c065261646975733112301006035504070c09536f6d65776865726531153013060355040a0c0c4578616d706c6520496e632e3120301e06092a864886f70d010901161161646d696e406578616d706c652e6f72673126302406035504030c1d4578616d706c6520436572746966696361746520417574686f72
(149) Message-Authenticator = 0x00000000000000000000000000000000
(149) State = 0x630ac958600ed09a9aa17122d96b190f
(149) Finished request
Waking up in 4.9 seconds.
(149) Cleaning up request packet ID 0 with timestamp +1384
(150) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 138
(150) User-Name = "radius"
(150) NAS-IP-Address = 122.1.5.89
(150) Called-Station-Id = "d45d6478fb58"
(150) Calling-Station-Id = "bc17b8e0bb04"
(150) NAS-Identifier = "d45d6478fb58"
(150) NAS-Port = 95
(150) Framed-MTU = 1400
(150) State = 0x630ac958600ed09a9aa17122d96b190f
(150) NAS-Port-Type = Wireless-802.11
(150) EAP-Message = 0x020400061900
(150) Message-Authenticator = 0xc2e6d43749c0cef54089cab72948d823
(150) Restoring &session-state
(150) &session-state:Framed-MTU = 994
(150) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3
Handshake, ClientHello"
(150) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHello"
(150) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Certificate"
(150) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerKeyExchange"
(150) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHelloDone"
(150) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(150) authorize {
(150) policy filter_username {
(150) if (&User-Name) {
(150) if (&User-Name) -> TRUE
(150) if (&User-Name) {
(150) if (&User-Name =~ / /) {
(150) if (&User-Name =~ / /) -> FALSE
(150) if (&User-Name =~ /@[^@]*@/ ) {
(150) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(150) if (&User-Name =~ /\.\./ ) {
(150) if (&User-Name =~ /\.\./ ) -> FALSE
(150) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(150) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(150) if (&User-Name =~ /\.$/) {
(150) if (&User-Name =~ /\.$/) -> FALSE
(150) if (&User-Name =~ /@\./) {
(150) if (&User-Name =~ /@\./) -> FALSE
(150) } # if (&User-Name) = notfound
(150) } # policy filter_username = notfound
(150) [preprocess] = ok
(150) [chap] = noop
(150) [mschap] = noop
(150) [digest] = noop
(150) suffix: Checking for suffix after "@"
(150) suffix: No '@' in User-Name = "radius", looking up realm NULL
(150) suffix: No such realm "NULL"
(150) [suffix] = noop
(150) eap: Peer sent EAP Response (code 2) ID 4 length 6
(150) eap: Continuing tunnel setup
(150) [eap] = ok
(150) } # authorize = ok
(150) Found Auth-Type = eap
(150) # Executing group from file /etc/raddb/sites-enabled/default
(150) authenticate {
(150) eap: Expiring EAP session with state 0x630ac958600ed09a
(150) eap: Finished EAP session with state 0x630ac958600ed09a
(150) eap: Previous EAP request found for state 0x630ac958600ed09a,
released from the list
(150) eap: Peer sent packet with method EAP PEAP (25)
(150) eap: Calling submodule eap_peap to process data
(150) eap_peap: (TLS) Peer ACKed our handshake fragment
(150) eap: Sending EAP Request (code 1) ID 5 length 809
(150) eap: EAP session adding &reply:State = 0x630ac958670fd09a
(150) [eap] = handled
(150) } # authenticate = handled
(150) Using Post-Auth-Type Challenge
(150) # Executing group from file /etc/raddb/sites-enabled/default
(150) Challenge { ... } # empty sub-section is ignored
(150) session-state: Saving cached attributes
(150) Framed-MTU = 994
(150) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake,
ClientHello"
(150) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHello"
(150) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
Certificate"
(150) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerKeyExchange"
(150) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHelloDone"
(150) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 0
(150) EAP-Message =
0x01050329190078616d706c6520496e632e3120301e06092a864886f70d010901161161646d696e406578616d706c652e6f72673126302406035504030c1d4578616d706c6520436572746966696361746520417574686f7269747982147ea8445d8c33e6dc84e1d745a65b913ce025d8ea300f0603551d130101ff040530030101ff30360603551d1f042f302d302ba029a0278625687474703a2f2f7777772e6578616d706c652e6f72672f6578616d706c655f63612e63726c300d06092a864886f70d01010b050003820101000ad43506e2933d08e07c664f0d39317e28eeea8ce5ac5fb596a9ea82a2680738b3994666b8a0d21c53b89ad820d5aef22d53810bbe79d3a026d13bb7d0dccb1a8e0fcbe98582b6bba6d0ba8231b3f71bd9e3964b5d38659fc3c4a9f53fc313b7a04ecc413bddc7f147b91fb15c7b5f093a8146b202205d99aaba23043f5fa1ecc5fba99e8207b3900bb8e18b5678cd77bb1cdcc9bc3500ad7a6ef3deeca99d92c518e24a04bc042bb7
(150) Message-Authenticator = 0x00000000000000000000000000000000
(150) State = 0x630ac958670fd09a9aa17122d96b190f
(150) Finished request
Waking up in 4.9 seconds.
(150) Cleaning up request packet ID 0 with timestamp +1384
(151) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 268
(151) User-Name = "radius"
(151) NAS-IP-Address = 122.1.5.89
(151) Called-Station-Id = "d45d6478fb58"
(151) Calling-Station-Id = "bc17b8e0bb04"
(151) NAS-Identifier = "d45d6478fb58"
(151) NAS-Port = 95
(151) Framed-MTU = 1400
(151) State = 0x630ac958670fd09a9aa17122d96b190f
(151) NAS-Port-Type = Wireless-802.11
(151) EAP-Message =
0x0205008819800000007e1603030046100000424104a8c5fb53a0584fb7fecd29d28ed16f2cfb2bd7c8c773a4241b37b2cf14e00f75eb079650d05ad9906482ed46b0b004f1f1a941bd98b3708499e03272486c84a81403030001011603030028884ec7abc6f5265d94c3db8af8e51023983594f13ea30ba5806f7c592880892fbf5dfda936af54a9
(151) Message-Authenticator = 0xef4ad482d6b741a39c904df91886a13e
(151) Restoring &session-state
(151) &session-state:Framed-MTU = 994
(151) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3
Handshake, ClientHello"
(151) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHello"
(151) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Certificate"
(151) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerKeyExchange"
(151) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHelloDone"
(151) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(151) authorize {
(151) policy filter_username {
(151) if (&User-Name) {
(151) if (&User-Name) -> TRUE
(151) if (&User-Name) {
(151) if (&User-Name =~ / /) {
(151) if (&User-Name =~ / /) -> FALSE
(151) if (&User-Name =~ /@[^@]*@/ ) {
(151) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(151) if (&User-Name =~ /\.\./ ) {
(151) if (&User-Name =~ /\.\./ ) -> FALSE
(151) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(151) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(151) if (&User-Name =~ /\.$/) {
(151) if (&User-Name =~ /\.$/) -> FALSE
(151) if (&User-Name =~ /@\./) {
(151) if (&User-Name =~ /@\./) -> FALSE
(151) } # if (&User-Name) = notfound
(151) } # policy filter_username = notfound
(151) [preprocess] = ok
(151) [chap] = noop
(151) [mschap] = noop
(151) [digest] = noop
(151) suffix: Checking for suffix after "@"
(151) suffix: No '@' in User-Name = "radius", looking up realm NULL
(151) suffix: No such realm "NULL"
(151) [suffix] = noop
(151) eap: Peer sent EAP Response (code 2) ID 5 length 136
(151) eap: Continuing tunnel setup
(151) [eap] = ok
(151) } # authorize = ok
(151) Found Auth-Type = eap
(151) # Executing group from file /etc/raddb/sites-enabled/default
(151) authenticate {
(151) eap: Expiring EAP session with state 0x630ac958670fd09a
(151) eap: Finished EAP session with state 0x630ac958670fd09a
(151) eap: Previous EAP request found for state 0x630ac958670fd09a,
released from the list
(151) eap: Peer sent packet with method EAP PEAP (25)
(151) eap: Calling submodule eap_peap to process data
(151) eap_peap: (TLS) EAP Peer says that the final record size will be 126
bytes
(151) eap_peap: (TLS) EAP Got all data (126 bytes)
(151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write server done
(151) eap_peap: (TLS) recv TLS 1.2 Handshake, ClientKeyExchange
(151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS read client key
exchange
(151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS read change cipher
spec
(151) eap_peap: (TLS) recv TLS 1.2 Handshake, Finished
(151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS read finished
(151) eap_peap: (TLS) send TLS 1.2 ChangeCipherSpec
(151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write change
cipher spec
(151) eap_peap: (TLS) send TLS 1.2 Handshake, Finished
(151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write finished
(151) eap_peap: (TLS) Handshake state - SSL negotiation finished
successfully
(151) eap_peap: (TLS) Connection Established
(151) eap_peap: TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(151) eap_peap: TLS-Session-Version = "TLS 1.2"
(151) eap: Sending EAP Request (code 1) ID 6 length 57
(151) eap: EAP session adding &reply:State = 0x630ac958660cd09a
(151) [eap] = handled
(151) } # authenticate = handled
(151) Using Post-Auth-Type Challenge
(151) # Executing group from file /etc/raddb/sites-enabled/default
(151) Challenge { ... } # empty sub-section is ignored
(151) session-state: Saving cached attributes
(151) Framed-MTU = 994
(151) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake,
ClientHello"
(151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHello"
(151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
Certificate"
(151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerKeyExchange"
(151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHelloDone"
(151) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake,
ClientKeyExchange"
(151) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished"
(151) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec"
(151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished"
(151) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(151) TLS-Session-Version = "TLS 1.2"
(151) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 0
(151) EAP-Message =
0x0106003919001403030001011603030028df5a2dbf06d22ab4019d7e7e1e52dd10d15b364fbe720f337a0dad9bddd021097acab466e5abed9d
(151) Message-Authenticator = 0x00000000000000000000000000000000
(151) State = 0x630ac958660cd09a9aa17122d96b190f
(151) Finished request
Waking up in 4.9 seconds.
(151) Cleaning up request packet ID 0 with timestamp +1384
(152) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 138
(152) User-Name = "radius"
(152) NAS-IP-Address = 122.1.5.89
(152) Called-Station-Id = "d45d6478fb58"
(152) Calling-Station-Id = "bc17b8e0bb04"
(152) NAS-Identifier = "d45d6478fb58"
(152) NAS-Port = 95
(152) Framed-MTU = 1400
(152) State = 0x630ac958660cd09a9aa17122d96b190f
(152) NAS-Port-Type = Wireless-802.11
(152) EAP-Message = 0x020600061900
(152) Message-Authenticator = 0x112d12fd833e48da832f6cbf455735b2
(152) Restoring &session-state
(152) &session-state:Framed-MTU = 994
(152) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3
Handshake, ClientHello"
(152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHello"
(152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Certificate"
(152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerKeyExchange"
(152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHelloDone"
(152) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2
Handshake, ClientKeyExchange"
(152) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2
Handshake, Finished"
(152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
ChangeCipherSpec"
(152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Finished"
(152) &session-state:TLS-Session-Cipher-Suite =
"ECDHE-RSA-AES256-GCM-SHA384"
(152) &session-state:TLS-Session-Version = "TLS 1.2"
(152) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(152) authorize {
(152) policy filter_username {
(152) if (&User-Name) {
(152) if (&User-Name) -> TRUE
(152) if (&User-Name) {
(152) if (&User-Name =~ / /) {
(152) if (&User-Name =~ / /) -> FALSE
(152) if (&User-Name =~ /@[^@]*@/ ) {
(152) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(152) if (&User-Name =~ /\.\./ ) {
(152) if (&User-Name =~ /\.\./ ) -> FALSE
(152) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(152) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(152) if (&User-Name =~ /\.$/) {
(152) if (&User-Name =~ /\.$/) -> FALSE
(152) if (&User-Name =~ /@\./) {
(152) if (&User-Name =~ /@\./) -> FALSE
(152) } # if (&User-Name) = notfound
(152) } # policy filter_username = notfound
(152) [preprocess] = ok
(152) [chap] = noop
(152) [mschap] = noop
(152) [digest] = noop
(152) suffix: Checking for suffix after "@"
(152) suffix: No '@' in User-Name = "radius", looking up realm NULL
(152) suffix: No such realm "NULL"
(152) [suffix] = noop
(152) eap: Peer sent EAP Response (code 2) ID 6 length 6
(152) eap: Continuing tunnel setup
(152) [eap] = ok
(152) } # authorize = ok
(152) Found Auth-Type = eap
(152) # Executing group from file /etc/raddb/sites-enabled/default
(152) authenticate {
(152) eap: Expiring EAP session with state 0x630ac958660cd09a
(152) eap: Finished EAP session with state 0x630ac958660cd09a
(152) eap: Previous EAP request found for state 0x630ac958660cd09a,
released from the list
(152) eap: Peer sent packet with method EAP PEAP (25)
(152) eap: Calling submodule eap_peap to process data
(152) eap_peap: (TLS) Peer ACKed our handshake fragment. handshake is
finished
(152) eap_peap: Session established. Decoding tunneled attributes
(152) eap_peap: PEAP state TUNNEL ESTABLISHED
(152) eap: Sending EAP Request (code 1) ID 7 length 40
(152) eap: EAP session adding &reply:State = 0x630ac958650dd09a
(152) [eap] = handled
(152) } # authenticate = handled
(152) Using Post-Auth-Type Challenge
(152) # Executing group from file /etc/raddb/sites-enabled/default
(152) Challenge { ... } # empty sub-section is ignored
(152) session-state: Saving cached attributes
(152) Framed-MTU = 994
(152) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake,
ClientHello"
(152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHello"
(152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
Certificate"
(152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerKeyExchange"
(152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHelloDone"
(152) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake,
ClientKeyExchange"
(152) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished"
(152) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec"
(152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished"
(152) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(152) TLS-Session-Version = "TLS 1.2"
(152) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 0
(152) EAP-Message =
0x010700281900170303001ddf5a2dbf06d22ab59ac91c368446881a5f8729ab942d260a15e8b9c0c8
(152) Message-Authenticator = 0x00000000000000000000000000000000
(152) State = 0x630ac958650dd09a9aa17122d96b190f
(152) Finished request
Waking up in 4.9 seconds.
(152) Cleaning up request packet ID 0 with timestamp +1384
(153) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 174
(153) User-Name = "radius"
(153) NAS-IP-Address = 122.1.5.89
(153) Called-Station-Id = "d45d6478fb58"
(153) Calling-Station-Id = "bc17b8e0bb04"
(153) NAS-Identifier = "d45d6478fb58"
(153) NAS-Port = 95
(153) Framed-MTU = 1400
(153) State = 0x630ac958650dd09a9aa17122d96b190f
(153) NAS-Port-Type = Wireless-802.11
(153) EAP-Message =
0x0207002a1900170303001f884ec7abc6f5265e0d2a9c320457d6eead63a50403941394a04fcba537bfc8
(153) Message-Authenticator = 0x0c90cde75fb3b0711010ed5d7e417e94
(153) Restoring &session-state
(153) &session-state:Framed-MTU = 994
(153) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3
Handshake, ClientHello"
(153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHello"
(153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Certificate"
(153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerKeyExchange"
(153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHelloDone"
(153) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2
Handshake, ClientKeyExchange"
(153) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2
Handshake, Finished"
(153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
ChangeCipherSpec"
(153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Finished"
(153) &session-state:TLS-Session-Cipher-Suite =
"ECDHE-RSA-AES256-GCM-SHA384"
(153) &session-state:TLS-Session-Version = "TLS 1.2"
(153) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(153) authorize {
(153) policy filter_username {
(153) if (&User-Name) {
(153) if (&User-Name) -> TRUE
(153) if (&User-Name) {
(153) if (&User-Name =~ / /) {
(153) if (&User-Name =~ / /) -> FALSE
(153) if (&User-Name =~ /@[^@]*@/ ) {
(153) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(153) if (&User-Name =~ /\.\./ ) {
(153) if (&User-Name =~ /\.\./ ) -> FALSE
(153) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(153) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(153) if (&User-Name =~ /\.$/) {
(153) if (&User-Name =~ /\.$/) -> FALSE
(153) if (&User-Name =~ /@\./) {
(153) if (&User-Name =~ /@\./) -> FALSE
(153) } # if (&User-Name) = notfound
(153) } # policy filter_username = notfound
(153) [preprocess] = ok
(153) [chap] = noop
(153) [mschap] = noop
(153) [digest] = noop
(153) suffix: Checking for suffix after "@"
(153) suffix: No '@' in User-Name = "radius", looking up realm NULL
(153) suffix: No such realm "NULL"
(153) [suffix] = noop
(153) eap: Peer sent EAP Response (code 2) ID 7 length 42
(153) eap: Continuing tunnel setup
(153) [eap] = ok
(153) } # authorize = ok
(153) Found Auth-Type = eap
(153) # Executing group from file /etc/raddb/sites-enabled/default
(153) authenticate {
(153) eap: Expiring EAP session with state 0x630ac958650dd09a
(153) eap: Finished EAP session with state 0x630ac958650dd09a
(153) eap: Previous EAP request found for state 0x630ac958650dd09a,
released from the list
(153) eap: Peer sent packet with method EAP PEAP (25)
(153) eap: Calling submodule eap_peap to process data
(153) eap_peap: (TLS) EAP Done initial handshake
(153) eap_peap: Session established. Decoding tunneled attributes
(153) eap_peap: PEAP state WAITING FOR INNER IDENTITY
(153) eap_peap: Identity - radius
(153) eap_peap: Got inner identity 'radius'
(153) eap_peap: Setting default EAP type for tunneled EAP session
(153) eap_peap: Got tunneled request
(153) eap_peap: EAP-Message = 0x0207000b01726164697573
(153) eap_peap: Setting User-Name to radius
(153) eap_peap: Sending tunneled request to inner-tunnel
(153) eap_peap: EAP-Message = 0x0207000b01726164697573
(153) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1
(153) eap_peap: User-Name = "radius"
(153) Virtual server inner-tunnel received request
(153) EAP-Message = 0x0207000b01726164697573
(153) FreeRADIUS-Proxied-To = 127.0.0.1
(153) User-Name = "radius"
(153) WARNING: Outer and inner identities are the same. User privacy is
compromised.
(153) server inner-tunnel {
(153) # Executing section authorize from file
/etc/raddb/sites-enabled/inner-tunnel
(153) authorize {
(153) policy filter_username {
(153) if (&User-Name) {
(153) if (&User-Name) -> TRUE
(153) if (&User-Name) {
(153) if (&User-Name =~ / /) {
(153) if (&User-Name =~ / /) -> FALSE
(153) if (&User-Name =~ /@[^@]*@/ ) {
(153) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(153) if (&User-Name =~ /\.\./ ) {
(153) if (&User-Name =~ /\.\./ ) -> FALSE
(153) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
{
(153) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(153) if (&User-Name =~ /\.$/) {
(153) if (&User-Name =~ /\.$/) -> FALSE
(153) if (&User-Name =~ /@\./) {
(153) if (&User-Name =~ /@\./) -> FALSE
(153) } # if (&User-Name) = notfound
(153) } # policy filter_username = notfound
(153) [chap] = noop
(153) [mschap] = noop
(153) suffix: Checking for suffix after "@"
(153) suffix: No '@' in User-Name = "radius", looking up realm NULL
(153) suffix: No such realm "NULL"
(153) [suffix] = noop
(153) update control {
(153) &Proxy-To-Realm := LOCAL
(153) } # update control = noop
(153) eap: Peer sent EAP Response (code 2) ID 7 length 11
(153) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the
rest of authorize
(153) [eap] = ok
(153) } # authorize = ok
(153) Found Auth-Type = eap
(153) # Executing group from file /etc/raddb/sites-enabled/inner-tunnel
(153) authenticate {
(153) eap: Peer sent packet with method EAP Identity (1)
(153) eap: Calling submodule eap_mschapv2 to process data
(153) eap_mschapv2: Issuing Challenge
(153) eap: Sending EAP Request (code 1) ID 8 length 43
(153) eap: EAP session adding &reply:State = 0x31c7c4b731cfde44
(153) [eap] = handled
(153) } # authenticate = handled
(153) } # server inner-tunnel
(153) Virtual server sending reply
(153) EAP-Message =
0x0108002b1a01080026106e02ee882823054de5c26b5373d2bb07667265657261646975732d332e302e3231
(153) Message-Authenticator = 0x00000000000000000000000000000000
(153) State = 0x31c7c4b731cfde4404b5a52394d7df9b
(153) eap_peap: Got tunneled reply code 11
(153) eap_peap: EAP-Message =
0x0108002b1a01080026106e02ee882823054de5c26b5373d2bb07667265657261646975732d332e302e3231
(153) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
(153) eap_peap: State = 0x31c7c4b731cfde4404b5a52394d7df9b
(153) eap_peap: Got tunneled reply RADIUS code 11
(153) eap_peap: EAP-Message =
0x0108002b1a01080026106e02ee882823054de5c26b5373d2bb07667265657261646975732d332e302e3231
(153) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
(153) eap_peap: State = 0x31c7c4b731cfde4404b5a52394d7df9b
(153) eap_peap: Got tunneled Access-Challenge
(153) eap: Sending EAP Request (code 1) ID 8 length 74
(153) eap: EAP session adding &reply:State = 0x630ac9586402d09a
(153) [eap] = handled
(153) } # authenticate = handled
(153) Using Post-Auth-Type Challenge
(153) # Executing group from file /etc/raddb/sites-enabled/default
(153) Challenge { ... } # empty sub-section is ignored
(153) session-state: Saving cached attributes
(153) Framed-MTU = 994
(153) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake,
ClientHello"
(153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHello"
(153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
Certificate"
(153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerKeyExchange"
(153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHelloDone"
(153) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake,
ClientKeyExchange"
(153) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished"
(153) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec"
(153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished"
(153) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(153) TLS-Session-Version = "TLS 1.2"
(153) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 0
(153) EAP-Message =
0x0108004a1900170303003fdf5a2dbf06d22ab64a7be10eec6554072998bf973b7ba0c01e157dacfb145f9d2e847c85e582508718e6d3dc4714756f0d79e9603059aacbfc7dc104565b03
(153) Message-Authenticator = 0x00000000000000000000000000000000
(153) State = 0x630ac9586402d09a9aa17122d96b190f
(153) Finished request
Waking up in 4.9 seconds.
(153) Cleaning up request packet ID 0 with timestamp +1384
(154) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 228
(154) User-Name = "radius"
(154) NAS-IP-Address = 122.1.5.89
(154) Called-Station-Id = "d45d6478fb58"
(154) Calling-Station-Id = "bc17b8e0bb04"
(154) NAS-Identifier = "d45d6478fb58"
(154) NAS-Port = 95
(154) Framed-MTU = 1400
(154) State = 0x630ac9586402d09a9aa17122d96b190f
(154) NAS-Port-Type = Wireless-802.11
(154) EAP-Message =
0x0208006019001703030055884ec7abc6f5265f2591d800334eaa7e2e433a89020bc1216e9573473e5773239286c098e49b70611e7888122614f7d6d044b90a6138fd98aaafce3194e3bacf0be5c9f130820568d488bf820cfacffc21be850703
(154) Message-Authenticator = 0xa969c36b810d80b203bd0943fc785698
(154) Restoring &session-state
(154) &session-state:Framed-MTU = 994
(154) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3
Handshake, ClientHello"
(154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHello"
(154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Certificate"
(154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerKeyExchange"
(154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHelloDone"
(154) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2
Handshake, ClientKeyExchange"
(154) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2
Handshake, Finished"
(154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
ChangeCipherSpec"
(154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Finished"
(154) &session-state:TLS-Session-Cipher-Suite =
"ECDHE-RSA-AES256-GCM-SHA384"
(154) &session-state:TLS-Session-Version = "TLS 1.2"
(154) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(154) authorize {
(154) policy filter_username {
(154) if (&User-Name) {
(154) if (&User-Name) -> TRUE
(154) if (&User-Name) {
(154) if (&User-Name =~ / /) {
(154) if (&User-Name =~ / /) -> FALSE
(154) if (&User-Name =~ /@[^@]*@/ ) {
(154) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(154) if (&User-Name =~ /\.\./ ) {
(154) if (&User-Name =~ /\.\./ ) -> FALSE
(154) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(154) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(154) if (&User-Name =~ /\.$/) {
(154) if (&User-Name =~ /\.$/) -> FALSE
(154) if (&User-Name =~ /@\./) {
(154) if (&User-Name =~ /@\./) -> FALSE
(154) } # if (&User-Name) = notfound
(154) } # policy filter_username = notfound
(154) [preprocess] = ok
(154) [chap] = noop
(154) [mschap] = noop
(154) [digest] = noop
(154) suffix: Checking for suffix after "@"
(154) suffix: No '@' in User-Name = "radius", looking up realm NULL
(154) suffix: No such realm "NULL"
(154) [suffix] = noop
(154) eap: Peer sent EAP Response (code 2) ID 8 length 96
(154) eap: Continuing tunnel setup
(154) [eap] = ok
(154) } # authorize = ok
(154) Found Auth-Type = eap
(154) # Executing group from file /etc/raddb/sites-enabled/default
(154) authenticate {
(154) eap: Expiring EAP session with state 0x31c7c4b731cfde44
(154) eap: Finished EAP session with state 0x630ac9586402d09a
(154) eap: Previous EAP request found for state 0x630ac9586402d09a,
released from the list
(154) eap: Peer sent packet with method EAP PEAP (25)
(154) eap: Calling submodule eap_peap to process data
(154) eap_peap: (TLS) EAP Done initial handshake
(154) eap_peap: Session established. Decoding tunneled attributes
(154) eap_peap: PEAP state phase2
(154) eap_peap: EAP method MSCHAPv2 (26)
(154) eap_peap: Got tunneled request
(154) eap_peap: EAP-Message =
0x020800411a0208003c312761f8964ef27b1f0ae0d9af033e67900000000000000000c57cad960963ee9b8004f9918e56f3dbb01713aefb4a5d0d00726164697573
(154) eap_peap: Setting User-Name to radius
(154) eap_peap: Sending tunneled request to inner-tunnel
(154) eap_peap: EAP-Message =
0x020800411a0208003c312761f8964ef27b1f0ae0d9af033e67900000000000000000c57cad960963ee9b8004f9918e56f3dbb01713aefb4a5d0d00726164697573
(154) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1
(154) eap_peap: User-Name = "radius"
(154) eap_peap: State = 0x31c7c4b731cfde4404b5a52394d7df9b
(154) Virtual server inner-tunnel received request
(154) EAP-Message =
0x020800411a0208003c312761f8964ef27b1f0ae0d9af033e67900000000000000000c57cad960963ee9b8004f9918e56f3dbb01713aefb4a5d0d00726164697573
(154) FreeRADIUS-Proxied-To = 127.0.0.1
(154) User-Name = "radius"
(154) State = 0x31c7c4b731cfde4404b5a52394d7df9b
(154) WARNING: Outer and inner identities are the same. User privacy is
compromised.
(154) server inner-tunnel {
(154) session-state: No cached attributes
(154) # Executing section authorize from file
/etc/raddb/sites-enabled/inner-tunnel
(154) authorize {
(154) policy filter_username {
(154) if (&User-Name) {
(154) if (&User-Name) -> TRUE
(154) if (&User-Name) {
(154) if (&User-Name =~ / /) {
(154) if (&User-Name =~ / /) -> FALSE
(154) if (&User-Name =~ /@[^@]*@/ ) {
(154) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(154) if (&User-Name =~ /\.\./ ) {
(154) if (&User-Name =~ /\.\./ ) -> FALSE
(154) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
{
(154) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(154) if (&User-Name =~ /\.$/) {
(154) if (&User-Name =~ /\.$/) -> FALSE
(154) if (&User-Name =~ /@\./) {
(154) if (&User-Name =~ /@\./) -> FALSE
(154) } # if (&User-Name) = notfound
(154) } # policy filter_username = notfound
(154) [chap] = noop
(154) [mschap] = noop
(154) suffix: Checking for suffix after "@"
(154) suffix: No '@' in User-Name = "radius", looking up realm NULL
(154) suffix: No such realm "NULL"
(154) [suffix] = noop
(154) update control {
(154) &Proxy-To-Realm := LOCAL
(154) } # update control = noop
(154) eap: Peer sent EAP Response (code 2) ID 8 length 65
(154) eap: No EAP Start, assuming it's an on-going EAP conversation
(154) [eap] = updated
(154) [files] = noop
rlm_ldap (ldap): Reserved connection (28)
(154) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}})
(154) ldap: --> (uid=radius)
(154) ldap: Performing search in "cn=users,cn=compat,dc=qi-cap,dc=com" with
filter "(uid=radius)", scope "sub"
(154) ldap: Waiting for search result...
(154) ldap: User object found at DN
"uid=radius,cn=users,cn=compat,dc=qi-cap,dc=com"
(154) ldap: Processing user attributes
(154) ldap: WARNING: No "known good" password added. Ensure the admin user
has permission to read the password attribute
(154) ldap: WARNING: PAP authentication will *NOT* work with Active
Directory (if that is what you were trying to configure)
rlm_ldap (ldap): Released connection (28)
(154) [ldap] = ok
(154) if ((ok || updated) && User-Password) {
(154) if ((ok || updated) && User-Password) -> FALSE
(154) [expiration] = noop
(154) [logintime] = noop
(154) [pap] = noop
(154) } # authorize = updated
(154) Found Auth-Type = eap
(154) # Executing group from file /etc/raddb/sites-enabled/inner-tunnel
(154) authenticate {
(154) eap: Expiring EAP session with state 0x31c7c4b731cfde44
(154) eap: Finished EAP session with state 0x31c7c4b731cfde44
(154) eap: Previous EAP request found for state 0x31c7c4b731cfde44,
released from the list
(154) eap: Peer sent packet with method EAP MSCHAPv2 (26)
(154) eap: Calling submodule eap_mschapv2 to process data
(154) eap_mschapv2: # Executing group from file
/etc/raddb/sites-enabled/inner-tunnel
(154) eap_mschapv2: authenticate {
(154) mschap: WARNING: No Cleartext-Password configured. Cannot create
NT-Password
(154) mschap: Creating challenge hash with username: radius
(154) mschap: Client is using MS-CHAPv2
(154) mschap: ERROR: FAILED: No NT-Password. Cannot perform authentication
(154) mschap: ERROR: MS-CHAP2-Response is incorrect
(154) eap_mschapv2: [mschap] = reject
(154) eap_mschapv2: } # authenticate = reject
(154) eap: Sending EAP Failure (code 4) ID 8 length 4
(154) eap: Freeing handler
(154) [eap] = reject
(154) } # authenticate = reject
(154) Failed to authenticate the user
(154) Using Post-Auth-Type Reject
(154) # Executing group from file /etc/raddb/sites-enabled/inner-tunnel
(154) Post-Auth-Type REJECT {
(154) attr_filter.access_reject: EXPAND %{User-Name}
(154) attr_filter.access_reject: --> radius
(154) attr_filter.access_reject: Matched entry DEFAULT at line 11
(154) [attr_filter.access_reject] = updated
(154) update outer.session-state {
(154) &Module-Failure-Message := &request:Module-Failure-Message ->
'mschap: FAILED: No NT-Password. Cannot perform authentication'
(154) } # update outer.session-state = noop
(154) } # Post-Auth-Type REJECT = updated
(154) } # server inner-tunnel
(154) Virtual server sending reply
(154) MS-CHAP-Error = "\010E=691 R=1 C=f9cb16da8d4880d41b5444a43fe5f741
V=3 M=Authentication rejected"
(154) EAP-Message = 0x04080004
(154) Message-Authenticator = 0x00000000000000000000000000000000
(154) eap_peap: Got tunneled reply code 3
(154) eap_peap: MS-CHAP-Error = "\010E=691 R=1
C=f9cb16da8d4880d41b5444a43fe5f741 V=3 M=Authentication rejected"
(154) eap_peap: EAP-Message = 0x04080004
(154) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
(154) eap_peap: Got tunneled reply RADIUS code 3
(154) eap_peap: MS-CHAP-Error = "\010E=691 R=1
C=f9cb16da8d4880d41b5444a43fe5f741 V=3 M=Authentication rejected"
(154) eap_peap: EAP-Message = 0x04080004
(154) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
(154) eap_peap: Tunneled authentication was rejected
(154) eap_peap: FAILURE
(154) eap: Sending EAP Request (code 1) ID 9 length 46
(154) eap: EAP session adding &reply:State = 0x630ac9586b03d09a
(154) [eap] = handled
(154) } # authenticate = handled
(154) Using Post-Auth-Type Challenge
(154) # Executing group from file /etc/raddb/sites-enabled/default
(154) Challenge { ... } # empty sub-section is ignored
(154) session-state: Saving cached attributes
(154) Framed-MTU = 994
(154) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake,
ClientHello"
(154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHello"
(154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
Certificate"
(154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerKeyExchange"
(154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake,
ServerHelloDone"
(154) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake,
ClientKeyExchange"
(154) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished"
(154) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec"
(154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished"
(154) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(154) TLS-Session-Version = "TLS 1.2"
(154) Module-Failure-Message := "mschap: FAILED: No NT-Password. Cannot
perform authentication"
(154) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 0
(154) EAP-Message =
0x0109002e19001703030023df5a2dbf06d22ab7988357ca4376c8443bad19a74da9a27c08d35de44920f26db66ad6
(154) Message-Authenticator = 0x00000000000000000000000000000000
(154) State = 0x630ac9586b03d09a9aa17122d96b190f
(154) Finished request
Waking up in 4.9 seconds.
(154) Cleaning up request packet ID 0 with timestamp +1384
(155) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812
length 178
(155) User-Name = "radius"
(155) NAS-IP-Address = 122.1.5.89
(155) Called-Station-Id = "d45d6478fb58"
(155) Calling-Station-Id = "bc17b8e0bb04"
(155) NAS-Identifier = "d45d6478fb58"
(155) NAS-Port = 95
(155) Framed-MTU = 1400
(155) State = 0x630ac9586b03d09a9aa17122d96b190f
(155) NAS-Port-Type = Wireless-802.11
(155) EAP-Message =
0x0209002e19001703030023884ec7abc6f52660b5dcbe7cbed67dbbb1a7f00d724cf86a2ba07af0a7460a59246ff9
(155) Message-Authenticator = 0xb72d7b97453e438ca0f7533886c66f15
(155) Restoring &session-state
(155) &session-state:Framed-MTU = 994
(155) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3
Handshake, ClientHello"
(155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHello"
(155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Certificate"
(155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerKeyExchange"
(155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, ServerHelloDone"
(155) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2
Handshake, ClientKeyExchange"
(155) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2
Handshake, Finished"
(155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
ChangeCipherSpec"
(155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2
Handshake, Finished"
(155) &session-state:TLS-Session-Cipher-Suite =
"ECDHE-RSA-AES256-GCM-SHA384"
(155) &session-state:TLS-Session-Version = "TLS 1.2"
(155) &session-state:Module-Failure-Message := "mschap: FAILED: No
NT-Password. Cannot perform authentication"
(155) # Executing section authorize from file
/etc/raddb/sites-enabled/default
(155) authorize {
(155) policy filter_username {
(155) if (&User-Name) {
(155) if (&User-Name) -> TRUE
(155) if (&User-Name) {
(155) if (&User-Name =~ / /) {
(155) if (&User-Name =~ / /) -> FALSE
(155) if (&User-Name =~ /@[^@]*@/ ) {
(155) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(155) if (&User-Name =~ /\.\./ ) {
(155) if (&User-Name =~ /\.\./ ) -> FALSE
(155) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) {
(155) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))
-> FALSE
(155) if (&User-Name =~ /\.$/) {
(155) if (&User-Name =~ /\.$/) -> FALSE
(155) if (&User-Name =~ /@\./) {
(155) if (&User-Name =~ /@\./) -> FALSE
(155) } # if (&User-Name) = notfound
(155) } # policy filter_username = notfound
(155) [preprocess] = ok
(155) [chap] = noop
(155) [mschap] = noop
(155) [digest] = noop
(155) suffix: Checking for suffix after "@"
(155) suffix: No '@' in User-Name = "radius", looking up realm NULL
(155) suffix: No such realm "NULL"
(155) [suffix] = noop
(155) eap: Peer sent EAP Response (code 2) ID 9 length 46
(155) eap: Continuing tunnel setup
(155) [eap] = ok
(155) } # authorize = ok
(155) Found Auth-Type = eap
(155) # Executing group from file /etc/raddb/sites-enabled/default
(155) authenticate {
(155) eap: Expiring EAP session with state 0x630ac9586b03d09a
(155) eap: Finished EAP session with state 0x630ac9586b03d09a
(155) eap: Previous EAP request found for state 0x630ac9586b03d09a,
released from the list
(155) eap: Peer sent packet with method EAP PEAP (25)
(155) eap: Calling submodule eap_peap to process data
(155) eap_peap: (TLS) EAP Done initial handshake
(155) eap_peap: Session established. Decoding tunneled attributes
(155) eap_peap: PEAP state send tlv failure
(155) eap_peap: Received EAP-TLV response
(155) eap_peap: ERROR: The users session was previously rejected:
returning reject (again.)
(155) eap_peap: This means you need to read the PREVIOUS messages in the
debug output
(155) eap_peap: to find out the reason why the user was rejected
(155) eap_peap: Look for "reject" or "fail". Those earlier messages will
tell you
(155) eap_peap: what went wrong, and how to fix the problem
(155) eap: ERROR: Failed continuing EAP PEAP (25) session. EAP sub-module
failed
(155) eap: Sending EAP Failure (code 4) ID 9 length 4
(155) eap: Failed in EAP select
(155) [eap] = invalid
(155) } # authenticate = invalid
(155) Failed to authenticate the user
(155) Using Post-Auth-Type Reject
(155) # Executing group from file /etc/raddb/sites-enabled/default
(155) Post-Auth-Type REJECT {
(155) attr_filter.access_reject: EXPAND %{User-Name}
(155) attr_filter.access_reject: --> radius
(155) attr_filter.access_reject: Matched entry DEFAULT at line 11
(155) [attr_filter.access_reject] = updated
(155) [eap] = noop
(155) policy remove_reply_message_if_eap {
(155) if (&reply:EAP-Message && &reply:Reply-Message) {
(155) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
(155) else {
(155) [noop] = noop
(155) } # else = noop
(155) } # policy remove_reply_message_if_eap = noop
(155) } # Post-Auth-Type REJECT = updated
(155) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.6 seconds.
(155) Sending delayed response
(155) Sent Access-Reject Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592
length 44
(155) EAP-Message = 0x04090004
(155) Message-Authenticator = 0x00000000000000000000000000000000
Waking up in 3.9 seconds.
(155) Cleaning up request packet ID 0 with timestamp +1384
Ready to process requests
==================================================================================
Below is the wireless authentication settings I was using on the laptop.
[image: image.png]
However,just to troubleshoot, added a user profile in user config file at
sudo vim /etc/raddb/users and below is the same. And when trying to
authenticate with this test profile am able to authenticate and connect to
network (QICAP_5G-2).
[image: image.png]
So, not really sure why authentication is failing for other user profiles
which are not added in the user config file and that is not the expected
behaviour.
Thanks
Krishna
On Thu, 14 Jul 2022 at 12:37, Krishna Chaitanya <
krishna.chaitanya at qi-cap.com> wrote:
> My Question is like, Why is the request being Ignored?
>
> *Krishna Chaitanya Ala*
> *Network and Operations Engineer*
>
> *QI Cap Markets LLP*
> *Bangalore,Karnataka*
> *Slack : krishna.chaitanya at qi-cap.com <krishna.chaitanya at qi-cap.com>*
>
>
>
> On Thu, 14 Jul 2022 at 12:27, Michael Schwartzkopff <ms at sys4.de> wrote:
>
>> What is unclear about the log message:
>>
>> Ignoring request to auth address * port 1812 bound to server default from
>> unknown client 122.1.5.136
>>
>> Muchael
>>
>> 14.07.2022 08:47:56 Krishna Chaitanya <krishna.chaitanya at qi-cap.com>:
>>
>> Thanks very much Michael for your help and after making those changes, I
>> was able to see an Accept message from FreeRadius.
>> However, when trying to authenticate wireless using Freeradius I can see
>> something like below.
>> Please suggest!!
>> ==============================================
>> 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 34082
>> Listening on proxy address :: port 42473
>> Ready to process requests
>> Ignoring request to auth address * port 1812 bound to server default from
>> unknown client 122.1.5.89 port 49457 proto udp
>> Ready to process requests
>> Ignoring request to auth address * port 1812 bound to server default from
>> unknown client 122.1.5.89 port 49457 proto udp
>> Ready to process requests
>> Ignoring request to auth address * port 1812 bound to server default from
>> unknown client 122.1.5.89 port 49457 proto udp
>> Ready to process requests
>> Ignoring request to auth address * port 1812 bound to server default from
>> unknown client 122.1.5.89 port 49457 proto udp
>> Ready to process requests
>> Ignoring request to auth address * port 1812 bound to server default from
>> unknown client 122.1.5.89 port 49457 proto udp
>> Ready to process requests
>> Ignoring request to auth address * port 1812 bound to server default from
>> unknown client 122.1.5.89 port 49457 proto udp
>> Ready to process requests
>> Ignoring request to auth address * port 1812 bound to server default from
>> unknown client 122.1.5.89 port 49457 proto udp
>> Ready to process requests
>> Ignoring request to auth address * port 1812 bound to server default from
>> unknown client 122.1.5.136 port 37235 proto udp
>> Ready to process requests
>>
>> Thanks
>> Krishna
>>
>>
>>
>>
>>
>> On Wed, 13 Jul 2022 at 17:03, Michael Schwartzkopff <ms at sys4.de> wrote:
>>
>>> On 13.07.22 12:59, Krishna Chaitanya wrote:
>>> > Michael,
>>> > The manual search is giving expected results but not sure why I am
>>> seeing 2
>>> > search results.
>>> > Please find the below radtest results along with the manual ldap
>>> search
>>> > report.
>>> >
>>> > ================================================================
>>> > [admin at freeradius raddb]$ ldapsearch -x uid=*krishnachaitanya*
>>> > # extended LDIF
>>> > #
>>> > # LDAPv3
>>> > # base <dc=qi-cap,dc=com> (default) with scope subtree
>>> > # filter: uid=krishnachaitanya
>>> > # requesting: ALL
>>> > #
>>> >
>>> > # krishnachaitanya, users, compat, qi-cap.com
>>> > dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com
>>> > objectClass: posixAccount
>>> > objectClass: ipaOverrideTarget
>>> > objectClass: top
>>> > gecos: Krishna Ala
>>> > cn: Krishna Ala
>>> > uidNumber: 1283800005
>>> > gidNumber: 1283800005
>>> > loginShell: /bin/sh
>>> > homeDirectory: /home/krishnachaitanya
>>> > ipaAnchorUUID::
>>> > OklQQTpxaS1jYXAuY29tOmY1N2IxYTcyLWZlYjAtMTFlYy04MWYxLTA4MDAyNz
>>> > M2ZWMzOQ==
>>> > uid: krishnachaitanya
>>> >
>>> > # krishnachaitanya, users, accounts, qi-cap.com
>>> > dn: uid=krishnachaitanya,cn=users,cn=accounts,dc=qi-cap,dc=com
>>> > givenName: Krishna
>>> > sn: Ala
>>> > uid: krishnachaitanya
>>> > cn: Krishna Ala
>>> > displayName: Krishna Ala
>>> > initials: KA
>>> > gecos: Krishna Ala
>>> > objectClass: top
>>> > objectClass: person
>>> > objectClass: organizationalperson
>>> > objectClass: inetorgperson
>>> > objectClass: inetuser
>>> > objectClass: posixaccount
>>> > objectClass: krbprincipalaux
>>> > objectClass: krbticketpolicyaux
>>> > objectClass: ipaobject
>>> > objectClass: ipasshuser
>>> > objectClass: ipaSshGroupOfPubKeys
>>> > objectClass: mepOriginEntry
>>> > objectClass: ipantuserattrs
>>> > loginShell: /bin/sh
>>> > homeDirectory: /home/krishnachaitanya
>>> > uidNumber: 1283800005
>>> > gidNumber: 1283800005
>>> > ipaNTSecurityIdentifier:
>>> S-1-5-21-2716401607-2924185208-1841578509-1005
>>> >
>>> > # search result
>>> > search: 2
>>> > result: 0 Success
>>> >
>>> > # numResponses: 3
>>> > # numEntries: 2
>>> >
>>> ===============================================================================================
>>>
>>> > [root at freeradius admin]# radiusd -X
>>> > FreeRADIUS Version 3.0.21
>>> > Copyright (C) 1999-2019 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/raddb/dictionary
>>> > including configuration file /etc/raddb/radiusd.conf
>>> > including configuration file /etc/raddb/proxy.conf
>>> > including configuration file /etc/raddb/clients.conf
>>> > including files in directory /etc/raddb/mods-enabled/
>>> > including configuration file /etc/raddb/mods-enabled/always
>>> > including configuration file /etc/raddb/mods-enabled/attr_filter
>>> > including configuration file /etc/raddb/mods-enabled/cache_eap
>>> > including configuration file /etc/raddb/mods-enabled/chap
>>> > including configuration file /etc/raddb/mods-enabled/date
>>> > including configuration file /etc/raddb/mods-enabled/detail
>>> > including configuration file /etc/raddb/mods-enabled/detail.log
>>> > including configuration file /etc/raddb/mods-enabled/digest
>>> > including configuration file /etc/raddb/mods-enabled/dynamic_clients
>>> > including configuration file /etc/raddb/mods-enabled/eap
>>> > including configuration file /etc/raddb/mods-enabled/echo
>>> > including configuration file /etc/raddb/mods-enabled/exec
>>> > including configuration file /etc/raddb/mods-enabled/expiration
>>> > including configuration file /etc/raddb/mods-enabled/expr
>>> > including configuration file /etc/raddb/mods-enabled/files
>>> > including configuration file /etc/raddb/mods-enabled/linelog
>>> > including configuration file /etc/raddb/mods-enabled/logintime
>>> > including configuration file /etc/raddb/mods-enabled/mschap
>>> > including configuration file /etc/raddb/mods-enabled/ntlm_auth
>>> > including configuration file /etc/raddb/mods-enabled/pap
>>> > including configuration file /etc/raddb/mods-enabled/passwd
>>> > including configuration file /etc/raddb/mods-enabled/preprocess
>>> > including configuration file /etc/raddb/mods-enabled/radutmp
>>> > including configuration file /etc/raddb/mods-enabled/realm
>>> > including configuration file /etc/raddb/mods-enabled/replicate
>>> > including configuration file /etc/raddb/mods-enabled/soh
>>> > including configuration file /etc/raddb/mods-enabled/sradutmp
>>> > including configuration file /etc/raddb/mods-enabled/unix
>>> > including configuration file /etc/raddb/mods-enabled/unpack
>>> > including configuration file /etc/raddb/mods-enabled/utf8
>>> > including configuration file /etc/raddb/mods-enabled/ldap
>>> > including files in directory /etc/raddb/policy.d/
>>> > including configuration file /etc/raddb/policy.d/accounting
>>> > including configuration file /etc/raddb/policy.d/canonicalization
>>> > including configuration file /etc/raddb/policy.d/control
>>> > including configuration file /etc/raddb/policy.d/cui
>>> > including configuration file /etc/raddb/policy.d/debug
>>> > including configuration file /etc/raddb/policy.d/dhcp
>>> > including configuration file /etc/raddb/policy.d/eap
>>> > including configuration file /etc/raddb/policy.d/filter
>>> > including configuration file /etc/raddb/policy.d/operator-name
>>> > including configuration file /etc/raddb/policy.d/rfc7542
>>> > including files in directory /etc/raddb/sites-enabled/
>>> > including configuration file /etc/raddb/sites-enabled/default
>>> > including configuration file /etc/raddb/sites-enabled/inner-tunnel
>>> > main {
>>> > security {
>>> > user = "radiusd"
>>> > group = "radiusd"
>>> > allow_core_dumps = no
>>> > }
>>> > name = "radiusd"
>>> > prefix = "/usr"
>>> > localstatedir = "/var"
>>> > logdir = "/var/log/radius"
>>> > run_dir = "/var/run/radiusd"
>>> > }
>>> > main {
>>> > name = "radiusd"
>>> > prefix = "/usr"
>>> > localstatedir = "/var"
>>> > sbindir = "/usr/sbin"
>>> > logdir = "/var/log/radius"
>>> > run_dir = "/var/run/radiusd"
>>> > libdir = "/usr/lib64/freeradius"
>>> > radacctdir = "/var/log/radius/radacct"
>>> > hostname_lookups = no
>>> > max_request_time = 30
>>> > cleanup_delay = 5
>>> > max_requests = 16384
>>> > pidfile = "/var/run/radiusd/radiusd.pid"
>>> > checkrad = "/usr/sbin/checkrad"
>>> > debug_level = 0
>>> > proxy_requests = yes
>>> > log {
>>> > stripped_names = no
>>> > auth = no
>>> > auth_badpass = no
>>> > auth_goodpass = no
>>> > colourise = yes
>>> > msg_denied = "You are already logged in - access denied"
>>> > }
>>> > resources {
>>> > }
>>> > security {
>>> > max_attributes = 200
>>> > reject_delay = 1.000000
>>> > status_server = yes
>>> > }
>>> > }
>>> > radiusd: #### Loading Realms and Home Servers ####
>>> > proxy server {
>>> > retry_delay = 5
>>> > retry_count = 3
>>> > default_fallback = no
>>> > dead_time = 120
>>> > wake_all_if_all_dead = no
>>> > }
>>> > home_server localhost {
>>> > ipaddr = 127.0.0.1
>>> > port = 1812
>>> > type = "auth"
>>> > secret = <<< 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 localhost {
>>> > ipaddr = 122.1.5.84
>>> > 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
>>> > }
>>> > }
>>> > Debugger not 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 Auth-Type = LDAP
>>> > radiusd: #### Instantiating modules ####
>>> > modules {
>>> > # Loaded module rlm_always
>>> > # Loading module "reject" from file /etc/raddb/mods-enabled/always
>>> > always reject {
>>> > rcode = "reject"
>>> > simulcount = 0
>>> > mpp = no
>>> > }
>>> > # Loading module "fail" from file /etc/raddb/mods-enabled/always
>>> > always fail {
>>> > rcode = "fail"
>>> > simulcount = 0
>>> > mpp = no
>>> > }
>>> > # Loading module "ok" from file /etc/raddb/mods-enabled/always
>>> > always ok {
>>> > rcode = "ok"
>>> > simulcount = 0
>>> > mpp = no
>>> > }
>>> > # Loading module "handled" from file /etc/raddb/mods-enabled/always
>>> > always handled {
>>> > rcode = "handled"
>>> > simulcount = 0
>>> > mpp = no
>>> > }
>>> > # Loading module "invalid" from file /etc/raddb/mods-enabled/always
>>> > always invalid {
>>> > rcode = "invalid"
>>> > simulcount = 0
>>> > mpp = no
>>> > }
>>> > # Loading module "userlock" from file
>>> /etc/raddb/mods-enabled/always
>>> > always userlock {
>>> > rcode = "userlock"
>>> > simulcount = 0
>>> > mpp = no
>>> > }
>>> > # Loading module "notfound" from file
>>> /etc/raddb/mods-enabled/always
>>> > always notfound {
>>> > rcode = "notfound"
>>> > simulcount = 0
>>> > mpp = no
>>> > }
>>> > # Loading module "noop" from file /etc/raddb/mods-enabled/always
>>> > always noop {
>>> > rcode = "noop"
>>> > simulcount = 0
>>> > mpp = no
>>> > }
>>> > # Loading module "updated" from file /etc/raddb/mods-enabled/always
>>> > always updated {
>>> > rcode = "updated"
>>> > simulcount = 0
>>> > mpp = no
>>> > }
>>> > # Loaded module rlm_attr_filter
>>> > # Loading module "attr_filter.post-proxy" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > attr_filter attr_filter.post-proxy {
>>> > filename = "/etc/raddb/mods-config/attr_filter/post-proxy"
>>> > key = "%{Realm}"
>>> > relaxed = no
>>> > }
>>> > # Loading module "attr_filter.pre-proxy" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > attr_filter attr_filter.pre-proxy {
>>> > filename = "/etc/raddb/mods-config/attr_filter/pre-proxy"
>>> > key = "%{Realm}"
>>> > relaxed = no
>>> > }
>>> > # Loading module "attr_filter.access_reject" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > attr_filter attr_filter.access_reject {
>>> > filename = "/etc/raddb/mods-config/attr_filter/access_reject"
>>> > key = "%{User-Name}"
>>> > relaxed = no
>>> > }
>>> > # Loading module "attr_filter.access_challenge" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > attr_filter attr_filter.access_challenge {
>>> > filename = "/etc/raddb/mods-config/attr_filter/access_challenge"
>>> > key = "%{User-Name}"
>>> > relaxed = no
>>> > }
>>> > # Loading module "attr_filter.accounting_response" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > attr_filter attr_filter.accounting_response {
>>> > filename = "/etc/raddb/mods-config/attr_filter/accounting_response"
>>> > key = "%{User-Name}"
>>> > relaxed = no
>>> > }
>>> > # Loaded module rlm_cache
>>> > # Loading module "cache_eap" from file
>>> /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 /etc/raddb/mods-enabled/chap
>>> > # Loaded module rlm_date
>>> > # Loading module "date" from file /etc/raddb/mods-enabled/date
>>> > date {
>>> > format = "%b %e %Y %H:%M:%S %Z"
>>> > utc = no
>>> > }
>>> > # Loading module "wispr2date" from file
>>> /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 /etc/raddb/mods-enabled/detail
>>> > detail {
>>> > filename =
>>> >
>>> "/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
>>> > }
>>> > # Loading module "auth_log" from file
>>> /etc/raddb/mods-enabled/detail.log
>>> > detail auth_log {
>>> > filename =
>>> >
>>> "/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
>>> /etc/raddb/mods-enabled/detail.log
>>> > detail reply_log {
>>> > filename =
>>> >
>>> "/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
>>> > /etc/raddb/mods-enabled/detail.log
>>> > detail pre_proxy_log {
>>> > filename =
>>> >
>>> "/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
>>> > /etc/raddb/mods-enabled/detail.log
>>> > detail post_proxy_log {
>>> > filename =
>>> >
>>> "/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_digest
>>> > # Loading module "digest" from file /etc/raddb/mods-enabled/digest
>>> > # Loaded module rlm_dynamic_clients
>>> > # Loading module "dynamic_clients" from file
>>> > /etc/raddb/mods-enabled/dynamic_clients
>>> > # Loaded module rlm_eap
>>> > # Loading module "eap" from file /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
>>> > }
>>> > # Loaded module rlm_exec
>>> > # Loading module "echo" from file /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 /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
>>> /etc/raddb/mods-enabled/expiration
>>> > # Loaded module rlm_expr
>>> > # Loading module "expr" from file /etc/raddb/mods-enabled/expr
>>> > expr {
>>> > safe_characters =
>>> > "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:
>>> > /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
>>> > }
>>> > # Loaded module rlm_files
>>> > # Loading module "files" from file /etc/raddb/mods-enabled/files
>>> > files {
>>> > filename = "/etc/raddb/mods-config/files/authorize"
>>> > acctusersfile = "/etc/raddb/mods-config/files/accounting"
>>> > preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy"
>>> > }
>>> > # Loaded module rlm_linelog
>>> > # Loading module "linelog" from file
>>> /etc/raddb/mods-enabled/linelog
>>> > linelog {
>>> > filename = "/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
>>> > /etc/raddb/mods-enabled/linelog
>>> > linelog log_accounting {
>>> > filename = "/var/log/radius/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
>>> /etc/raddb/mods-enabled/logintime
>>> > logintime {
>>> > minimum_timeout = 60
>>> > }
>>> > # Loaded module rlm_mschap
>>> > # Loading module "mschap" from file /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
>>> > }
>>> > # Loading module "ntlm_auth" from file
>>> /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
>>> > }
>>> > # Loaded module rlm_pap
>>> > # Loading module "pap" from file /etc/raddb/mods-enabled/pap
>>> > pap {
>>> > normalise = yes
>>> > }
>>> > # Loaded module rlm_passwd
>>> > # Loading module "etc_passwd" from file
>>> /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
>>> /etc/raddb/mods-enabled/preprocess
>>> > preprocess {
>>> > huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups"
>>> > hints = "/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
>>> /etc/raddb/mods-enabled/radutmp
>>> > radutmp {
>>> > filename = "/var/log/radius/radutmp"
>>> > username = "%{User-Name}"
>>> > case_sensitive = yes
>>> > check_with_nas = yes
>>> > permissions = 384
>>> > caller_id = yes
>>> > }
>>> > # Loaded module rlm_realm
>>> > # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm
>>> > realm IPASS {
>>> > format = "prefix"
>>> > delimiter = "/"
>>> > ignore_default = no
>>> > ignore_null = no
>>> > }
>>> > # Loading module "suffix" from file /etc/raddb/mods-enabled/realm
>>> > realm suffix {
>>> > format = "suffix"
>>> > delimiter = "@"
>>> > ignore_default = no
>>> > ignore_null = no
>>> > }
>>> > # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm
>>> > realm bangpath {
>>> > format = "prefix"
>>> > delimiter = "!"
>>> > ignore_default = no
>>> > ignore_null = no
>>> > }
>>> > # Loading module "realmpercent" from file
>>> /etc/raddb/mods-enabled/realm
>>> > realm realmpercent {
>>> > format = "suffix"
>>> > delimiter = "%"
>>> > ignore_default = no
>>> > ignore_null = no
>>> > }
>>> > # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm
>>> > realm ntdomain {
>>> > format = "prefix"
>>> > delimiter = "\\"
>>> > ignore_default = no
>>> > ignore_null = no
>>> > }
>>> > # Loaded module rlm_replicate
>>> > # Loading module "replicate" from file
>>> /etc/raddb/mods-enabled/replicate
>>> > # Loaded module rlm_soh
>>> > # Loading module "soh" from file /etc/raddb/mods-enabled/soh
>>> > soh {
>>> > dhcp = yes
>>> > }
>>> > # Loading module "sradutmp" from file
>>> /etc/raddb/mods-enabled/sradutmp
>>> > radutmp sradutmp {
>>> > filename = "/var/log/radius/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 /etc/raddb/mods-enabled/unix
>>> > unix {
>>> > radwtmp = "/var/log/radius/radwtmp"
>>> > }
>>> > Creating attribute Unix-Group
>>> > # Loaded module rlm_unpack
>>> > # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack
>>> > # Loaded module rlm_utf8
>>> > # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8
>>> > # Loaded module rlm_ldap
>>> > # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap
>>> > ldap {
>>> > server = "122.1.5.84"
>>> > 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 = no
>>> > allow_dangling_group_ref = no
>>> > }
>>> > client {
>>> > filter = "(objectClass=radiusClient)"
>>> > scope = "sub"
>>> > base_dn = "O=QI-CAP.COM,CN=Certificate
>>> > Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com"
>>> > }
>>> > profile {
>>> > }
>>> > options {
>>> > ldap_debug = 40
>>> > chase_referrals = yes
>>> > rebind = yes
>>> > net_timeout = 1
>>> > res_timeout = 10
>>> > srv_timelimit = 3
>>> > idle = 60
>>> > probes = 3
>>> > interval = 3
>>> > }
>>> > tls {
>>> > start_tls = no
>>> > }
>>> > }
>>> > Creating attribute LDAP-Group
>>> > instantiate {
>>> > }
>>> > # Instantiating module "reject" from file
>>> /etc/raddb/mods-enabled/always
>>> > # Instantiating module "fail" from file
>>> /etc/raddb/mods-enabled/always
>>> > # Instantiating module "ok" from file
>>> /etc/raddb/mods-enabled/always
>>> > # Instantiating module "handled" from file
>>> /etc/raddb/mods-enabled/always
>>> > # Instantiating module "invalid" from file
>>> /etc/raddb/mods-enabled/always
>>> > # Instantiating module "userlock" from file
>>> /etc/raddb/mods-enabled/always
>>> > # Instantiating module "notfound" from file
>>> /etc/raddb/mods-enabled/always
>>> > # Instantiating module "noop" from file
>>> /etc/raddb/mods-enabled/always
>>> > # Instantiating module "updated" from file
>>> /etc/raddb/mods-enabled/always
>>> > # Instantiating module "attr_filter.post-proxy" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy
>>> > # Instantiating module "attr_filter.pre-proxy" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy
>>> > # Instantiating module "attr_filter.access_reject" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject
>>> > # Instantiating module "attr_filter.access_challenge" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > reading pairlist file
>>> /etc/raddb/mods-config/attr_filter/access_challenge
>>> > # Instantiating module "attr_filter.accounting_response" from file
>>> > /etc/raddb/mods-enabled/attr_filter
>>> > reading pairlist file
>>> /etc/raddb/mods-config/attr_filter/accounting_response
>>> > # Instantiating module "cache_eap" from file
>>> > /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
>>> /etc/raddb/mods-enabled/detail
>>> > # Instantiating module "auth_log" from file
>>> > /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
>>> > /etc/raddb/mods-enabled/detail.log
>>> > # Instantiating module "pre_proxy_log" from file
>>> > /etc/raddb/mods-enabled/detail.log
>>> > # Instantiating module "post_proxy_log" from file
>>> > /etc/raddb/mods-enabled/detail.log
>>> > # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap
>>> > # Linked to sub-module rlm_eap_md5
>>> > # Linked to sub-module rlm_eap_leap
>>> > # 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 = "/etc/raddb/certs"
>>> > pem_file_type = yes
>>> > private_key_file = "/etc/raddb/certs/server.pem"
>>> > certificate_file = "/etc/raddb/certs/server.pem"
>>> > ca_file = "/etc/raddb/certs/ca.pem"
>>> > private_key_password = <<< secret >>>
>>> > dh_file = "/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 = "PROFILE=SYSTEM"
>>> > cipher_server_preference = no
>>> > reject_unknown_intermediate_ca = no
>>> > ecdh_curve = "prime256v1"
>>> > disable_tlsv1 = yes
>>> > disable_tlsv1_1 = yes
>>> > 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
>>> > }
>>> > }
>>> > tls: Please use 'tls_min_version' and 'tls_max_version' instead of
>>> > 'disable_tlsv1'
>>> > tls: Please use 'tls_min_version' and 'tls_max_version' instead of
>>> > 'disable_tlsv1_1'
>>> > tls: Setting DH parameters from /etc/raddb/certs/dh - this is no
>>> longer
>>> > necessary.
>>> > tls: You should comment out the 'dh_file' configuration item.
>>> > # 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
>>> > }
>>> > # Instantiating module "expiration" from file
>>> > /etc/raddb/mods-enabled/expiration
>>> > # Instantiating module "files" from file
>>> /etc/raddb/mods-enabled/files
>>> > reading pairlist file /etc/raddb/mods-config/files/authorize
>>> > reading pairlist file /etc/raddb/mods-config/files/accounting
>>> > reading pairlist file /etc/raddb/mods-config/files/pre-proxy
>>> > # Instantiating module "linelog" from file
>>> /etc/raddb/mods-enabled/linelog
>>> > # Instantiating module "log_accounting" from file
>>> > /etc/raddb/mods-enabled/linelog
>>> > # Instantiating module "logintime" from file
>>> > /etc/raddb/mods-enabled/logintime
>>> > # Instantiating module "mschap" from file
>>> /etc/raddb/mods-enabled/mschap
>>> > rlm_mschap (mschap): using internal authentication
>>> > # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap
>>> > # Instantiating module "etc_passwd" from file
>>> > /etc/raddb/mods-enabled/passwd
>>> > rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
>>> > # Instantiating module "preprocess" from file
>>> > /etc/raddb/mods-enabled/preprocess
>>> > reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups
>>> > reading pairlist file /etc/raddb/mods-config/preprocess/hints
>>> > # Instantiating module "IPASS" from file
>>> /etc/raddb/mods-enabled/realm
>>> > # Instantiating module "suffix" from file
>>> /etc/raddb/mods-enabled/realm
>>> > # Instantiating module "bangpath" from file
>>> /etc/raddb/mods-enabled/realm
>>> > # Instantiating module "realmpercent" from file
>>> > /etc/raddb/mods-enabled/realm
>>> > # Instantiating module "ntdomain" from file
>>> /etc/raddb/mods-enabled/realm
>>> > # Instantiating module "ldap" from file
>>> /etc/raddb/mods-enabled/ldap
>>> > rlm_ldap: libldap vendor: OpenLDAP, version: 20459
>>> > accounting {
>>> > reference = "%{tolower:type.%{Acct-Status-Type}}"
>>> > }
>>> > post-auth {
>>> > reference = "."
>>> > }
>>> > rlm_ldap (ldap): 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
>>> > spread = no
>>> > }
>>> > rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending
>>> slots
>>> > used
>>> > rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389
>>> > rlm_ldap (ldap): Waiting for bind result...
>>> > rlm_ldap (ldap): Bind successful
>>> > rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending
>>> slots
>>> > used
>>> > rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389
>>> > rlm_ldap (ldap): Waiting for bind result...
>>> > rlm_ldap (ldap): Bind successful
>>> > rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending
>>> slots
>>> > used
>>> > rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389
>>> > rlm_ldap (ldap): Waiting for bind result...
>>> > rlm_ldap (ldap): Bind successful
>>> > rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending
>>> slots
>>> > used
>>> > rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389
>>> > rlm_ldap (ldap): Waiting for bind result...
>>> > rlm_ldap (ldap): Bind successful
>>> > rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending
>>> slots
>>> > used
>>> > rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389
>>> > rlm_ldap (ldap): Waiting for bind result...
>>> > rlm_ldap (ldap): Bind successful
>>> > } # modules
>>> > radiusd: #### Loading Virtual Servers ####
>>> > server { # from file /etc/raddb/radiusd.conf
>>> > } # server
>>> > server default { # from file /etc/raddb/sites-enabled/default
>>> > # Loading authenticate {...}
>>> > # Loading authorize {...}
>>> > Ignoring "sql" (see raddb/mods-available/README.rst)
>>> > # Loading preacct {...}
>>> > # Loading accounting {...}
>>> > # Loading post-proxy {...}
>>> > # Loading post-auth {...}
>>> > } # server default
>>> > server inner-tunnel { # from file
>>> /etc/raddb/sites-enabled/inner-tunnel
>>> > # Loading authenticate {...}
>>> > # Loading authorize {...}
>>> > # Loading session {...}
>>> > # Loading post-proxy {...}
>>> > # Loading post-auth {...}
>>> > # Skipping contents of 'if' as it is always 'false' --
>>> > /etc/raddb/sites-enabled/inner-tunnel:341
>>> > } # 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 43356
>>> > Listening on proxy address :: port 50675
>>> > Ready to process requests
>>> > (0) Received Access-Request Id 11 from 122.1.5.84:43809 to
>>> 122.1.5.84:1812
>>> > length 86
>>> > (0) User-Name = "krishnachaitanya"
>>> > (0) User-Password = "Freeip at 1234"
>>> > (0) NAS-IP-Address = 122.1.5.84
>>> > (0) NAS-Port = 1812
>>> > (0) Message-Authenticator = 0x9162e9e3154076ccc69ddab02d33be4e
>>> > (0) # Executing section authorize from file
>>> /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 !~
>>> /@(.+)\.(.+)$/)) {
>>> > (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) [chap] = noop
>>> > (0) [mschap] = noop
>>> > (0) [digest] = noop
>>> > (0) suffix: Checking for suffix after "@"
>>> > (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm
>>> NULL
>>> > (0) suffix: No such realm "NULL"
>>> > (0) [suffix] = noop
>>> > (0) eap: No EAP-Message, not doing EAP
>>> > (0) [eap] = noop
>>> > (0) [files] = noop
>>> > rlm_ldap (ldap): Reserved connection (0)
>>> > (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}})
>>> > (0) ldap: --> (uid=krishnachaitanya)
>>> > (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate
>>> > Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com"
>>> with
>>> > filter "(uid=krishnachaitanya)", scope "sub"
>>> > (0) ldap: Waiting for search result...
>>> > (0) ldap: The specified DN wasn't found
>>> > (0) ldap: Search returned no results
>>> > rlm_ldap (ldap): Released connection (0)
>>> > Need 5 more connections to reach 10 spares
>>> > rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending
>>> slots
>>> > used
>>> > rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389
>>> > rlm_ldap (ldap): Waiting for bind result...
>>> > rlm_ldap (ldap): Bind successful
>>> > (0) [ldap] = notfound
>>> > (0) if ((ok || updated) && User-Password) {
>>> > (0) if ((ok || updated) && User-Password) -> FALSE
>>> > (0) [expiration] = noop
>>> > (0) [logintime] = noop
>>> > (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) [pap] = noop
>>> > (0) } # authorize = ok
>>> > (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type =
>>> > Reject
>>> > (0) Failed to authenticate the user
>>> > (0) Using Post-Auth-Type Reject
>>> > (0) # Executing group from file /etc/raddb/sites-enabled/default
>>> > (0) Post-Auth-Type REJECT {
>>> > (0) attr_filter.access_reject: EXPAND %{User-Name}
>>> > (0) attr_filter.access_reject: --> krishnachaitanya
>>> > (0) attr_filter.access_reject: Matched entry DEFAULT at line 11
>>> > (0) [attr_filter.access_reject] = updated
>>> > (0) [eap] = 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) } # Post-Auth-Type REJECT = updated
>>> > (0) Delaying response for 1.000000 seconds
>>> > Waking up in 0.1 seconds.
>>> > Waking up in 0.8 seconds.
>>> > (0) Sending delayed response
>>> > (0) Sent Access-Reject Id 11 from 122.1.5.84:1812 to 122.1.5.84:43809
>>> > length 20
>>> > Waking up in 3.9 seconds.
>>> > (0) Cleaning up request packet ID 11 with timestamp +10
>>> > Ready to process requests
>>> >
>>> ============================================================================
>>>
>>> >
>>> > *Krishna Chaitanya Ala*
>>> > *Network and Operations Engineer*
>>> >
>>> > *QI Cap Markets LLP*
>>> > *Bangalore,Karnataka*
>>> > *Slack : krishna.chaitanya at qi-cap.com <krishna.chaitanya at qi-cap.com>*
>>> >
>>> >
>>> >
>>> > On Wed, 13 Jul 2022 at 15:25, Michael Schwartzkopff via
>>> Freeradius-Users <
>>> > freeradius-users at lists.freeradius.org> wrote:
>>> >
>>> >> On 13.07.22 11:52, Krishna Chaitanya wrote:
>>> >>> Matthew,
>>> >>> Not really,Somehow, I missed reading all of the debug report.
>>> >>> I am very new to Linux and having a hard time interpreting all of
>>> the
>>> >> Debug
>>> >>> report.
>>> >>> However, After going through the errors:
>>> >>>
>>> >>> 1. I can say that the username is not being used twice.Even,
>>> created
>>> >>> another user profile with username "krishnachaitanya" and
>>> getting
>>> >> the same
>>> >>> error message when running the radtest.
>>> >>> 2. In the next test run, modified "base_dn" details as
>>> >>> 'O=QI-CAP.COM,CN=Certificate
>>> >>> Authority' and the test resulted in the below error.After
>>> reviewing
>>> >> the
>>> >>> highlighted errors, finding it confused to understand and not
>>> really
>>> >> sure
>>> >>> the fix for these errors.As far as I know, PAP can read only
>>> clear
>>> >> text
>>> >>> passwords and in mycase the passwords are not encrypted when
>>> running
>>> >> the
>>> >>> radtest command as "radtest krishnachaitanya *Freeip at 1234
>>> >> *122.1.5.84
>>> >>> 1812 testing123" and not sure why am seeing PAP password
>>> errors.
>>> >>> 3. and I am not sure why am seeing the messages "(0) ldap:
>>> Waiting
>>> >> for
>>> >>> search result...
>>> >>> (0) ldap: The specified DN wasn't found
>>> >>> (0) ldap: Search returned no results" when "rlm_ldap bind is
>>> >> successful".
>>> >>> Is there any relation between them?
>>> >>>
>>> >>> *Please help!*
>>> >>>
>>> >>> [Ready to process requests
>>> >>> (0) Received Access-Request Id 252 from 122.1.5.84:55576 to
>>> >> 122.1.5.84:1812
>>> >>> length 86
>>> >>> (0) User-Name = "krishnachaitanya"
>>> >>> (0) User-Password = "Freeip at 1234"
>>> >>> (0) NAS-IP-Address = 122.1.5.84
>>> >>> (0) NAS-Port = 1812
>>> >>> (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6
>>> >>> (0) # Executing section authorize from file
>>> >> /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 !~
>>> /@(.+)\.(.+)$/)) {
>>> >>> (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) [chap] = noop
>>> >>> (0) [mschap] = noop
>>> >>> (0) [digest] = noop
>>> >>> (0) suffix: Checking for suffix after "@"
>>> >>> (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up
>>> realm
>>> >> NULL
>>> >>> (0) suffix: No such realm "NULL"
>>> >>> (0) [suffix] = noop
>>> >>> (0) eap: No EAP-Message, not doing EAP
>>> >>> (0) [eap] = noop
>>> >>> (0) [files] = noop
>>> >>> rlm_ldap (ldap): Reserved connection (0)
>>> >>> (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}})
>>> >>> (0) ldap: --> (uid=krishnachaitanya)
>>> >>> (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate
>>> Authority"
>>> >> with
>>> >>> filter "(uid=krishnachaitanya)", scope "sub"
>>> >>> (0) ldap: Waiting for search result...
>>> >>> (0) ldap: The specified DN wasn't found
>>> >>> (0) ldap: Search returned no results
>>> >>> rlm_ldap (ldap): Released connection (0)
>>> >>> Need 5 more connections to reach 10 spares
>>> >>> rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending
>>> slots
>>> >>> used
>>> >>> rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389
>>> >>> rlm_ldap (ldap): Waiting for bind result...
>>> >>> rlm_ldap (ldap): Bind successful
>>> >>> (0) [ldap] = notfound
>>> >>> (0) if ((ok || updated) && User-Password) {
>>> >>> (0) if ((ok || updated) && User-Password) -> FALSE
>>> >>> (0) [expiration] = noop
>>> >>> (0) [logintime] = noop
>>> >>> (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) [pap] = noop
>>> >>> (0) } # authorize = ok
>>> >>> (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type
>>> =
>>> >>> Reject
>>> >>> (0) Failed to authenticate the user
>>> >>> (0) Using Post-Auth-Type Reject
>>> >>> (0) # Executing group from file /etc/raddb/sites-enabled/default
>>> >>> (0) Post-Auth-Type REJECT {
>>> >>> (0) attr_filter.access_reject: EXPAND %{User-Name}
>>> >>> (0) attr_filter.access_reject: --> krishnachaitanya
>>> >>> (0) attr_filter.access_reject: Matched entry DEFAULT at line 11
>>> >>> (0) [attr_filter.access_reject] = updated
>>> >>> (0) [eap] = 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) } # Post-Auth-Type REJECT = updated
>>> >>> (0) Delaying response for 1.000000 seconds
>>> >>> Waking up in 0.2 seconds.
>>> >>> Waking up in 0.7 seconds.
>>> >>> (0) Sending delayed response
>>> >>> (0) Sent Access-Reject Id 252 from 122.1.5.84:1812 to
>>> 122.1.5.84:55576
>>> >>> length 20
>>> >>> Waking up in 3.9 seconds.
>>> >>> (0) Cleaning up request packet ID 252 with timestamp +5
>>> >>> Ready to process requests
>>> >>>
>>> >>>
>>> >>> *Krishna Chaitanya Ala*
>>> >>> *Network and Operations Engineer*
>>> >>>
>>> >>>
>>> >>>
>>> >>> On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn at freeradius.org>
>>> wrote:
>>> >>>
>>> >>>> On 08/07/2022 11:45, Krishna Chaitanya wrote:
>>> >>>>> # search result
>>> >>>>> search: 2
>>> >>>>> result: 0 Success
>>> >>>>>
>>> >>>>> # numResponses: 3
>>> >>>>> # numEntries: 2
>>> >>>>> *(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted
>>> entries
>>> >>>>> (should return 1 or 0). Enable sorting, or specify a more
>>> restrictive
>>> >>>>> base_dn, filter or scope(0) ldap: ERROR: The following entries
>>> were
>>> >>>>> returned:(0) ldap: ERROR:
>>> >>>>> uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR:
>>> >>>>> uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com*
>>> >>>>> rlm_ldap (ldap): Released connection (0)
>>> >>>>> Need 5 more connections to reach 10 spares
>>> >>>> Did you read the debug output?
>>> >>>>
>>> >>>> You have two users with the same uid. FreeRADIUS won't have any
>>> idea
>>> >>>> which one you want.
>>> >>>>
>>> >>>> So you need to either not use the same username twice, or configure
>>> >>>> FreeRADIUS with a more restrictive base DN so that it only finds
>>> one of
>>> >>>> them.
>>> >>>>
>>> >>>> --
>>> >>>> Matthew
>>> >>>> -
>>> >>>> List info/subscribe/unsubscribe? See
>>> >>>> http://www.freeradius.org/list/users.html
>>> >>>>
>>> >>> -
>>> >>> List info/subscribe/unsubscribe? See
>>> >> http://www.freeradius.org/list/users.html
>>> >>
>>> >>
>>> >>
>>> >> (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate
>>> Authority"
>>> >> with
>>> >> filter "(uid=krishnachaitanya)", scope "sub"
>>> >> (0) ldap: Waiting for search result...
>>> >> (0) ldap: The specified DN wasn't found
>>> >> (0) ldap: Search returned no results
>>> >>
>>> >> The user is not found in the LDAP. Do you use uid? oder cn? Wrong
>>> part of
>>> >> the tree? Whif is the LDIF of your user?
>>> >> Can you do a manual ldapsearch for the user?
>>> >>
>>> >>
>>> >> Mit freundlichen Grüßen,
>>> >>
>>> >> --
>>> >>
>>> >> [*] sys4 AG
>>> >>
>>> >> https://sys4.de, +49 (89) 30 90 46 64
>>> >> Schleißheimer Straße 26/MG,80333 München
>>> >>
>>> >> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
>>> >> Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
>>> >> Aufsichtsratsvorsitzender: Florian Kirstein
>>> >>
>>> >> -
>>> >> List info/subscribe/unsubscribe? See
>>> >> http://www.freeradius.org/list/users.html
>>> >>
>>>
>>> With ldapsearch you find the object in:
>>>
>>> dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com
>>>
>>>
>>> FR searches in (from the logging):
>>>
>>> (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate
>>> Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com"
>>> with
>>> filter "(uid=krishnachaitanya)", scope "sub"
>>>
>>> You see the difference?
>>>
>>> Mit freundlichen Grüßen,
>>>
>>> --
>>>
>>> [*] sys4 AG
>>>
>>> https://sys4.de, +49 (89) 30 90 46 64
>>> Schleißheimer Straße 26/MG,80333 München
>>>
>>> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
>>> Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
>>> Aufsichtsratsvorsitzender: Florian Kirstein
>>>
>>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 42951 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20220715/d12dc9c1/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 17696 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20220715/d12dc9c1/attachment-0003.png>
More information about the Freeradius-Users
mailing list