]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
doc: add combined test for all entries
authortharkadharshana <tharkadharshana@gmail.com>
Thu, 15 Jan 2026 03:05:13 +0000 (08:35 +0530)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 15 Jan 2026 14:29:43 +0000 (09:29 -0500)
doc/antora/modules/tutorials/pages/matching_users.adoc

index dbeddcedb43e0a6741f94505e8e42bf70b84eb45..5478eb8619300cf57d2bbc794f07c0cc611eb9a3 100644 (file)
@@ -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