Hi, I was following this thread https://lists.freeradius.org/pipermail/freeradius-users/2020-May/098077.html There, is said this: "Check the help in the ldap module. There are update control Auth type lines inside that set the Auth type to ldap and will Auth with bind instead of reading the password from ldap". I have followed this guide and it works with radtest but not with wifi. https://www.nasirhafeez.com/freeradius-with-ldaps-on-azure-ad-domain-service... Do I need to have access to the user password in active directory to allow wifi authentication with freeradius? I don't have this access and I thought the "bind as user" mode would solve this (bind with the logging in user, just like ldapsearch) but I think it is not what I thought. How can achieve that? Am I restricted to mschap?
On Aug 16, 2023, at 12:45 PM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
I have followed this guide and it works with radtest but not with wifi.
See the debug output. It will be VERY DESCRIPTIVE. It will even mention active directory.
https://www.nasirhafeez.com/freeradius-with-ldaps-on-azure-ad-domain-service...
Do I need to have access to the user password in active directory to allow wifi authentication with freeradius?
Yes. But it's not about "wifi" as such. It's about the authentication method used. In this case, probably PEAP/MS-CHAPv2.
I don't have this access and I thought the "bind as user" mode would solve this (bind with the logging in user, just like ldapsearch) but I think it is not what I thought.
"bind as user" only works if FreeRADIUS gets a User-Password attribute.
How can achieve that? Am I restricted to mschap?
You can't use MS-CHAP with AD. You need Samba and ntlm_auth as an intermediary. See http://deployingradius.com/documents/configuration/active_directory.html I don't know about AD in the cloud... that's a whole other story. If the WiFi configuration uses TTLS + PAP, then "bind as user" will work. Alan DeKok.
With TTLS + PAP I still need read access to the user password in AD right? This is what is said in the debug output at least, so it doesn't help me because I don't have this access like I said earlier. Citando Alan DeKok <aland@deployingradius.com>:
On Aug 16, 2023, at 12:45 PM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
I have followed this guide and it works with radtest but not with wifi.
See the debug output. It will be VERY DESCRIPTIVE.
It will even mention active directory.
https://www.nasirhafeez.com/freeradius-with-ldaps-on-azure-ad-domain-service...
Do I need to have access to the user password in active directory to allow wifi authentication with freeradius?
Yes. But it's not about "wifi" as such. It's about the authentication method used. In this case, probably PEAP/MS-CHAPv2.
I don't have this access and I thought the "bind as user" mode would solve this (bind with the logging in user, just like ldapsearch) but I think it is not what I thought.
"bind as user" only works if FreeRADIUS gets a User-Password attribute.
How can achieve that? Am I restricted to mschap?
You can't use MS-CHAP with AD. You need Samba and ntlm_auth as an intermediary.
See http://deployingradius.com/documents/configuration/active_directory.html
I don't know about AD in the cloud... that's a whole other story.
If the WiFi configuration uses TTLS + PAP, then "bind as user" will work.
Alan DeKok.
-List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Aug 17, 2023, at 8:14 AM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
With TTLS + PAP I still need read access to the user password in AD right?
No. You can do "bind as user". That's what I said.
This is what is said in the debug output at least, so it doesn't help me because I don't have this access like I said earlier.
Did you read what I said? TTLS+PAP means that "bind as user" will work. Which means that FreeRADIUS doesn't need to read the password. Stop arguing and go test it. It will work. Alan DeKok.
It didn't! That's what I said earlier and thats the reason why I posted in the list. Like I said, I followed that guide and it didn't work. This is what the debug output says: (25) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (25) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) Citando Alan DeKok <aland@deployingradius.com>:
On Aug 17, 2023, at 8:14 AM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
With TTLS + PAP I still need read access to the user password in AD right?
No. You can do "bind as user". That's what I said.
This is what is said in the debug output at least, so it doesn't help me because I don't have this access like I said earlier.
Did you read what I said? TTLS+PAP means that "bind as user" will work. Which means that FreeRADIUS doesn't need to read the password.
Stop arguing and go test it. It will work.
Alan DeKok.
-List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Aug 17, 2023, at 10:02 AM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
It didn't! That's what I said earlier and thats the reason why I posted in the list.
Like I said, I followed that guide and it didn't work.
This is what the debug output says:
(25) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (25) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure)
It says a lot more than that. Post ALL OF THE DEBUG OUTPUT. All of the documentation says to do this. It is extremely unhelpful to ignore all of the available documentation, and to post a message saying "I did stuff, and it didn't work". Again, if you use TTLS+PAP it will work. I will bet that the full debug output shows that it's doing PEAP+MSCHAP. Which won't work. And all of the documentation explains why it won't work. Alan DeKok.
Can you point me where in the debug output it shows that i'ts doing PEAP+MSCHAP? (0) Received Access-Request Id 110 from 10.1.0.14:56440 to 10.1.0.22:1812 length 315 (0) User-Name = "user" (0) Chargeable-User-Identity = 0x08 (0) Location-Capable = Civic-Location (0) Calling-Station-Id = "94-65-2d-20-e7-8a" (0) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (0) NAS-Port = 1 (0) Cisco-AVPair = "audit-session-id=08f910ac001cf280f828de64" (0) Acct-Session-Id = "64de28f8/94:65:2d:20:e7:8a/1967089" (0) Cisco-AVPair = "mDNS=true" (0) NAS-IP-Address = 172.16.249.8 (0) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (0) Airespace-Wlan-Id = 6 (0) Service-Type = Framed-User (0) Framed-MTU = 1300 (0) NAS-Port-Type = Wireless-802.11 (0) Tunnel-Type:0 = VLAN (0) Tunnel-Medium-Type:0 = IEEE-802 (0) Tunnel-Private-Group-Id:0 = "1" (0) EAP-Message = 0x0201001301726f647269676f616e74756e6573 (0) Message-Authenticator = 0x073ed17a2e43240477e9c3f2a01a855f (0) # Executing section authorize from file /etc/freeradius/3.0/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 = "user", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: Peer sent EAP Response (code 2) ID 1 length 19 (0) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the rest of authorize (0) [eap] = ok (0) } # authorize = ok (0) Found Auth-Type = eap (0) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (0) authenticate { (0) eap: Peer sent packet with method EAP Identity (1) (0) eap: Calling submodule eap_md5 to process data (0) eap_md5: Issuing MD5 Challenge (0) eap: Sending EAP Request (code 1) ID 2 length 22 (0) eap: EAP session adding &reply:State = 0xd0b13007d0b3346e (0) [eap] = handled (0) } # authenticate = handled (0) Using Post-Auth-Type Challenge (0) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (0) Challenge { ... } # empty sub-section is ignored (0) Sent Access-Challenge Id 110 from 10.1.0.22:1812 to 10.1.0.14:56440 length 80 (0) EAP-Message = 0x010200160410de1b40c91886dc69131359dd1a2d5c60 (0) Message-Authenticator = 0x00000000000000000000000000000000 (0) State = 0xd0b13007d0b3346e8aa23b1bb1646026 (0) Finished request Waking up in 4.9 seconds. (1) Received Access-Request Id 111 from 10.1.0.14:56440 to 10.1.0.22:1812 length 320 (1) User-Name = "user" (1) Chargeable-User-Identity = 0x08 (1) Location-Capable = Civic-Location (1) Calling-Station-Id = "94-65-2d-20-e7-8a" (1) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (1) NAS-Port = 1 (1) Cisco-AVPair = "audit-session-id=08f910ac001cf280f828de64" (1) Acct-Session-Id = "64de28f8/94:65:2d:20:e7:8a/1967089" (1) Cisco-AVPair = "mDNS=true" (1) NAS-IP-Address = 172.16.249.8 (1) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (1) Airespace-Wlan-Id = 6 (1) Service-Type = Framed-User (1) Framed-MTU = 1300 (1) NAS-Port-Type = Wireless-802.11 (1) Tunnel-Type:0 = VLAN (1) Tunnel-Medium-Type:0 = IEEE-802 (1) Tunnel-Private-Group-Id:0 = "1" (1) EAP-Message = 0x020200060315 (1) State = 0xd0b13007d0b3346e8aa23b1bb1646026 (1) Message-Authenticator = 0x6acb1f100d12e7635d6ca4258cab3cfc (1) session-state: No cached attributes (1) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (1) authorize { (1) policy filter_username { (1) if (&User-Name) { (1) if (&User-Name) -> TRUE (1) if (&User-Name) { (1) if (&User-Name =~ / /) { (1) if (&User-Name =~ / /) -> FALSE (1) if (&User-Name =~ /@[^@]*@/ ) { (1) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (1) if (&User-Name =~ /\.\./ ) { (1) if (&User-Name =~ /\.\./ ) -> FALSE (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (1) if (&User-Name =~ /\.$/) { (1) if (&User-Name =~ /\.$/) -> FALSE (1) if (&User-Name =~ /@\./) { (1) if (&User-Name =~ /@\./) -> FALSE (1) } # if (&User-Name) = notfound (1) } # policy filter_username = notfound (1) [preprocess] = ok (1) [chap] = noop (1) [mschap] = noop (1) [digest] = noop (1) suffix: Checking for suffix after "@" (1) suffix: No '@' in User-Name = "user", looking up realm NULL (1) suffix: No such realm "NULL" (1) [suffix] = noop (1) eap: Peer sent EAP Response (code 2) ID 2 length 6 (1) eap: No EAP Start, assuming it's an on-going EAP conversation (1) [eap] = updated (1) [files] = noop rlm_ldap (ldap): Reserved connection (0) (1) ldap: EXPAND (sAMAccountName=%{%{Stripped-User-Name}:-%{User-Name}}) (1) ldap: --> (sAMAccountName=user) (1) ldap: Performing search in "DC=adm,DC=ifsul,DC=edu,DC=br" with filter "(sAMAccountName=user)", scope "sub" (1) ldap: Waiting for search result... rlm_ldap (ldap): Rebinding to URL ldap://ForestDnsZones.adm.ifsul.edu.br/DC=ForestDnsZones,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Rebinding to URL ldap://DomainDnsZones.adm.ifsul.edu.br/DC=DomainDnsZones,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Rebinding to URL ldap://adm.ifsul.edu.br/CN=Configuration,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Bind successful (1) ldap: User object found at DN "CN=Rodrigo Abrantes Antunes,OU=Users,OU=CampusPelotas,DC=adm,DC=ifsul,DC=edu,DC=br" (1) ldap: Processing user attributes (1) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (1) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (0) Need 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://10.1.0.3:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (1) [ldap] = ok (1) if ((ok || updated) && User-Password && !control:Auth-Type) { (1) if ((ok || updated) && User-Password && !control:Auth-Type) -> FALSE (1) [expiration] = noop (1) [logintime] = noop Not doing PAP as Auth-Type is already set. (1) [pap] = noop (1) } # authorize = updated (1) Found Auth-Type = eap (1) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (1) authenticate { (1) eap: Expiring EAP session with state 0xd0b13007d0b3346e (1) eap: Finished EAP session with state 0xd0b13007d0b3346e (1) eap: Previous EAP request found for state 0xd0b13007d0b3346e, released from the list (1) eap: Peer sent packet with method EAP NAK (3) (1) eap: Found mutually acceptable type TTLS (21) (1) eap: Calling submodule eap_ttls to process data (1) eap_ttls: (TLS) Initiating new session (1) eap: Sending EAP Request (code 1) ID 3 length 6 (1) eap: EAP session adding &reply:State = 0xd0b13007d1b2256e (1) [eap] = handled (1) } # authenticate = handled (1) Using Post-Auth-Type Challenge (1) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (1) Challenge { ... } # empty sub-section is ignored (1) session-state: Saving cached attributes (1) Framed-MTU = 994 (1) Sent Access-Challenge Id 111 from 10.1.0.22:1812 to 10.1.0.14:56440 length 64 (1) EAP-Message = 0x010300061520 (1) Message-Authenticator = 0x00000000000000000000000000000000 (1) State = 0xd0b13007d1b2256e8aa23b1bb1646026 (1) Finished request Waking up in 4.9 seconds. (2) Received Access-Request Id 112 from 10.1.0.14:56440 to 10.1.0.22:1812 length 463 (2) User-Name = "user" (2) Chargeable-User-Identity = 0x08 (2) Location-Capable = Civic-Location (2) Calling-Station-Id = "94-65-2d-20-e7-8a" (2) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (2) NAS-Port = 1 (2) Cisco-AVPair = "audit-session-id=08f910ac001cf280f828de64" (2) Acct-Session-Id = "64de28f8/94:65:2d:20:e7:8a/1967089" (2) Cisco-AVPair = "mDNS=true" (2) NAS-IP-Address = 172.16.249.8 (2) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (2) Airespace-Wlan-Id = 6 (2) Service-Type = Framed-User (2) Framed-MTU = 1300 (2) NAS-Port-Type = Wireless-802.11 (2) Tunnel-Type:0 = VLAN (2) Tunnel-Medium-Type:0 = IEEE-802 (2) Tunnel-Private-Group-Id:0 = "1" (2) EAP-Message = 0x020300951500160301008a010000860303de78176f56f7aefe27c3d351422f2c1755b6cb9fa3da6ea586a05b0b848ac2b500002ac02bc02fc02cc030cca9cca8c009c023c013c027c00ac024c014c028009c009d002f003c0035003d000a01000033ff0100010000170000000d00140012040308040401050308050501080606010201000b00020100000a00080006001d00170018 (2) State = 0xd0b13007d1b2256e8aa23b1bb1646026 (2) Message-Authenticator = 0xefb44e4d8a2901c6432ed6957043e5ba (2) Restoring &session-state (2) &session-state:Framed-MTU = 994 (2) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (2) authorize { (2) policy filter_username { (2) if (&User-Name) { (2) if (&User-Name) -> TRUE (2) if (&User-Name) { (2) if (&User-Name =~ / /) { (2) if (&User-Name =~ / /) -> FALSE (2) if (&User-Name =~ /@[^@]*@/ ) { (2) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (2) if (&User-Name =~ /\.\./ ) { (2) if (&User-Name =~ /\.\./ ) -> FALSE (2) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (2) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (2) if (&User-Name =~ /\.$/) { (2) if (&User-Name =~ /\.$/) -> FALSE (2) if (&User-Name =~ /@\./) { (2) if (&User-Name =~ /@\./) -> FALSE (2) } # if (&User-Name) = notfound (2) } # policy filter_username = notfound (2) [preprocess] = ok (2) [chap] = noop (2) [mschap] = noop (2) [digest] = noop (2) suffix: Checking for suffix after "@" (2) suffix: No '@' in User-Name = "user", looking up realm NULL (2) suffix: No such realm "NULL" (2) [suffix] = noop (2) eap: Peer sent EAP Response (code 2) ID 3 length 149 (2) eap: Continuing tunnel setup (2) [eap] = ok (2) } # authorize = ok (2) Found Auth-Type = eap (2) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (2) authenticate { (2) eap: Expiring EAP session with state 0xd0b13007d1b2256e (2) eap: Finished EAP session with state 0xd0b13007d1b2256e (2) eap: Previous EAP request found for state 0xd0b13007d1b2256e, released from the list (2) eap: Peer sent packet with method EAP TTLS (21) (2) eap: Calling submodule eap_ttls to process data (2) eap_ttls: Authenticate (2) eap_ttls: (TLS) EAP Done initial handshake (2) eap_ttls: (TLS) Handshake state - before SSL initialization (2) eap_ttls: (TLS) Handshake state - Server before SSL initialization (2) eap_ttls: (TLS) Handshake state - Server before SSL initialization (2) eap_ttls: (TLS) recv TLS 1.3 Handshake, ClientHello (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS read client hello (2) eap_ttls: (TLS) send TLS 1.2 Handshake, ServerHello (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write server hello (2) eap_ttls: (TLS) send TLS 1.2 Handshake, Certificate (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write certificate (2) eap_ttls: (TLS) send TLS 1.2 Handshake, ServerKeyExchange (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write key exchange (2) eap_ttls: (TLS) send TLS 1.2 Handshake, ServerHelloDone (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write server done (2) eap_ttls: (TLS) Server : Need to read more data: SSLv3/TLS write server done (2) eap_ttls: (TLS) In Handshake Phase (2) eap: Sending EAP Request (code 1) ID 4 length 1004 (2) eap: EAP session adding &reply:State = 0xd0b13007d2b5256e (2) [eap] = handled (2) } # authenticate = handled (2) Using Post-Auth-Type Challenge (2) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (2) Challenge { ... } # empty sub-section is ignored (2) session-state: Saving cached attributes (2) Framed-MTU = 994 (2) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (2) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (2) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (2) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (2) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (2) Sent Access-Challenge Id 112 from 10.1.0.22:1812 to 10.1.0.14:56440 length 1068 (2) EAP-Message = 0x010403ec15c0000004bd160303003d02000039030399ac899f84a241f42e5249e6e6f55e4a42befff2b7eb0dcb422ec23b5b2b5f8400c02f000011ff01000100000b00040300010200170000160303033c0b0003380003350003323082032e30820216a00302010202140bdc8930fa93c935a1fe2e101c9b969c1b39bf7a300d06092a864886f70d01010b050030263124302206035504030c1b696673303173763030342e61646d2e696673756c2e6564752e6272301e170d3233303831303135343833385a170d3333303830373135343833385a30263124302206035504030c1b696673303173763030342e61646d2e696673756c2e6564752e627230820122300d06092a864886f70d01010105000382010f003082010a02820101008f47503a2f56ac3b1dcd9a368bd44ad374ee8b376cce40386bcc8a4d06347b1d84017a75ae425f9f663c0dc0583a1f45e106eb7f82deb3fdbac0f5798aa47245dc13a126b07ed574ffe995d7f75b0735405a738c641766f3c4 (2) Message-Authenticator = 0x00000000000000000000000000000000 (2) State = 0xd0b13007d2b5256e8aa23b1bb1646026 (2) Finished request Waking up in 4.9 seconds. (3) Received Access-Request Id 113 from 10.1.0.14:56440 to 10.1.0.22:1812 length 320 (3) User-Name = "user" (3) Chargeable-User-Identity = 0x08 (3) Location-Capable = Civic-Location (3) Calling-Station-Id = "94-65-2d-20-e7-8a" (3) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (3) NAS-Port = 1 (3) Cisco-AVPair = "audit-session-id=08f910ac001cf280f828de64" (3) Acct-Session-Id = "64de28f8/94:65:2d:20:e7:8a/1967089" (3) Cisco-AVPair = "mDNS=true" (3) NAS-IP-Address = 172.16.249.8 (3) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (3) Airespace-Wlan-Id = 6 (3) Service-Type = Framed-User (3) Framed-MTU = 1300 (3) NAS-Port-Type = Wireless-802.11 (3) Tunnel-Type:0 = VLAN (3) Tunnel-Medium-Type:0 = IEEE-802 (3) Tunnel-Private-Group-Id:0 = "1" (3) EAP-Message = 0x020400061500 (3) State = 0xd0b13007d2b5256e8aa23b1bb1646026 (3) Message-Authenticator = 0x8fb9cb6f3722e24d80cd22ce061c508a (3) Restoring &session-state (3) &session-state:Framed-MTU = 994 (3) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (3) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (3) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (3) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (3) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (3) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (3) authorize { (3) policy filter_username { (3) if (&User-Name) { (3) if (&User-Name) -> TRUE (3) if (&User-Name) { (3) if (&User-Name =~ / /) { (3) if (&User-Name =~ / /) -> FALSE (3) if (&User-Name =~ /@[^@]*@/ ) { (3) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (3) if (&User-Name =~ /\.\./ ) { (3) if (&User-Name =~ /\.\./ ) -> FALSE (3) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (3) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (3) if (&User-Name =~ /\.$/) { (3) if (&User-Name =~ /\.$/) -> FALSE (3) if (&User-Name =~ /@\./) { (3) if (&User-Name =~ /@\./) -> FALSE (3) } # if (&User-Name) = notfound (3) } # policy filter_username = notfound (3) [preprocess] = ok (3) [chap] = noop (3) [mschap] = noop (3) [digest] = noop (3) suffix: Checking for suffix after "@" (3) suffix: No '@' in User-Name = "user", looking up realm NULL (3) suffix: No such realm "NULL" (3) [suffix] = noop (3) eap: Peer sent EAP Response (code 2) ID 4 length 6 (3) eap: Continuing tunnel setup (3) [eap] = ok (3) } # authorize = ok (3) Found Auth-Type = eap (3) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (3) authenticate { (3) eap: Expiring EAP session with state 0xd0b13007d2b5256e (3) eap: Finished EAP session with state 0xd0b13007d2b5256e (3) eap: Previous EAP request found for state 0xd0b13007d2b5256e, released from the list (3) eap: Peer sent packet with method EAP TTLS (21) (3) eap: Calling submodule eap_ttls to process data (3) eap_ttls: Authenticate (3) eap_ttls: (TLS) Peer ACKed our handshake fragment (3) eap: Sending EAP Request (code 1) ID 5 length 229 (3) eap: EAP session adding &reply:State = 0xd0b13007d3b4256e (3) [eap] = handled (3) } # authenticate = handled (3) Using Post-Auth-Type Challenge (3) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (3) Challenge { ... } # empty sub-section is ignored (3) session-state: Saving cached attributes (3) Framed-MTU = 994 (3) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (3) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (3) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (3) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (3) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (3) Sent Access-Challenge Id 113 from 10.1.0.22:1812 to 10.1.0.14:56440 length 287 (3) EAP-Message = 0x010500e51580000004bd935694d2a672946f8dd8f4dcbd146de3bdda1682df98aa8aff4ef5884e181a0c6bc06be842ffc9b0a3adb396b5fe1cac83b593b3926af66f69ea0da3e2cd5439350b160dc3e384f0800c5c3fdb41bc58c7cb5a4e8869acd39becc5c031a3c893b90566387801e56f9c6abac4489cfe0332f1645ed73820b1f6c82fdcc8801ba4056e7727ae4de0f9a9915f59a69ee0cd17040669b71f8ab72f313d8f1e11bb9e6aadf0f389e6217b5d824c761e2790b1b67f25a5765e095c1518ed949f5844a95ce99fb123f3a69cc99483057f8dc0fe8a2d16030300040e000000 (3) Message-Authenticator = 0x00000000000000000000000000000000 (3) State = 0xd0b13007d3b4256e8aa23b1bb1646026 (3) Finished request Waking up in 4.9 seconds. (4) Received Access-Request Id 114 from 10.1.0.14:56440 to 10.1.0.22:1812 length 413 (4) User-Name = "user" (4) Chargeable-User-Identity = 0x08 (4) Location-Capable = Civic-Location (4) Calling-Station-Id = "94-65-2d-20-e7-8a" (4) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (4) NAS-Port = 1 (4) Cisco-AVPair = "audit-session-id=08f910ac001cf280f828de64" (4) Acct-Session-Id = "64de28f8/94:65:2d:20:e7:8a/1967089" (4) Cisco-AVPair = "mDNS=true" (4) NAS-IP-Address = 172.16.249.8 (4) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (4) Airespace-Wlan-Id = 6 (4) Service-Type = Framed-User (4) Framed-MTU = 1300 (4) NAS-Port-Type = Wireless-802.11 (4) Tunnel-Type:0 = VLAN (4) Tunnel-Medium-Type:0 = IEEE-802 (4) Tunnel-Private-Group-Id:0 = "1" (4) EAP-Message = 0x0205006315001603030025100000212024fa4ea6b7900fd6094f19358a0512903336af60c9ed5d4d1b48b5ab929dce0d1403030001011603030028000000000000000098188b912188f7c3fdf5f376a6c5f23b4ae38c452e34f0651e5709d4d0ff868f (4) State = 0xd0b13007d3b4256e8aa23b1bb1646026 (4) Message-Authenticator = 0xe1c8de260318301176a326809d472675 (4) Restoring &session-state (4) &session-state:Framed-MTU = 994 (4) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (4) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (4) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (4) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (4) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (4) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (4) authorize { (4) policy filter_username { (4) if (&User-Name) { (4) if (&User-Name) -> TRUE (4) if (&User-Name) { (4) if (&User-Name =~ / /) { (4) if (&User-Name =~ / /) -> FALSE (4) if (&User-Name =~ /@[^@]*@/ ) { (4) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (4) if (&User-Name =~ /\.\./ ) { (4) if (&User-Name =~ /\.\./ ) -> FALSE (4) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (4) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (4) if (&User-Name =~ /\.$/) { (4) if (&User-Name =~ /\.$/) -> FALSE (4) if (&User-Name =~ /@\./) { (4) if (&User-Name =~ /@\./) -> FALSE (4) } # if (&User-Name) = notfound (4) } # policy filter_username = notfound (4) [preprocess] = ok (4) [chap] = noop (4) [mschap] = noop (4) [digest] = noop (4) suffix: Checking for suffix after "@" (4) suffix: No '@' in User-Name = "user", looking up realm NULL (4) suffix: No such realm "NULL" (4) [suffix] = noop (4) eap: Peer sent EAP Response (code 2) ID 5 length 99 (4) eap: Continuing tunnel setup (4) [eap] = ok (4) } # authorize = ok (4) Found Auth-Type = eap (4) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (4) authenticate { (4) eap: Expiring EAP session with state 0xd0b13007d3b4256e (4) eap: Finished EAP session with state 0xd0b13007d3b4256e (4) eap: Previous EAP request found for state 0xd0b13007d3b4256e, released from the list (4) eap: Peer sent packet with method EAP TTLS (21) (4) eap: Calling submodule eap_ttls to process data (4) eap_ttls: Authenticate (4) eap_ttls: (TLS) EAP Done initial handshake (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write server done (4) eap_ttls: (TLS) recv TLS 1.2 Handshake, ClientKeyExchange (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS read client key exchange (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS read change cipher spec (4) eap_ttls: (TLS) recv TLS 1.2 Handshake, Finished (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS read finished (4) eap_ttls: (TLS) send TLS 1.2 ChangeCipherSpec (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write change cipher spec (4) eap_ttls: (TLS) send TLS 1.2 Handshake, Finished (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write finished (4) eap_ttls: (TLS) Handshake state - SSL negotiation finished successfully (4) eap_ttls: (TLS) Connection Established (4) eap_ttls: TLS-Session-Cipher-Suite = "ECDHE-RSA-AES128-GCM-SHA256" (4) eap_ttls: TLS-Session-Version = "TLS 1.2" (4) eap: Sending EAP Request (code 1) ID 6 length 61 (4) eap: EAP session adding &reply:State = 0xd0b13007d4b7256e (4) [eap] = handled (4) } # authenticate = handled (4) Using Post-Auth-Type Challenge (4) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (4) Challenge { ... } # empty sub-section is ignored (4) session-state: Saving cached attributes (4) Framed-MTU = 994 (4) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (4) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (4) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (4) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (4) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES128-GCM-SHA256" (4) TLS-Session-Version = "TLS 1.2" (4) Sent Access-Challenge Id 114 from 10.1.0.22:1812 to 10.1.0.14:56440 length 119 (4) EAP-Message = 0x0106003d158000000033140303000101160303002808490d9cfbda337bb9a1be8b062437f40d2269b6168811ae4cc82f2f5d69346a47cfb6c9f5e59460 (4) Message-Authenticator = 0x00000000000000000000000000000000 (4) State = 0xd0b13007d4b7256e8aa23b1bb1646026 (4) Finished request Waking up in 4.9 seconds. (5) Received Access-Request Id 115 from 10.1.0.14:56440 to 10.1.0.22:1812 length 397 (5) User-Name = "user" (5) Chargeable-User-Identity = 0x08 (5) Location-Capable = Civic-Location (5) Calling-Station-Id = "94-65-2d-20-e7-8a" (5) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (5) NAS-Port = 1 (5) Cisco-AVPair = "audit-session-id=08f910ac001cf280f828de64" (5) Acct-Session-Id = "64de28f8/94:65:2d:20:e7:8a/1967089" (5) Cisco-AVPair = "mDNS=true" (5) NAS-IP-Address = 172.16.249.8 (5) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (5) Airespace-Wlan-Id = 6 (5) Service-Type = Framed-User (5) Framed-MTU = 1300 (5) NAS-Port-Type = Wireless-802.11 (5) Tunnel-Type:0 = VLAN (5) Tunnel-Medium-Type:0 = IEEE-802 (5) Tunnel-Private-Group-Id:0 = "1" (5) EAP-Message = 0x020600531500170303004800000000000000014c4ea959e5e96d267c449c740509fc718b7e42f0b65c6c70ea0046b7b893126bdd3aa20602103807c7ff81b8238d10f30223d9fc6adb6ef3decaf01491b82651 (5) State = 0xd0b13007d4b7256e8aa23b1bb1646026 (5) Message-Authenticator = 0xf9e894523322b64d979dc6efbceb955f (5) Restoring &session-state (5) &session-state:Framed-MTU = 994 (5) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (5) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (5) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (5) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES128-GCM-SHA256" (5) &session-state:TLS-Session-Version = "TLS 1.2" (5) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (5) authorize { (5) policy filter_username { (5) if (&User-Name) { (5) if (&User-Name) -> TRUE (5) if (&User-Name) { (5) if (&User-Name =~ / /) { (5) if (&User-Name =~ / /) -> FALSE (5) if (&User-Name =~ /@[^@]*@/ ) { (5) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (5) if (&User-Name =~ /\.\./ ) { (5) if (&User-Name =~ /\.\./ ) -> FALSE (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (5) if (&User-Name =~ /\.$/) { (5) if (&User-Name =~ /\.$/) -> FALSE (5) if (&User-Name =~ /@\./) { (5) if (&User-Name =~ /@\./) -> FALSE (5) } # if (&User-Name) = notfound (5) } # policy filter_username = notfound (5) [preprocess] = ok (5) [chap] = noop (5) [mschap] = noop (5) [digest] = noop (5) suffix: Checking for suffix after "@" (5) suffix: No '@' in User-Name = "user", looking up realm NULL (5) suffix: No such realm "NULL" (5) [suffix] = noop (5) eap: Peer sent EAP Response (code 2) ID 6 length 83 (5) eap: Continuing tunnel setup (5) [eap] = ok (5) } # authorize = ok (5) Found Auth-Type = eap (5) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (5) authenticate { (5) eap: Expiring EAP session with state 0xd0b13007d4b7256e (5) eap: Finished EAP session with state 0xd0b13007d4b7256e (5) eap: Previous EAP request found for state 0xd0b13007d4b7256e, released from the list (5) eap: Peer sent packet with method EAP TTLS (21) (5) eap: Calling submodule eap_ttls to process data (5) eap_ttls: Authenticate (5) eap_ttls: (TLS) EAP Done initial handshake (5) eap_ttls: Session established. Proceeding to decode tunneled attributes (5) eap_ttls: Got tunneled request (5) eap_ttls: User-Name = "user" (5) eap_ttls: User-Password = "password" (5) eap_ttls: FreeRADIUS-Proxied-To = 127.0.0.1 (5) eap_ttls: Sending tunneled request (5) Virtual server inner-tunnel received request (5) User-Name = "user" (5) User-Password = "password" (5) FreeRADIUS-Proxied-To = 127.0.0.1 (5) WARNING: Outer and inner identities are the same. User privacy is compromised. (5) server inner-tunnel { (5) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/inner-tunnel (5) authorize { (5) policy filter_username { (5) if (&User-Name) { (5) if (&User-Name) -> TRUE (5) if (&User-Name) { (5) if (&User-Name =~ / /) { (5) if (&User-Name =~ / /) -> FALSE (5) if (&User-Name =~ /@[^@]*@/ ) { (5) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (5) if (&User-Name =~ /\.\./ ) { (5) if (&User-Name =~ /\.\./ ) -> FALSE (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (5) if (&User-Name =~ /\.$/) { (5) if (&User-Name =~ /\.$/) -> FALSE (5) if (&User-Name =~ /@\./) { (5) if (&User-Name =~ /@\./) -> FALSE (5) } # if (&User-Name) = notfound (5) } # policy filter_username = notfound (5) [chap] = noop (5) [mschap] = noop (5) suffix: Checking for suffix after "@" (5) suffix: No '@' in User-Name = "user", looking up realm NULL (5) suffix: No such realm "NULL" (5) [suffix] = noop (5) update control { (5) &Proxy-To-Realm := LOCAL (5) } # update control = noop (5) eap: No EAP-Message, not doing EAP (5) [eap] = noop (5) [files] = noop rlm_ldap (ldap): Reserved connection (1) (5) ldap: EXPAND (sAMAccountName=%{%{Stripped-User-Name}:-%{User-Name}}) (5) ldap: --> (sAMAccountName=user) (5) ldap: Performing search in "DC=adm,DC=ifsul,DC=edu,DC=br" with filter "(sAMAccountName=user)", scope "sub" (5) ldap: Waiting for search result... rlm_ldap (ldap): Rebinding to URL ldap://ForestDnsZones.adm.ifsul.edu.br/DC=ForestDnsZones,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Rebinding to URL ldap://DomainDnsZones.adm.ifsul.edu.br/DC=DomainDnsZones,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Rebinding to URL ldap://adm.ifsul.edu.br/CN=Configuration,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Bind successful (5) ldap: User object found at DN "CN=Rodrigo Abrantes Antunes,OU=Users,OU=CampusPelotas,DC=adm,DC=ifsul,DC=edu,DC=br" (5) ldap: Processing user attributes (5) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (5) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (1) (5) [ldap] = ok (5) [expiration] = noop (5) [logintime] = noop (5) [pap] = noop (5) } # authorize = ok (5) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (5) Failed to authenticate the user (5) Using Post-Auth-Type Reject (5) # Executing group from file /etc/freeradius/3.0/sites-enabled/inner-tunnel (5) Post-Auth-Type REJECT { (5) attr_filter.access_reject: EXPAND %{User-Name} (5) attr_filter.access_reject: --> user (5) attr_filter.access_reject: Matched entry DEFAULT at line 11 (5) [attr_filter.access_reject] = updated (5) update outer.session-state { (5) &Module-Failure-Message := &request:Module-Failure-Message -> 'No Auth-Type found: rejecting the user via Post-Auth-Type = Reject' (5) } # update outer.session-state = noop (5) } # Post-Auth-Type REJECT = updated (5) } # server inner-tunnel (5) Virtual server sending reply (5) eap_ttls: Got tunneled Access-Reject (5) eap: ERROR: Failed continuing EAP TTLS (21) session. EAP sub-module failed (5) eap: Sending EAP Failure (code 4) ID 6 length 4 (5) eap: Failed in EAP select (5) [eap] = invalid (5) } # authenticate = invalid (5) Failed to authenticate the user (5) Using Post-Auth-Type Reject (5) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (5) Post-Auth-Type REJECT { (5) attr_filter.access_reject: EXPAND %{User-Name} (5) attr_filter.access_reject: --> user (5) attr_filter.access_reject: Matched entry DEFAULT at line 11 (5) [attr_filter.access_reject] = updated (5) [eap] = noop (5) policy remove_reply_message_if_eap { (5) if (&reply:EAP-Message && &reply:Reply-Message) { (5) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (5) else { (5) [noop] = noop (5) } # else = noop (5) } # policy remove_reply_message_if_eap = noop (5) } # Post-Auth-Type REJECT = updated (5) Delaying response for 1.000000 seconds Waking up in 0.3 seconds. Waking up in 0.6 seconds. (5) Sending delayed response (5) Sent Access-Reject Id 115 from 10.1.0.22:1812 to 10.1.0.14:56440 length 44 (5) EAP-Message = 0x04060004 (5) Message-Authenticator = 0x00000000000000000000000000000000 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 110 with timestamp +5 due to cleanup_delay was reached (1) Cleaning up request packet ID 111 with timestamp +5 due to cleanup_delay was reached (2) Cleaning up request packet ID 112 with timestamp +5 due to cleanup_delay was reached (3) Cleaning up request packet ID 113 with timestamp +5 due to cleanup_delay was reached (4) Cleaning up request packet ID 114 with timestamp +5 due to cleanup_delay was reached (5) Cleaning up request packet ID 115 with timestamp +5 due to cleanup_delay was reached Ready to process requests Citando Alan DeKok <aland@deployingradius.com>:
On Aug 17, 2023, at 10:02 AM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
It didn't! That's what I said earlier and thats the reason why I posted in the list.
Like I said, I followed that guide and it didn't work.
This is what the debug output says:
(25) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (25) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure)
It says a lot more than that.
Post ALL OF THE DEBUG OUTPUT.
All of the documentation says to do this.
It is extremely unhelpful to ignore all of the available documentation, and to post a message saying "I did stuff, and it didn't work".
Again, if you use TTLS+PAP it will work.
I will bet that the full debug output shows that it's doing PEAP+MSCHAP. Which won't work. And all of the documentation explains why it won't work.
Alan DeKok.
-List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Aug 17, 2023, at 10:17 AM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
Can you point me where in the debug output it shows that i'ts doing PEAP+MSCHAP?
The point is not to just post to the list and complain. The point is to *understand* what the server is doing. You should also not be surprised that my guess is wrong, because you've been careful to provide as little information as possible until about 4 messages into the conversation. I don't understand why there's such a need to ignore the documentation, and to post vague questions. I also said that TTLS + PAP will work. The only condition is that it needs to be configured properly. With LDAP "bind as user" set in the inner tunnel. The debug log shows the important bit:
... (5) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (5) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (1) (5) [ldap] = ok (5) [expiration] = noop (5) [logintime] = noop (5) [pap] = noop (5) } # authorize = ok (5) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject
If you had posted the full debug log at the start, all of this back and forth could have been avoided. You would have had a simple and clear answer within about ten minutes. Instead, you're getting frustrated that you don't have a solution, and I'm frustrated that you're working hard to avoid getting a solution. And even here you've edited the debug output to remove a good chunk of it. The beginning pieces are often useful when fixing problems like this. That's why we keep saying in ALL of the documentation to post ALL of the debug output. Just... read the documentation and do what it says. It's not hard, and it makes everything easier. The problem here is that you didn't configure the LDAP "bind as user" functionality. Which I said was needed for AD. Go back and read raddb/sites-enabled/inner-tunnel. Look for: # Uncomment this section if you want to use ldap for # authentication. The "Auth-Type ldap { ...}" configuration # section below also has to be uncommented. And then follow the instructions. If the "inner-tunnel" doesn't contain that text, then either it was deleted, or you're running an old version of the server which hasn't had the documentation updated. But I don't know what version you're actually running, because the debug output has been edited, and doesn't show that. You can read the updated documentation on GitHub: https://github.com/FreeRADIUS/freeradius-server/blob/v3.2.x/raddb/sites-avai... Follow those instructions, add the "Auth-Type := LDAP" as documented, and it will work. This is why we write documentation. This is why we ask people to follow documentation. These issues with AD have been known for 15+ years. The main reason people still have difficulty with this is because the documentation is being ignored. Alan DeKok.
You have to know that there are some people that aren't an expert like you, you probably have years of expertise in freeradius, I started to learn it this month. I've thought the full debug output wouldn't be needed in this case, thats why I didn't post in the first message. You could have asked for it in your first message and I would happily provide and all of this would be avoided. The documentation I am reading says nothing about post all the debug output in the list: https://wiki.freeradius.org/guide/freeradius-active-directory-integration-ho... Your guess was wrong because you totally ignored what I said earlier, I said that I was not doing MSCHAP. I configured the LDAP "bind as user" functionality exactly like in the guide I sent you earlier, there is said nothing about inner tunnel. In the default tunnel I uncomented this in authorize: # If you're using Active Directory and PAP, then uncomment # the following lines, and the "Auth-Type LDAP" section below. # # This will let you do PAP authentication to AD. # if ((ok || updated) && User-Password && !control:Auth-Type) { update control { &Auth-Type := ldap } } And this in authenticate: # Uncomment it if you want to use ldap for authentication # # Note that this means "check plain-text password against # the ldap database", which means that EAP won't work, # as it does not supply a plain-text password. # # We do NOT recommend using this. LDAP servers are databases. # They are NOT authentication servers. FreeRADIUS is an # authentication server, and knows what to do with authentication. # LDAP servers do not. # # However, it is necessary for Active Directory, because # Active Directory won't give the passwords to FreeRADIUS. # Auth-Type LDAP { ldap } In the inner tunnel there isn't this text: "However, it is necessary for Active Directory, because Active Directory won't give the passwords to FreeRADIUS." That's why I have missed it, sorry. And sorry if I have not yet mastered all of the concepts of freeradius. Citando Alan DeKok <aland@deployingradius.com>:
On Aug 17, 2023, at 10:17 AM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
Can you point me where in the debug output it shows that i'ts doing PEAP+MSCHAP?
The point is not to just post to the list and complain. The point is to *understand* what the server is doing.
You should also not be surprised that my guess is wrong, because you've been careful to provide as little information as possible until about 4 messages into the conversation. I don't understand why there's such a need to ignore the documentation, and to post vague questions.
I also said that TTLS + PAP will work. The only condition is that it needs to be configured properly. With LDAP "bind as user" set in the inner tunnel.
The debug log shows the important bit:
... (5) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (5) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (1) (5) [ldap] = ok (5) [expiration] = noop (5) [logintime] = noop (5) [pap] = noop (5) } # authorize = ok (5) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject
If you had posted the full debug log at the start, all of this back and forth could have been avoided. You would have had a simple and clear answer within about ten minutes. Instead, you're getting frustrated that you don't have a solution, and I'm frustrated that you're working hard to avoid getting a solution.
And even here you've edited the debug output to remove a good chunk of it. The beginning pieces are often useful when fixing problems like this. That's why we keep saying in ALL of the documentation to post ALL of the debug output. Just... read the documentation and do what it says. It's not hard, and it makes everything easier.
The problem here is that you didn't configure the LDAP "bind as user" functionality. Which I said was needed for AD.
Go back and read raddb/sites-enabled/inner-tunnel.
Look for:
# Uncomment this section if you want to use ldap for # authentication. The "Auth-Type ldap { ...}" configuration # section below also has to be uncommented.
And then follow the instructions.
If the "inner-tunnel" doesn't contain that text, then either it was deleted, or you're running an old version of the server which hasn't had the documentation updated. But I don't know what version you're actually running, because the debug output has been edited, and doesn't show that.
You can read the updated documentation on GitHub: https://github.com/FreeRADIUS/freeradius-server/blob/v3.2.x/raddb/sites-avai...
Follow those instructions, add the "Auth-Type := LDAP" as documented, and it will work.
This is why we write documentation. This is why we ask people to follow documentation. These issues with AD have been known for 15+ years. The main reason people still have difficulty with this is because the documentation is being ignored.
Alan DeKok.
-List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Aug 17, 2023, at 11:22 AM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
You have to know that there are some people that aren't an expert like you, you probably have years of expertise in freeradius, I started to learn it this month.
You don't have to be an expert to read the documentation. You don't have to be an expert to clearly describe what you did.
I've thought the full debug output wouldn't be needed in this case, thats why I didn't post in the first message. You could have asked for it in your first message and I would happily provide and all of this would be avoided.
Or, you could have read the documentation as you were told to do when you joined the list. When you join the list, you get an email saying POST THE FULL DEBUG OUTPUT OR PEOPLE WILL BE MAD AT YOU. All of the "getting started" guides, including the "man" page say to look at the debug output and when asking questions on the list, post the full debug output. Go read it: http://wiki.freeradius.org/list-help
The documentation I am reading says nothing about post all the debug output in the list: https://wiki.freeradius.org/guide/freeradius-active-directory-integration-ho...
Yes, because we don't update every single page to explain how to run the debug output. Instead, the documentation says for ANY problem, RUN IT IN DEBUG MODE AND READ THE OUTPUT.
Your guess was wrong because you totally ignored what I said earlier, I said that I was not doing MSCHAP.
Given you were confused and vague about much else of what you did, I didn't take that part seriously.
I configured the LDAP "bind as user" functionality exactly like in the guide I sent you earlier, there is said nothing about inner tunnel.
Which is why we suggest reading the debug output, and thinking about it. If you see the password in the inner-tunnel, should you configure "bind as user" in the inner-tunnel? Again, it's OK to not be an expert. It's not OK to give vague descriptions "I did stuff and it didn't work". It's not OK to ignore the documentation you get sent when you join the list. Alan DeKok.
I had tought it wasn't necessary in this case, if it was you could have asked. I read the debug output and not understand it very well yet, sorry. It's not so easy for a newbie to understand the documentation and the concepts, this inner tunnel concept for example. I uncomented this in authenticate in the inner tunnel and it still don't work. Auth-Type LDAP { ldap } FreeRADIUS Version 3.2.1 Copyright (C) 1999-2022 The FreeRADIUS server project and contributors There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/freeradius/3.0/dictionary including configuration file /etc/freeradius/3.0/radiusd.conf including configuration file /etc/freeradius/3.0/proxy.conf including configuration file /etc/freeradius/3.0/clients.conf including files in directory /etc/freeradius/3.0/mods-enabled/ including configuration file /etc/freeradius/3.0/mods-enabled/unpack including configuration file /etc/freeradius/3.0/mods-enabled/utf8 including configuration file /etc/freeradius/3.0/mods-enabled/preprocess including configuration file /etc/freeradius/3.0/mods-enabled/logintime including configuration file /etc/freeradius/3.0/mods-enabled/expiration including configuration file /etc/freeradius/3.0/mods-enabled/expr including configuration file /etc/freeradius/3.0/mods-enabled/realm including configuration file /etc/freeradius/3.0/mods-enabled/replicate including configuration file /etc/freeradius/3.0/mods-enabled/unix including configuration file /etc/freeradius/3.0/mods-enabled/echo including configuration file /etc/freeradius/3.0/mods-enabled/eap including configuration file /etc/freeradius/3.0/mods-enabled/sradutmp including configuration file /etc/freeradius/3.0/mods-enabled/pap including configuration file /etc/freeradius/3.0/mods-enabled/ntlm_auth including configuration file /etc/freeradius/3.0/mods-enabled/exec including configuration file /etc/freeradius/3.0/mods-enabled/attr_filter including configuration file /etc/freeradius/3.0/mods-enabled/ldap including configuration file /etc/freeradius/3.0/mods-enabled/always including configuration file /etc/freeradius/3.0/mods-enabled/radutmp including configuration file /etc/freeradius/3.0/mods-enabled/passwd including configuration file /etc/freeradius/3.0/mods-enabled/chap including configuration file /etc/freeradius/3.0/mods-enabled/digest including configuration file /etc/freeradius/3.0/mods-enabled/files including configuration file /etc/freeradius/3.0/mods-enabled/detail.log including configuration file /etc/freeradius/3.0/mods-enabled/detail including configuration file /etc/freeradius/3.0/mods-enabled/soh including configuration file /etc/freeradius/3.0/mods-enabled/linelog including configuration file /etc/freeradius/3.0/mods-enabled/dynamic_clients including configuration file /etc/freeradius/3.0/mods-enabled/mschap including files in directory /etc/freeradius/3.0/policy.d/ including configuration file /etc/freeradius/3.0/policy.d/filter including configuration file /etc/freeradius/3.0/policy.d/control including configuration file /etc/freeradius/3.0/policy.d/accounting including configuration file /etc/freeradius/3.0/policy.d/eap including configuration file /etc/freeradius/3.0/policy.d/abfab-tr including configuration file /etc/freeradius/3.0/policy.d/dhcp including configuration file /etc/freeradius/3.0/policy.d/rfc7542 including configuration file /etc/freeradius/3.0/policy.d/cui including configuration file /etc/freeradius/3.0/policy.d/canonicalization including configuration file /etc/freeradius/3.0/policy.d/operator-name including configuration file /etc/freeradius/3.0/policy.d/debug including configuration file /etc/freeradius/3.0/policy.d/moonshot-targeted-ids including files in directory /etc/freeradius/3.0/sites-enabled/ including configuration file /etc/freeradius/3.0/sites-enabled/inner-tunnel including configuration file /etc/freeradius/3.0/sites-enabled/default main { security { user = "freerad" group = "freerad" allow_core_dumps = no } name = "freeradius" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/freeradius" run_dir = "/var/run/freeradius" } main { name = "freeradius" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/freeradius" run_dir = "/var/run/freeradius" libdir = "/usr/lib/freeradius" radacctdir = "/var/log/freeradius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 postauth_client_lost = no pidfile = "/var/run/freeradius/freeradius.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 status_server = yes } } 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 } recv_coa { } } home_server_pool my_auth_failover { type = fail-over home_server = localhost } realm example.com { auth_pool = my_auth_failover } realm LOCAL { } radiusd: #### Loading Clients #### client localhost { ipaddr = 127.0.0.1 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client cisco-wlc { ipaddr = 10.1.0.14 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached systemd watchdog is disabled # Creating Auth-Type = mschap # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP # Creating Auth-Type = digest # Creating Autz-Type = New-TLS-Connection radiusd: #### Instantiating modules #### modules { # Loaded module rlm_unpack # Loading module "unpack" from file /etc/freeradius/3.0/mods-enabled/unpack # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/freeradius/3.0/mods-enabled/utf8 # Loaded module rlm_preprocess # Loading module "preprocess" from file /etc/freeradius/3.0/mods-enabled/preprocess preprocess { huntgroups = "/etc/freeradius/3.0/mods-config/preprocess/huntgroups" hints = "/etc/freeradius/3.0/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_logintime # Loading module "logintime" from file /etc/freeradius/3.0/mods-enabled/logintime logintime { minimum_timeout = 60 } # Loaded module rlm_expiration # Loading module "expiration" from file /etc/freeradius/3.0/mods-enabled/expiration # Loaded module rlm_expr # Loading module "expr" from file /etc/freeradius/3.0/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/freeradius/3.0/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/freeradius/3.0/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/freeradius/3.0/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file /etc/freeradius/3.0/mods-enabled/realm realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/freeradius/3.0/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_replicate # Loading module "replicate" from file /etc/freeradius/3.0/mods-enabled/replicate # Loaded module rlm_unix # Loading module "unix" from file /etc/freeradius/3.0/mods-enabled/unix unix { radwtmp = "/var/log/freeradius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_exec # Loading module "echo" from file /etc/freeradius/3.0/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loaded module rlm_eap # Loading module "eap" from file /etc/freeradius/3.0/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_radutmp # Loading module "sradutmp" from file /etc/freeradius/3.0/mods-enabled/sradutmp radutmp sradutmp { filename = "/var/log/freeradius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_pap # Loading module "pap" from file /etc/freeradius/3.0/mods-enabled/pap pap { normalise = yes } # Loading module "ntlm_auth" from file /etc/freeradius/3.0/mods-enabled/ntlm_auth exec ntlm_auth { wait = yes program = "/usr/bin/ntlm_auth --request-nt-key --domain=ADM --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loading module "exec" from file /etc/freeradius/3.0/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/freeradius/3.0/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/freeradius/3.0/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/freeradius/3.0/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/freeradius/3.0/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/freeradius/3.0/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/freeradius/3.0/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/freeradius/3.0/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/freeradius/3.0/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/freeradius/3.0/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/freeradius/3.0/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.coa" from file /etc/freeradius/3.0/mods-enabled/attr_filter attr_filter attr_filter.coa { filename = "/etc/freeradius/3.0/mods-config/attr_filter/coa" key = "%{User-Name}" relaxed = no } # Loaded module rlm_ldap # Loading module "ldap" from file /etc/freeradius/3.0/mods-enabled/ldap ldap { server = "ldap://10.1.0.3" identity = "rpelotasuser@adm" password = <<< secret >>> sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=group)" 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 = "DC=adm,DC=ifsul,DC=edu,DC=br" } 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 # Loaded module rlm_always # Loading module "reject" from file /etc/freeradius/3.0/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/freeradius/3.0/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/freeradius/3.0/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/freeradius/3.0/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/freeradius/3.0/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/freeradius/3.0/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/freeradius/3.0/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/freeradius/3.0/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/freeradius/3.0/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loading module "radutmp" from file /etc/freeradius/3.0/mods-enabled/radutmp radutmp { filename = "/var/log/freeradius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file /etc/freeradius/3.0/mods-enabled/passwd passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_chap # Loading module "chap" from file /etc/freeradius/3.0/mods-enabled/chap # Loaded module rlm_digest # Loading module "digest" from file /etc/freeradius/3.0/mods-enabled/digest # Loaded module rlm_files # Loading module "files" from file /etc/freeradius/3.0/mods-enabled/files files { filename = "/etc/freeradius/3.0/mods-config/files/authorize" acctusersfile = "/etc/freeradius/3.0/mods-config/files/accounting" preproxy_usersfile = "/etc/freeradius/3.0/mods-config/files/pre-proxy" } # Loaded module rlm_detail # Loading module "auth_log" from file /etc/freeradius/3.0/mods-enabled/detail.log detail auth_log { filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file /etc/freeradius/3.0/mods-enabled/detail.log detail reply_log { filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/freeradius/3.0/mods-enabled/detail.log detail pre_proxy_log { filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/freeradius/3.0/mods-enabled/detail.log detail post_proxy_log { filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "detail" from file /etc/freeradius/3.0/mods-enabled/detail detail { filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_soh # Loading module "soh" from file /etc/freeradius/3.0/mods-enabled/soh soh { dhcp = yes } # Loaded module rlm_linelog # Loading module "linelog" from file /etc/freeradius/3.0/mods-enabled/linelog linelog { filename = "/var/log/freeradius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/freeradius/3.0/mods-enabled/linelog linelog log_accounting { filename = "/var/log/freeradius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/freeradius/3.0/mods-enabled/dynamic_clients # Loaded module rlm_mschap # Loading module "mschap" from file /etc/freeradius/3.0/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 } instantiate { } # Instantiating module "preprocess" from file /etc/freeradius/3.0/mods-enabled/preprocess reading pairlist file /etc/freeradius/3.0/mods-config/preprocess/huntgroups reading pairlist file /etc/freeradius/3.0/mods-config/preprocess/hints # Instantiating module "logintime" from file /etc/freeradius/3.0/mods-enabled/logintime # Instantiating module "expiration" from file /etc/freeradius/3.0/mods-enabled/expiration # Instantiating module "IPASS" from file /etc/freeradius/3.0/mods-enabled/realm # Instantiating module "suffix" from file /etc/freeradius/3.0/mods-enabled/realm # Instantiating module "bangpath" from file /etc/freeradius/3.0/mods-enabled/realm # Instantiating module "realmpercent" from file /etc/freeradius/3.0/mods-enabled/realm # Instantiating module "ntdomain" from file /etc/freeradius/3.0/mods-enabled/realm # Instantiating module "eap" from file /etc/freeradius/3.0/mods-enabled/eap # Linked to sub-module rlm_eap_md5 # Linked to sub-module rlm_eap_gtc gtc { challenge = "Password: " auth_type = "PAP" } # Linked to sub-module rlm_eap_tls tls { tls = "tls-common" } tls-config tls-common { verify_depth = 0 ca_path = "/etc/freeradius/3.0/certs" pem_file_type = yes private_key_file = "/etc/ssl/private/ssl-cert-snakeoil.key" certificate_file = "/etc/ssl/certs/ssl-cert-snakeoil.pem" ca_file = "/etc/ssl/certs/ca-certificates.crt" private_key_password = <<< secret >>> fragment_size = 1024 include_length = yes auto_chain = yes check_crl = no check_all_crl = no ca_path_reload_interval = 0 cipher_list = "DEFAULT" cipher_server_preference = no reject_unknown_intermediate_ca = no ecdh_curve = "" tls_max_version = "1.2" tls_min_version = "1.2" cache { enable = no lifetime = 24 max_entries = 255 } verify { skip_if_ocsp_ok = no } ocsp { enable = no override_cert_url = yes url = "http://127.0.0.1/ocsp/" use_nonce = yes timeout = 0 softfail = no } } # Linked to sub-module rlm_eap_ttls ttls { tls = "tls-common" default_eap_type = "md5" copy_request_to_tunnel = no use_tunneled_reply = no virtual_server = "inner-tunnel" include_length = yes require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_peap peap { tls = "tls-common" default_eap_type = "mschapv2" copy_request_to_tunnel = no use_tunneled_reply = no proxy_tunneled_request_as_eap = yes virtual_server = "inner-tunnel" soh = no require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_mschapv2 mschapv2 { with_ntdomain_hack = no send_error = no } # Instantiating module "pap" from file /etc/freeradius/3.0/mods-enabled/pap # Instantiating module "attr_filter.post-proxy" from file /etc/freeradius/3.0/mods-enabled/attr_filter reading pairlist file /etc/freeradius/3.0/mods-config/attr_filter/post-proxy # Instantiating module "attr_filter.pre-proxy" from file /etc/freeradius/3.0/mods-enabled/attr_filter reading pairlist file /etc/freeradius/3.0/mods-config/attr_filter/pre-proxy # Instantiating module "attr_filter.access_reject" from file /etc/freeradius/3.0/mods-enabled/attr_filter reading pairlist file /etc/freeradius/3.0/mods-config/attr_filter/access_reject # Instantiating module "attr_filter.access_challenge" from file /etc/freeradius/3.0/mods-enabled/attr_filter reading pairlist file /etc/freeradius/3.0/mods-config/attr_filter/access_challenge # Instantiating module "attr_filter.accounting_response" from file /etc/freeradius/3.0/mods-enabled/attr_filter reading pairlist file /etc/freeradius/3.0/mods-config/attr_filter/accounting_response # Instantiating module "attr_filter.coa" from file /etc/freeradius/3.0/mods-enabled/attr_filter reading pairlist file /etc/freeradius/3.0/mods-config/attr_filter/coa # Instantiating module "ldap" from file /etc/freeradius/3.0/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20513 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://10.1.0.3: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://10.1.0.3: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://10.1.0.3: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://10.1.0.3: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://10.1.0.3:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful # Instantiating module "reject" from file /etc/freeradius/3.0/mods-enabled/always # Instantiating module "fail" from file /etc/freeradius/3.0/mods-enabled/always # Instantiating module "ok" from file /etc/freeradius/3.0/mods-enabled/always # Instantiating module "handled" from file /etc/freeradius/3.0/mods-enabled/always # Instantiating module "invalid" from file /etc/freeradius/3.0/mods-enabled/always # Instantiating module "userlock" from file /etc/freeradius/3.0/mods-enabled/always # Instantiating module "notfound" from file /etc/freeradius/3.0/mods-enabled/always # Instantiating module "noop" from file /etc/freeradius/3.0/mods-enabled/always # Instantiating module "updated" from file /etc/freeradius/3.0/mods-enabled/always # Instantiating module "etc_passwd" from file /etc/freeradius/3.0/mods-enabled/passwd rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no # Instantiating module "files" from file /etc/freeradius/3.0/mods-enabled/files reading pairlist file /etc/freeradius/3.0/mods-config/files/authorize reading pairlist file /etc/freeradius/3.0/mods-config/files/accounting reading pairlist file /etc/freeradius/3.0/mods-config/files/pre-proxy # Instantiating module "auth_log" from file /etc/freeradius/3.0/mods-enabled/detail.log rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output # Instantiating module "reply_log" from file /etc/freeradius/3.0/mods-enabled/detail.log # Instantiating module "pre_proxy_log" from file /etc/freeradius/3.0/mods-enabled/detail.log # Instantiating module "post_proxy_log" from file /etc/freeradius/3.0/mods-enabled/detail.log # Instantiating module "detail" from file /etc/freeradius/3.0/mods-enabled/detail # Instantiating module "linelog" from file /etc/freeradius/3.0/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/freeradius/3.0/mods-enabled/linelog # Instantiating module "mschap" from file /etc/freeradius/3.0/mods-enabled/mschap rlm_mschap (mschap): using internal authentication } # modules radiusd: #### Loading Virtual Servers #### server { # from file /etc/freeradius/3.0/radiusd.conf } # server server inner-tunnel { # from file /etc/freeradius/3.0/sites-enabled/inner-tunnel # Loading authenticate {...} Compiling Auth-Type PAP for attr Auth-Type Compiling Auth-Type CHAP for attr Auth-Type Compiling Auth-Type MS-CHAP for attr Auth-Type Compiling Auth-Type LDAP for attr Auth-Type # Loading authorize {...} Ignoring "sql" (see raddb/mods-available/README.rst) # Loading session {...} # Loading post-proxy {...} # Loading post-auth {...} # Skipping contents of 'if' as it is always 'false' -- /etc/freeradius/3.0/sites-enabled/inner-tunnel:341 Compiling Post-Auth-Type REJECT for attr Post-Auth-Type } # server inner-tunnel server default { # from file /etc/freeradius/3.0/sites-enabled/default # Loading authenticate {...} Compiling Auth-Type PAP for attr Auth-Type Compiling Auth-Type CHAP for attr Auth-Type Compiling Auth-Type MS-CHAP for attr Auth-Type Compiling Auth-Type LDAP for attr Auth-Type # Loading authorize {...} Compiling Autz-Type New-TLS-Connection for attr Autz-Type # Loading preacct {...} # Loading accounting {...} # Loading post-proxy {...} # Loading post-auth {...} Compiling Post-Auth-Type REJECT for attr Post-Auth-Type Compiling Post-Auth-Type Challenge for attr Post-Auth-Type Compiling Post-Auth-Type Client-Lost for attr Post-Auth-Type } # server default radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } 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 } } Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel 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 proxy address * port 57947 Listening on proxy address :: port 51985 Ready to process requests (0) Received Access-Request Id 164 from 10.1.0.14:56440 to 10.1.0.22:1812 length 315 (0) User-Name = "user" (0) Chargeable-User-Identity = 0x08 (0) Location-Capable = Civic-Location (0) Calling-Station-Id = "94-65-2d-20-e7-8a" (0) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (0) NAS-Port = 1 (0) Cisco-AVPair = "audit-session-id=08f910ac001cf886f43dde64" (0) Acct-Session-Id = "64de3df4/94:65:2d:20:e7:8a/1968729" (0) Cisco-AVPair = "mDNS=true" (0) NAS-IP-Address = 172.16.249.8 (0) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (0) Airespace-Wlan-Id = 6 (0) Service-Type = Framed-User (0) Framed-MTU = 1300 (0) NAS-Port-Type = Wireless-802.11 (0) Tunnel-Type:0 = VLAN (0) Tunnel-Medium-Type:0 = IEEE-802 (0) Tunnel-Private-Group-Id:0 = "1" (0) EAP-Message = 0x0201001301726f647269676f616e74756e6573 (0) Message-Authenticator = 0xf8bf3196fd01899d84813a3ad6b1e16e (0) # Executing section authorize from file /etc/freeradius/3.0/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 = "user", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: Peer sent EAP Response (code 2) ID 1 length 19 (0) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the rest of authorize (0) [eap] = ok (0) } # authorize = ok (0) Found Auth-Type = eap (0) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (0) authenticate { (0) eap: Peer sent packet with method EAP Identity (1) (0) eap: Calling submodule eap_md5 to process data (0) eap_md5: Issuing MD5 Challenge (0) eap: Sending EAP Request (code 1) ID 2 length 22 (0) eap: EAP session adding &reply:State = 0xbf4352c6bf4156eb (0) [eap] = handled (0) } # authenticate = handled (0) Using Post-Auth-Type Challenge (0) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (0) Challenge { ... } # empty sub-section is ignored (0) Sent Access-Challenge Id 164 from 10.1.0.22:1812 to 10.1.0.14:56440 length 80 (0) EAP-Message = 0x010200160410797b7f921b848e25704464d743e40ede (0) Message-Authenticator = 0x00000000000000000000000000000000 (0) State = 0xbf4352c6bf4156ebfdbfcd44d302a35f (0) Finished request Waking up in 4.9 seconds. (1) Received Access-Request Id 165 from 10.1.0.14:56440 to 10.1.0.22:1812 length 320 (1) User-Name = "user" (1) Chargeable-User-Identity = 0x08 (1) Location-Capable = Civic-Location (1) Calling-Station-Id = "94-65-2d-20-e7-8a" (1) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (1) NAS-Port = 1 (1) Cisco-AVPair = "audit-session-id=08f910ac001cf886f43dde64" (1) Acct-Session-Id = "64de3df4/94:65:2d:20:e7:8a/1968729" (1) Cisco-AVPair = "mDNS=true" (1) NAS-IP-Address = 172.16.249.8 (1) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (1) Airespace-Wlan-Id = 6 (1) Service-Type = Framed-User (1) Framed-MTU = 1300 (1) NAS-Port-Type = Wireless-802.11 (1) Tunnel-Type:0 = VLAN (1) Tunnel-Medium-Type:0 = IEEE-802 (1) Tunnel-Private-Group-Id:0 = "1" (1) EAP-Message = 0x020200060315 (1) State = 0xbf4352c6bf4156ebfdbfcd44d302a35f (1) Message-Authenticator = 0xe16f56903f428d0ebefcee4b4b3dedf5 (1) session-state: No cached attributes (1) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (1) authorize { (1) policy filter_username { (1) if (&User-Name) { (1) if (&User-Name) -> TRUE (1) if (&User-Name) { (1) if (&User-Name =~ / /) { (1) if (&User-Name =~ / /) -> FALSE (1) if (&User-Name =~ /@[^@]*@/ ) { (1) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (1) if (&User-Name =~ /\.\./ ) { (1) if (&User-Name =~ /\.\./ ) -> FALSE (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (1) if (&User-Name =~ /\.$/) { (1) if (&User-Name =~ /\.$/) -> FALSE (1) if (&User-Name =~ /@\./) { (1) if (&User-Name =~ /@\./) -> FALSE (1) } # if (&User-Name) = notfound (1) } # policy filter_username = notfound (1) [preprocess] = ok (1) [chap] = noop (1) [mschap] = noop (1) [digest] = noop (1) suffix: Checking for suffix after "@" (1) suffix: No '@' in User-Name = "user", looking up realm NULL (1) suffix: No such realm "NULL" (1) [suffix] = noop (1) eap: Peer sent EAP Response (code 2) ID 2 length 6 (1) eap: No EAP Start, assuming it's an on-going EAP conversation (1) [eap] = updated (1) [files] = noop rlm_ldap (ldap): Reserved connection (0) (1) ldap: EXPAND (sAMAccountName=%{%{Stripped-User-Name}:-%{User-Name}}) (1) ldap: --> (sAMAccountName=user) (1) ldap: Performing search in "DC=adm,DC=ifsul,DC=edu,DC=br" with filter "(sAMAccountName=user)", scope "sub" (1) ldap: Waiting for search result... rlm_ldap (ldap): Rebinding to URL ldap://ForestDnsZones.adm.ifsul.edu.br/DC=ForestDnsZones,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Rebinding to URL ldap://DomainDnsZones.adm.ifsul.edu.br/DC=DomainDnsZones,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Rebinding to URL ldap://adm.ifsul.edu.br/CN=Configuration,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Bind successful (1) ldap: User object found at DN "CN=Rodrigo Abrantes Antunes,OU=Users,OU=CampusPelotas,DC=adm,DC=ifsul,DC=edu,DC=br" (1) ldap: Processing user attributes (1) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (1) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (0) Need 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://10.1.0.3:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (1) [ldap] = ok (1) if ((ok || updated) && User-Password && !control:Auth-Type) { (1) if ((ok || updated) && User-Password && !control:Auth-Type) -> FALSE (1) [expiration] = noop (1) [logintime] = noop Not doing PAP as Auth-Type is already set. (1) [pap] = noop (1) } # authorize = updated (1) Found Auth-Type = eap (1) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (1) authenticate { (1) eap: Expiring EAP session with state 0xbf4352c6bf4156eb (1) eap: Finished EAP session with state 0xbf4352c6bf4156eb (1) eap: Previous EAP request found for state 0xbf4352c6bf4156eb, released from the list (1) eap: Peer sent packet with method EAP NAK (3) (1) eap: Found mutually acceptable type TTLS (21) (1) eap: Calling submodule eap_ttls to process data (1) eap_ttls: (TLS) Initiating new session (1) eap: Sending EAP Request (code 1) ID 3 length 6 (1) eap: EAP session adding &reply:State = 0xbf4352c6be4047eb (1) [eap] = handled (1) } # authenticate = handled (1) Using Post-Auth-Type Challenge (1) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (1) Challenge { ... } # empty sub-section is ignored (1) session-state: Saving cached attributes (1) Framed-MTU = 994 (1) Sent Access-Challenge Id 165 from 10.1.0.22:1812 to 10.1.0.14:56440 length 64 (1) EAP-Message = 0x010300061520 (1) Message-Authenticator = 0x00000000000000000000000000000000 (1) State = 0xbf4352c6be4047ebfdbfcd44d302a35f (1) Finished request Waking up in 4.9 seconds. (2) Received Access-Request Id 166 from 10.1.0.14:56440 to 10.1.0.22:1812 length 463 (2) User-Name = "user" (2) Chargeable-User-Identity = 0x08 (2) Location-Capable = Civic-Location (2) Calling-Station-Id = "94-65-2d-20-e7-8a" (2) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (2) NAS-Port = 1 (2) Cisco-AVPair = "audit-session-id=08f910ac001cf886f43dde64" (2) Acct-Session-Id = "64de3df4/94:65:2d:20:e7:8a/1968729" (2) Cisco-AVPair = "mDNS=true" (2) NAS-IP-Address = 172.16.249.8 (2) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (2) Airespace-Wlan-Id = 6 (2) Service-Type = Framed-User (2) Framed-MTU = 1300 (2) NAS-Port-Type = Wireless-802.11 (2) Tunnel-Type:0 = VLAN (2) Tunnel-Medium-Type:0 = IEEE-802 (2) Tunnel-Private-Group-Id:0 = "1" (2) EAP-Message = 0x020300951500160301008a010000860303d9923ca1edd79019d5b399bba8485dbd8ea39a3e365f53f50d098cb116e1fc7e00002ac02bc02fc02cc030cca9cca8c009c023c013c027c00ac024c014c028009c009d002f003c0035003d000a01000033ff0100010000170000000d00140012040308040401050308050501080606010201000b00020100000a00080006001d00170018 (2) State = 0xbf4352c6be4047ebfdbfcd44d302a35f (2) Message-Authenticator = 0x6671cfba6fd3641dcde857edacf7139c (2) Restoring &session-state (2) &session-state:Framed-MTU = 994 (2) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (2) authorize { (2) policy filter_username { (2) if (&User-Name) { (2) if (&User-Name) -> TRUE (2) if (&User-Name) { (2) if (&User-Name =~ / /) { (2) if (&User-Name =~ / /) -> FALSE (2) if (&User-Name =~ /@[^@]*@/ ) { (2) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (2) if (&User-Name =~ /\.\./ ) { (2) if (&User-Name =~ /\.\./ ) -> FALSE (2) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (2) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (2) if (&User-Name =~ /\.$/) { (2) if (&User-Name =~ /\.$/) -> FALSE (2) if (&User-Name =~ /@\./) { (2) if (&User-Name =~ /@\./) -> FALSE (2) } # if (&User-Name) = notfound (2) } # policy filter_username = notfound (2) [preprocess] = ok (2) [chap] = noop (2) [mschap] = noop (2) [digest] = noop (2) suffix: Checking for suffix after "@" (2) suffix: No '@' in User-Name = "user", looking up realm NULL (2) suffix: No such realm "NULL" (2) [suffix] = noop (2) eap: Peer sent EAP Response (code 2) ID 3 length 149 (2) eap: Continuing tunnel setup (2) [eap] = ok (2) } # authorize = ok (2) Found Auth-Type = eap (2) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (2) authenticate { (2) eap: Expiring EAP session with state 0xbf4352c6be4047eb (2) eap: Finished EAP session with state 0xbf4352c6be4047eb (2) eap: Previous EAP request found for state 0xbf4352c6be4047eb, released from the list (2) eap: Peer sent packet with method EAP TTLS (21) (2) eap: Calling submodule eap_ttls to process data (2) eap_ttls: Authenticate (2) eap_ttls: (TLS) EAP Done initial handshake (2) eap_ttls: (TLS) Handshake state - before SSL initialization (2) eap_ttls: (TLS) Handshake state - Server before SSL initialization (2) eap_ttls: (TLS) Handshake state - Server before SSL initialization (2) eap_ttls: (TLS) recv TLS 1.3 Handshake, ClientHello (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS read client hello (2) eap_ttls: (TLS) send TLS 1.2 Handshake, ServerHello (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write server hello (2) eap_ttls: (TLS) send TLS 1.2 Handshake, Certificate (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write certificate (2) eap_ttls: (TLS) send TLS 1.2 Handshake, ServerKeyExchange (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write key exchange (2) eap_ttls: (TLS) send TLS 1.2 Handshake, ServerHelloDone (2) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write server done (2) eap_ttls: (TLS) Server : Need to read more data: SSLv3/TLS write server done (2) eap_ttls: (TLS) In Handshake Phase (2) eap: Sending EAP Request (code 1) ID 4 length 1004 (2) eap: EAP session adding &reply:State = 0xbf4352c6bd4747eb (2) [eap] = handled (2) } # authenticate = handled (2) Using Post-Auth-Type Challenge (2) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (2) Challenge { ... } # empty sub-section is ignored (2) session-state: Saving cached attributes (2) Framed-MTU = 994 (2) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (2) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (2) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (2) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (2) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (2) Sent Access-Challenge Id 166 from 10.1.0.22:1812 to 10.1.0.14:56440 length 1068 (2) EAP-Message = 0x010403ec15c0000004bd160303003d020000390303acedf1c17c0fb1f563af2b32ae67671001db0ef5132bee6b6e937636af48698b00c02f000011ff01000100000b00040300010200170000160303033c0b0003380003350003323082032e30820216a00302010202140bdc8930fa93c935a1fe2e101c9b969c1b39bf7a300d06092a864886f70d01010b050030263124302206035504030c1b696673303173763030342e61646d2e696673756c2e6564752e6272301e170d3233303831303135343833385a170d3333303830373135343833385a30263124302206035504030c1b696673303173763030342e61646d2e696673756c2e6564752e627230820122300d06092a864886f70d01010105000382010f003082010a02820101008f47503a2f56ac3b1dcd9a368bd44ad374ee8b376cce40386bcc8a4d06347b1d84017a75ae425f9f663c0dc0583a1f45e106eb7f82deb3fdbac0f5798aa47245dc13a126b07ed574ffe995d7f75b0735405a738c641766f3c4 (2) Message-Authenticator = 0x00000000000000000000000000000000 (2) State = 0xbf4352c6bd4747ebfdbfcd44d302a35f (2) Finished request Waking up in 4.9 seconds. (3) Received Access-Request Id 167 from 10.1.0.14:56440 to 10.1.0.22:1812 length 320 (3) User-Name = "user" (3) Chargeable-User-Identity = 0x08 (3) Location-Capable = Civic-Location (3) Calling-Station-Id = "94-65-2d-20-e7-8a" (3) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (3) NAS-Port = 1 (3) Cisco-AVPair = "audit-session-id=08f910ac001cf886f43dde64" (3) Acct-Session-Id = "64de3df4/94:65:2d:20:e7:8a/1968729" (3) Cisco-AVPair = "mDNS=true" (3) NAS-IP-Address = 172.16.249.8 (3) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (3) Airespace-Wlan-Id = 6 (3) Service-Type = Framed-User (3) Framed-MTU = 1300 (3) NAS-Port-Type = Wireless-802.11 (3) Tunnel-Type:0 = VLAN (3) Tunnel-Medium-Type:0 = IEEE-802 (3) Tunnel-Private-Group-Id:0 = "1" (3) EAP-Message = 0x020400061500 (3) State = 0xbf4352c6bd4747ebfdbfcd44d302a35f (3) Message-Authenticator = 0x0fc832bd45ad6b792bbe12924808512e (3) Restoring &session-state (3) &session-state:Framed-MTU = 994 (3) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (3) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (3) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (3) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (3) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (3) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (3) authorize { (3) policy filter_username { (3) if (&User-Name) { (3) if (&User-Name) -> TRUE (3) if (&User-Name) { (3) if (&User-Name =~ / /) { (3) if (&User-Name =~ / /) -> FALSE (3) if (&User-Name =~ /@[^@]*@/ ) { (3) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (3) if (&User-Name =~ /\.\./ ) { (3) if (&User-Name =~ /\.\./ ) -> FALSE (3) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (3) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (3) if (&User-Name =~ /\.$/) { (3) if (&User-Name =~ /\.$/) -> FALSE (3) if (&User-Name =~ /@\./) { (3) if (&User-Name =~ /@\./) -> FALSE (3) } # if (&User-Name) = notfound (3) } # policy filter_username = notfound (3) [preprocess] = ok (3) [chap] = noop (3) [mschap] = noop (3) [digest] = noop (3) suffix: Checking for suffix after "@" (3) suffix: No '@' in User-Name = "user", looking up realm NULL (3) suffix: No such realm "NULL" (3) [suffix] = noop (3) eap: Peer sent EAP Response (code 2) ID 4 length 6 (3) eap: Continuing tunnel setup (3) [eap] = ok (3) } # authorize = ok (3) Found Auth-Type = eap (3) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (3) authenticate { (3) eap: Expiring EAP session with state 0xbf4352c6bd4747eb (3) eap: Finished EAP session with state 0xbf4352c6bd4747eb (3) eap: Previous EAP request found for state 0xbf4352c6bd4747eb, released from the list (3) eap: Peer sent packet with method EAP TTLS (21) (3) eap: Calling submodule eap_ttls to process data (3) eap_ttls: Authenticate (3) eap_ttls: (TLS) Peer ACKed our handshake fragment (3) eap: Sending EAP Request (code 1) ID 5 length 229 (3) eap: EAP session adding &reply:State = 0xbf4352c6bc4647eb (3) [eap] = handled (3) } # authenticate = handled (3) Using Post-Auth-Type Challenge (3) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (3) Challenge { ... } # empty sub-section is ignored (3) session-state: Saving cached attributes (3) Framed-MTU = 994 (3) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (3) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (3) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (3) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (3) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (3) Sent Access-Challenge Id 167 from 10.1.0.22:1812 to 10.1.0.14:56440 length 287 (3) EAP-Message = 0x010500e51580000004bd95d25e5838c12b8a907b7e57b7a716bf151ca62360f8854ca8c8f91c84a95be4f988b7c4e097da4ff465250e315e531e61ff931aaa894c1dd735ddfbac66ddd6ee5ac5c082d739b5edbd0a169c9837f8a127869803711136da47871184927910a5484e68097d1a8378951fca3d0922b4b53e54cb26ed2146abe17d617090a5d899a04f174e4558b5d501422818082c641981bc1fdc1a8b3884f9f40f07d4ab5f79916c73fc5d8e708555d8409f2773d8815365b90796e3498bc6dc7537d53b0a6c6f2e0dd195619dc9c488a3fbcbdbb818a216030300040e000000 (3) Message-Authenticator = 0x00000000000000000000000000000000 (3) State = 0xbf4352c6bc4647ebfdbfcd44d302a35f (3) Finished request Waking up in 4.9 seconds. (4) Received Access-Request Id 168 from 10.1.0.14:56440 to 10.1.0.22:1812 length 413 (4) User-Name = "user" (4) Chargeable-User-Identity = 0x08 (4) Location-Capable = Civic-Location (4) Calling-Station-Id = "94-65-2d-20-e7-8a" (4) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (4) NAS-Port = 1 (4) Cisco-AVPair = "audit-session-id=08f910ac001cf886f43dde64" (4) Acct-Session-Id = "64de3df4/94:65:2d:20:e7:8a/1968729" (4) Cisco-AVPair = "mDNS=true" (4) NAS-IP-Address = 172.16.249.8 (4) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (4) Airespace-Wlan-Id = 6 (4) Service-Type = Framed-User (4) Framed-MTU = 1300 (4) NAS-Port-Type = Wireless-802.11 (4) Tunnel-Type:0 = VLAN (4) Tunnel-Medium-Type:0 = IEEE-802 (4) Tunnel-Private-Group-Id:0 = "1" (4) EAP-Message = 0x020500631500160303002510000021203190a945aeaf05ec2d14b2a19d10ab098b126f89f121a713903d749d001187701403030001011603030028000000000000000035f953d5049d4d9ea5d7ac1803c057a0f3f6cacfb0901cb98aece5fd0e615b7e (4) State = 0xbf4352c6bc4647ebfdbfcd44d302a35f (4) Message-Authenticator = 0x7f8afd248dfbb2730aa9fca898bd358d (4) Restoring &session-state (4) &session-state:Framed-MTU = 994 (4) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (4) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (4) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (4) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (4) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (4) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (4) authorize { (4) policy filter_username { (4) if (&User-Name) { (4) if (&User-Name) -> TRUE (4) if (&User-Name) { (4) if (&User-Name =~ / /) { (4) if (&User-Name =~ / /) -> FALSE (4) if (&User-Name =~ /@[^@]*@/ ) { (4) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (4) if (&User-Name =~ /\.\./ ) { (4) if (&User-Name =~ /\.\./ ) -> FALSE (4) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (4) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (4) if (&User-Name =~ /\.$/) { (4) if (&User-Name =~ /\.$/) -> FALSE (4) if (&User-Name =~ /@\./) { (4) if (&User-Name =~ /@\./) -> FALSE (4) } # if (&User-Name) = notfound (4) } # policy filter_username = notfound (4) [preprocess] = ok (4) [chap] = noop (4) [mschap] = noop (4) [digest] = noop (4) suffix: Checking for suffix after "@" (4) suffix: No '@' in User-Name = "user", looking up realm NULL (4) suffix: No such realm "NULL" (4) [suffix] = noop (4) eap: Peer sent EAP Response (code 2) ID 5 length 99 (4) eap: Continuing tunnel setup (4) [eap] = ok (4) } # authorize = ok (4) Found Auth-Type = eap (4) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (4) authenticate { (4) eap: Expiring EAP session with state 0xbf4352c6bc4647eb (4) eap: Finished EAP session with state 0xbf4352c6bc4647eb (4) eap: Previous EAP request found for state 0xbf4352c6bc4647eb, released from the list (4) eap: Peer sent packet with method EAP TTLS (21) (4) eap: Calling submodule eap_ttls to process data (4) eap_ttls: Authenticate (4) eap_ttls: (TLS) EAP Done initial handshake (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write server done (4) eap_ttls: (TLS) recv TLS 1.2 Handshake, ClientKeyExchange (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS read client key exchange (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS read change cipher spec (4) eap_ttls: (TLS) recv TLS 1.2 Handshake, Finished (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS read finished (4) eap_ttls: (TLS) send TLS 1.2 ChangeCipherSpec (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write change cipher spec (4) eap_ttls: (TLS) send TLS 1.2 Handshake, Finished (4) eap_ttls: (TLS) Handshake state - Server SSLv3/TLS write finished (4) eap_ttls: (TLS) Handshake state - SSL negotiation finished successfully (4) eap_ttls: (TLS) Connection Established (4) eap_ttls: TLS-Session-Cipher-Suite = "ECDHE-RSA-AES128-GCM-SHA256" (4) eap_ttls: TLS-Session-Version = "TLS 1.2" (4) eap: Sending EAP Request (code 1) ID 6 length 61 (4) eap: EAP session adding &reply:State = 0xbf4352c6bb4547eb (4) [eap] = handled (4) } # authenticate = handled (4) Using Post-Auth-Type Challenge (4) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (4) Challenge { ... } # empty sub-section is ignored (4) session-state: Saving cached attributes (4) Framed-MTU = 994 (4) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (4) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (4) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (4) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (4) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (4) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES128-GCM-SHA256" (4) TLS-Session-Version = "TLS 1.2" (4) Sent Access-Challenge Id 168 from 10.1.0.22:1812 to 10.1.0.14:56440 length 119 (4) EAP-Message = 0x0106003d158000000033140303000101160303002863b98b7992a1b0321db625783f520c14f343fecaeaff8e997e1e4dfddbda647f5d9e6da598e077da (4) Message-Authenticator = 0x00000000000000000000000000000000 (4) State = 0xbf4352c6bb4547ebfdbfcd44d302a35f (4) Finished request Waking up in 4.9 seconds. (5) Received Access-Request Id 169 from 10.1.0.14:56440 to 10.1.0.22:1812 length 397 (5) User-Name = "user" (5) Chargeable-User-Identity = 0x08 (5) Location-Capable = Civic-Location (5) Calling-Station-Id = "94-65-2d-20-e7-8a" (5) Called-Station-Id = "64-e9-50-67-4d-b0:testes" (5) NAS-Port = 1 (5) Cisco-AVPair = "audit-session-id=08f910ac001cf886f43dde64" (5) Acct-Session-Id = "64de3df4/94:65:2d:20:e7:8a/1968729" (5) Cisco-AVPair = "mDNS=true" (5) NAS-IP-Address = 172.16.249.8 (5) NAS-Identifier = "IFSUL_PEL_WLAN_CONTROLLER" (5) Airespace-Wlan-Id = 6 (5) Service-Type = Framed-User (5) Framed-MTU = 1300 (5) NAS-Port-Type = Wireless-802.11 (5) Tunnel-Type:0 = VLAN (5) Tunnel-Medium-Type:0 = IEEE-802 (5) Tunnel-Private-Group-Id:0 = "1" (5) EAP-Message = 0x02060053150017030300480000000000000001c6f7a0ba07c9661256288be511c31e14cfe7070585d8fc0050d34e1e933fd48c900ebe5064082bf285da11b155366ecc6716b15e22ebaf6fc024649cca30ad20 (5) State = 0xbf4352c6bb4547ebfdbfcd44d302a35f (5) Message-Authenticator = 0x2676829d7bee70ba1c819aca8b1cf1e7 (5) Restoring &session-state (5) &session-state:Framed-MTU = 994 (5) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (5) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (5) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (5) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (5) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES128-GCM-SHA256" (5) &session-state:TLS-Session-Version = "TLS 1.2" (5) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default (5) authorize { (5) policy filter_username { (5) if (&User-Name) { (5) if (&User-Name) -> TRUE (5) if (&User-Name) { (5) if (&User-Name =~ / /) { (5) if (&User-Name =~ / /) -> FALSE (5) if (&User-Name =~ /@[^@]*@/ ) { (5) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (5) if (&User-Name =~ /\.\./ ) { (5) if (&User-Name =~ /\.\./ ) -> FALSE (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (5) if (&User-Name =~ /\.$/) { (5) if (&User-Name =~ /\.$/) -> FALSE (5) if (&User-Name =~ /@\./) { (5) if (&User-Name =~ /@\./) -> FALSE (5) } # if (&User-Name) = notfound (5) } # policy filter_username = notfound (5) [preprocess] = ok (5) [chap] = noop (5) [mschap] = noop (5) [digest] = noop (5) suffix: Checking for suffix after "@" (5) suffix: No '@' in User-Name = "user", looking up realm NULL (5) suffix: No such realm "NULL" (5) [suffix] = noop (5) eap: Peer sent EAP Response (code 2) ID 6 length 83 (5) eap: Continuing tunnel setup (5) [eap] = ok (5) } # authorize = ok (5) Found Auth-Type = eap (5) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (5) authenticate { (5) eap: Expiring EAP session with state 0xbf4352c6bb4547eb (5) eap: Finished EAP session with state 0xbf4352c6bb4547eb (5) eap: Previous EAP request found for state 0xbf4352c6bb4547eb, released from the list (5) eap: Peer sent packet with method EAP TTLS (21) (5) eap: Calling submodule eap_ttls to process data (5) eap_ttls: Authenticate (5) eap_ttls: (TLS) EAP Done initial handshake (5) eap_ttls: Session established. Proceeding to decode tunneled attributes (5) eap_ttls: Got tunneled request (5) eap_ttls: User-Name = "user" (5) eap_ttls: User-Password = "password" (5) eap_ttls: FreeRADIUS-Proxied-To = 127.0.0.1 (5) eap_ttls: Sending tunneled request (5) Virtual server inner-tunnel received request (5) User-Name = "user" (5) User-Password = "password" (5) FreeRADIUS-Proxied-To = 127.0.0.1 (5) WARNING: Outer and inner identities are the same. User privacy is compromised. (5) server inner-tunnel { (5) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/inner-tunnel (5) authorize { (5) policy filter_username { (5) if (&User-Name) { (5) if (&User-Name) -> TRUE (5) if (&User-Name) { (5) if (&User-Name =~ / /) { (5) if (&User-Name =~ / /) -> FALSE (5) if (&User-Name =~ /@[^@]*@/ ) { (5) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (5) if (&User-Name =~ /\.\./ ) { (5) if (&User-Name =~ /\.\./ ) -> FALSE (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (5) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (5) if (&User-Name =~ /\.$/) { (5) if (&User-Name =~ /\.$/) -> FALSE (5) if (&User-Name =~ /@\./) { (5) if (&User-Name =~ /@\./) -> FALSE (5) } # if (&User-Name) = notfound (5) } # policy filter_username = notfound (5) [chap] = noop (5) [mschap] = noop (5) suffix: Checking for suffix after "@" (5) suffix: No '@' in User-Name = "user", looking up realm NULL (5) suffix: No such realm "NULL" (5) [suffix] = noop (5) update control { (5) &Proxy-To-Realm := LOCAL (5) } # update control = noop (5) eap: No EAP-Message, not doing EAP (5) [eap] = noop (5) [files] = noop rlm_ldap (ldap): Reserved connection (1) (5) ldap: EXPAND (sAMAccountName=%{%{Stripped-User-Name}:-%{User-Name}}) (5) ldap: --> (sAMAccountName=user) (5) ldap: Performing search in "DC=adm,DC=ifsul,DC=edu,DC=br" with filter "(sAMAccountName=user)", scope "sub" (5) ldap: Waiting for search result... rlm_ldap (ldap): Rebinding to URL ldap://ForestDnsZones.adm.ifsul.edu.br/DC=ForestDnsZones,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Rebinding to URL ldap://DomainDnsZones.adm.ifsul.edu.br/DC=DomainDnsZones,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Rebinding to URL ldap://adm.ifsul.edu.br/CN=Configuration,DC=adm,DC=ifsul,DC=edu,DC=br rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Bind successful (5) ldap: User object found at DN "CN=Rodrigo Abrantes Antunes,OU=Users,OU=CampusPelotas,DC=adm,DC=ifsul,DC=edu,DC=br" (5) ldap: Processing user attributes (5) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (5) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (1) (5) [ldap] = ok (5) [expiration] = noop (5) [logintime] = noop (5) [pap] = noop (5) } # authorize = ok (5) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (5) Failed to authenticate the user (5) Using Post-Auth-Type Reject (5) # Executing group from file /etc/freeradius/3.0/sites-enabled/inner-tunnel (5) Post-Auth-Type REJECT { (5) attr_filter.access_reject: EXPAND %{User-Name} (5) attr_filter.access_reject: --> user (5) attr_filter.access_reject: Matched entry DEFAULT at line 11 (5) [attr_filter.access_reject] = updated (5) update outer.session-state { (5) &Module-Failure-Message := &request:Module-Failure-Message -> 'No Auth-Type found: rejecting the user via Post-Auth-Type = Reject' (5) } # update outer.session-state = noop (5) } # Post-Auth-Type REJECT = updated (5) } # server inner-tunnel (5) Virtual server sending reply (5) eap_ttls: Got tunneled Access-Reject (5) eap: ERROR: Failed continuing EAP TTLS (21) session. EAP sub-module failed (5) eap: Sending EAP Failure (code 4) ID 6 length 4 (5) eap: Failed in EAP select (5) [eap] = invalid (5) } # authenticate = invalid (5) Failed to authenticate the user (5) Using Post-Auth-Type Reject (5) # Executing group from file /etc/freeradius/3.0/sites-enabled/default (5) Post-Auth-Type REJECT { (5) attr_filter.access_reject: EXPAND %{User-Name} (5) attr_filter.access_reject: --> user (5) attr_filter.access_reject: Matched entry DEFAULT at line 11 (5) [attr_filter.access_reject] = updated (5) [eap] = noop (5) policy remove_reply_message_if_eap { (5) if (&reply:EAP-Message && &reply:Reply-Message) { (5) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (5) else { (5) [noop] = noop (5) } # else = noop (5) } # policy remove_reply_message_if_eap = noop (5) } # Post-Auth-Type REJECT = updated (5) Delaying response for 1.000000 seconds Waking up in 0.3 seconds. Waking up in 0.6 seconds. (5) Sending delayed response (5) Sent Access-Reject Id 169 from 10.1.0.22:1812 to 10.1.0.14:56440 length 44 (5) EAP-Message = 0x04060004 (5) Message-Authenticator = 0x00000000000000000000000000000000 Waking up in 3.9 seconds. Citando Alan DeKok <aland@deployingradius.com>:
On Aug 17, 2023, at 11:22 AM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
You have to know that there are some people that aren't an expert like you, you probably have years of expertise in freeradius, I started to learn it this month.
You don't have to be an expert to read the documentation. You don't have to be an expert to clearly describe what you did.
I've thought the full debug output wouldn't be needed in this case, thats why I didn't post in the first message. You could have asked for it in your first message and I would happily provide and all of this would be avoided.
Or, you could have read the documentation as you were told to do when you joined the list.
When you join the list, you get an email saying POST THE FULL DEBUG OUTPUT OR PEOPLE WILL BE MAD AT YOU.
All of the "getting started" guides, including the "man" page say to look at the debug output and when asking questions on the list, post the full debug output.
Go read it: http://wiki.freeradius.org/list-help
The documentation I am reading says nothing about post all the debug output in the list: https://wiki.freeradius.org/guide/freeradius-active-directory-integration-ho...
Yes, because we don't update every single page to explain how to run the debug output. Instead, the documentation says for ANY problem, RUN IT IN DEBUG MODE AND READ THE OUTPUT.
Your guess was wrong because you totally ignored what I said earlier, I said that I was not doing MSCHAP.
Given you were confused and vague about much else of what you did, I didn't take that part seriously.
I configured the LDAP "bind as user" functionality exactly like in the guide I sent you earlier, there is said nothing about inner tunnel.
Which is why we suggest reading the debug output, and thinking about it.
If you see the password in the inner-tunnel, should you configure "bind as user" in the inner-tunnel?
Again, it's OK to not be an expert. It's not OK to give vague descriptions "I did stuff and it didn't work". It's not OK to ignore the documentation you get sent when you join the list.
Alan DeKok.
-List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Following this link I found that my inner tunnel file is missing the authorize section for ldap https://github.com/FreeRADIUS/freeradius-server/blob/v3.2.x/raddb/sites-avai... I added this in the end of authorize in inner tunnel: if (!&control.Auth-Type && &User-Password) { update control { &Auth-Type := LDAP } } Then I got this: FreeRADIUS Version 3.2.1 Copyright (C) 1999-2022 The FreeRADIUS server project and contributors There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/freeradius/3.0/dictionary including configuration file /etc/freeradius/3.0/radiusd.conf including configuration file /etc/freeradius/3.0/proxy.conf including configuration file /etc/freeradius/3.0/clients.conf including files in directory /etc/freeradius/3.0/mods-enabled/ including configuration file /etc/freeradius/3.0/mods-enabled/unpack including configuration file /etc/freeradius/3.0/mods-enabled/utf8 including configuration file /etc/freeradius/3.0/mods-enabled/preprocess including configuration file /etc/freeradius/3.0/mods-enabled/logintime including configuration file /etc/freeradius/3.0/mods-enabled/expiration including configuration file /etc/freeradius/3.0/mods-enabled/expr including configuration file /etc/freeradius/3.0/mods-enabled/realm including configuration file /etc/freeradius/3.0/mods-enabled/replicate including configuration file /etc/freeradius/3.0/mods-enabled/unix including configuration file /etc/freeradius/3.0/mods-enabled/echo including configuration file /etc/freeradius/3.0/mods-enabled/eap including configuration file /etc/freeradius/3.0/mods-enabled/sradutmp including configuration file /etc/freeradius/3.0/mods-enabled/pap including configuration file /etc/freeradius/3.0/mods-enabled/ntlm_auth including configuration file /etc/freeradius/3.0/mods-enabled/exec including configuration file /etc/freeradius/3.0/mods-enabled/attr_filter including configuration file /etc/freeradius/3.0/mods-enabled/ldap including configuration file /etc/freeradius/3.0/mods-enabled/always including configuration file /etc/freeradius/3.0/mods-enabled/radutmp including configuration file /etc/freeradius/3.0/mods-enabled/passwd including configuration file /etc/freeradius/3.0/mods-enabled/chap including configuration file /etc/freeradius/3.0/mods-enabled/digest including configuration file /etc/freeradius/3.0/mods-enabled/files including configuration file /etc/freeradius/3.0/mods-enabled/detail.log including configuration file /etc/freeradius/3.0/mods-enabled/detail including configuration file /etc/freeradius/3.0/mods-enabled/soh including configuration file /etc/freeradius/3.0/mods-enabled/linelog including configuration file /etc/freeradius/3.0/mods-enabled/dynamic_clients including configuration file /etc/freeradius/3.0/mods-enabled/mschap including files in directory /etc/freeradius/3.0/policy.d/ including configuration file /etc/freeradius/3.0/policy.d/filter including configuration file /etc/freeradius/3.0/policy.d/control including configuration file /etc/freeradius/3.0/policy.d/accounting including configuration file /etc/freeradius/3.0/policy.d/eap including configuration file /etc/freeradius/3.0/policy.d/abfab-tr including configuration file /etc/freeradius/3.0/policy.d/dhcp including configuration file /etc/freeradius/3.0/policy.d/rfc7542 including configuration file /etc/freeradius/3.0/policy.d/cui including configuration file /etc/freeradius/3.0/policy.d/canonicalization including configuration file /etc/freeradius/3.0/policy.d/operator-name including configuration file /etc/freeradius/3.0/policy.d/debug including configuration file /etc/freeradius/3.0/policy.d/moonshot-targeted-ids including files in directory /etc/freeradius/3.0/sites-enabled/ including configuration file /etc/freeradius/3.0/sites-enabled/inner-tunnel /etc/freeradius/3.0/sites-enabled/inner-tunnel[176]: Parse error in condition /etc/freeradius/3.0/sites-enabled/inner-tunnel[176]: (!&control.Auth-Type && &User-Password) { /etc/freeradius/3.0/sites-enabled/inner-tunnel[176]: ^ Invalid request qualifier Errors reading or parsing /etc/freeradius/3.0/radiusd.conf Citando Alan DeKok <aland@deployingradius.com>:
On Aug 17, 2023, at 11:22 AM, Rodrigo Abrantes Antunes <rodrigoantunes@pelotas.ifsul.edu.br> wrote:
You have to know that there are some people that aren't an expert like you, you probably have years of expertise in freeradius, I started to learn it this month.
You don't have to be an expert to read the documentation. You don't have to be an expert to clearly describe what you did.
I've thought the full debug output wouldn't be needed in this case, thats why I didn't post in the first message. You could have asked for it in your first message and I would happily provide and all of this would be avoided.
Or, you could have read the documentation as you were told to do when you joined the list.
When you join the list, you get an email saying POST THE FULL DEBUG OUTPUT OR PEOPLE WILL BE MAD AT YOU.
All of the "getting started" guides, including the "man" page say to look at the debug output and when asking questions on the list, post the full debug output.
Go read it: http://wiki.freeradius.org/list-help
The documentation I am reading says nothing about post all the debug output in the list: https://wiki.freeradius.org/guide/freeradius-active-directory-integration-ho...
Yes, because we don't update every single page to explain how to run the debug output. Instead, the documentation says for ANY problem, RUN IT IN DEBUG MODE AND READ THE OUTPUT.
Your guess was wrong because you totally ignored what I said earlier, I said that I was not doing MSCHAP.
Given you were confused and vague about much else of what you did, I didn't take that part seriously.
I configured the LDAP "bind as user" functionality exactly like in the guide I sent you earlier, there is said nothing about inner tunnel.
Which is why we suggest reading the debug output, and thinking about it.
If you see the password in the inner-tunnel, should you configure "bind as user" in the inner-tunnel?
Again, it's OK to not be an expert. It's not OK to give vague descriptions "I did stuff and it didn't work". It's not OK to ignore the documentation you get sent when you join the list.
Alan DeKok.
-List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 17/08/2023 17:18, Rodrigo Abrantes Antunes wrote:
Following this link I found that my inner tunnel file is missing the authorize section for ldap
https://github.com/FreeRADIUS/freeradius-server/blob/v3.2.x/raddb/sites-avai...
I added this in the end of authorize in inner tunnel:
if (!&control.Auth-Type && &User-Password) { update control { &Auth-Type := LDAP } }
Use "control:", not "control." The "." is v4 (unreleased development) terminology. I've updated the example. -- Matthew
It worked! Thanks a lot! Citando Matthew Newton via Freeradius-Users <freeradius-users@lists.freeradius.org>:
On 17/08/2023 17:18, Rodrigo Abrantes Antunes wrote:
Following this link I found that my inner tunnel file is missing the authorize section for ldap
https://github.com/FreeRADIUS/freeradius-server/blob/v3.2.x/raddb/sites-avai...
I added this in the end of authorize in inner tunnel:
if (!&control.Auth-Type && &User-Password) { update control { &Auth-Type := LDAP } }
Use "control:", not "control."
The "." is v4 (unreleased development) terminology. I've updated the example.
-- Matthew -List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Alan DeKok -
Matthew Newton -
Rodrigo Abrantes Antunes