]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
The automatic state machine is now working correctly for ASCII auth
authorNick Porter <nick@portercomputing.co.uk>
Tue, 11 Jul 2023 14:59:08 +0000 (15:59 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 11 Jul 2023 15:01:17 +0000 (16:01 +0100)
src/tests/tacacs/config/radiusd.conf

index b66b0ff3b62d343dc899b3483e84284c2f5dd2ec..2721dbfde0d0c9492cbfe4d4fccc0f66ffb849e1 100644 (file)
@@ -126,21 +126,6 @@ server test {
        }
 
        authenticate ASCII {
-               #
-               #  If we don't have all the required data, request it.
-               #
-               if (!&User-Name) {
-                       &reply.Packet-Type := Authentication-GetUser
-                       handled
-               }
-               if (!&User-Password) {
-                       &reply.Packet-Type := Authentication-GetPass
-                       handled
-               }
-
-               #
-               #  Now we have the data perform authentication
-               #
                if (&User-Name == 'tapioca' && &User-Password == 'queijo') {
                        &reply.Server-Message := "ASCII authentication accepted"
                        ok
@@ -159,19 +144,7 @@ server test {
        }
 
        recv Authentication-Continue {
-               &control.Auth-Type := ASCII
-
-               #
-               #  Fill the next missing attribute from User-Message
-               #
-               if (!&User-Name) {
-                       &User-Name := &User-Message
-                       handled
-               }
-               if (!&User-Password) {
-                       &User-Password := &User-Message
-                       handled
-               }
+               ok
        }
 
        recv Authorization-Request {