From: tharkadharshana Date: Thu, 15 Jan 2026 03:05:13 +0000 (+0530) Subject: doc: add combined test for all entries X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e63960f5bbc579ff755ac58f05fc31fc9def4956;p=thirdparty%2Ffreeradius-server.git doc: add combined test for all entries --- diff --git a/doc/antora/modules/tutorials/pages/matching_users.adoc b/doc/antora/modules/tutorials/pages/matching_users.adoc index dbeddcedb43..5478eb86193 100644 --- a/doc/antora/modules/tutorials/pages/matching_users.adoc +++ b/doc/antora/modules/tutorials/pages/matching_users.adoc @@ -257,6 +257,56 @@ Received Access-Accept Id 245 from 127.0.0.1:1812 to 0.0.0.0:34406 via lo length User-Name = "bob" ---- +=== Testing Entries 1, 2, and 3 + +To trigger all three entries, send a request with both `Service-Type = +Framed-User` and `Framed-Protocol = PPP`. + +[source,bash] +---- +echo -e 'User-Name = "bob", User-Password = "hello", Service-Type = Framed-User, Framed-Protocol = PPP' | radclient -x 127.0.0.1 auth testing123 +---- + +Debug Output: + +[source,text] +---- +(0) files - files - Looking for key "bob" +(0) files - files - Found match "bob" on line 2 of raddb/mods-config/files/authorize +(0) files - files - Preparing attribute updates: +(0) files - Password.Cleartext := hello +(0) files - Reply-Message = Hello, bob! Basic access granted. +(0) files - files - Found match "bob" on line 8 of raddb/mods-config/files/authorize +(0) files - files - Preparing attribute updates: +(0) files - Password.Cleartext := hello +(0) files - Framed-Protocol := ::PPP +(0) files - Service-Type := ::Framed-User +(0) files - Framed-IP-Address := 192.168.10.12 +(0) files (ok) +... +(0) pap - User authenticated successfully +(0) pap (ok) +---- + +Response: + +[source,text] +---- +Sent Access-Request Id 184 from 0.0.0.0:54989 to 127.0.0.1:1812 length 73 + Message-Authenticator = 0x + User-Name = "bob" + User-Password = "hello" + Service-Type = ::Framed-User + Framed-Protocol = ::PPP +Received Access-Accept Id 184 from 127.0.0.1:1812 to 0.0.0.0:54989 via lo length 96 + Message-Authenticator = 0x07c837908f7d3871d37456bbd924ea90 + Reply-Message = "Hello, bob! Basic access granted." + Framed-Protocol = ::PPP + Service-Type = ::Framed-User + Framed-IP-Address = 192.168.10.12 + User-Name = "bob" +---- + == Questions 1. What is the difference between the Framed-Route and Framed-Routing