From: Nick Porter Date: Tue, 11 Jul 2023 14:59:08 +0000 (+0100) Subject: The automatic state machine is now working correctly for ASCII auth X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=575a318beb63599ed7df767d581651a04788236a;p=thirdparty%2Ffreeradius-server.git The automatic state machine is now working correctly for ASCII auth --- diff --git a/src/tests/tacacs/config/radiusd.conf b/src/tests/tacacs/config/radiusd.conf index b66b0ff3b62..2721dbfde0d 100644 --- a/src/tests/tacacs/config/radiusd.conf +++ b/src/tests/tacacs/config/radiusd.conf @@ -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 {