]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
ignore Message-Authenticator in replies
authorAlan T. DeKok <aland@freeradius.org>
Sun, 11 Aug 2024 21:08:46 +0000 (17:08 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 11 Aug 2024 21:08:46 +0000 (17:08 -0400)
src/tests/radclient/all.mk
src/tests/radclient/auth_1.out

index 3bec606566b759e08993f8667c268c53e5dd7b03..5d935cbb970631f28b98a0414d607e8a84520bf9 100644 (file)
@@ -87,7 +87,9 @@ $(OUTPUT)/%: $(DIR)/% $(BUILD_DIR)/bin/local/$(RADCLIENT) $(BUILD_DIR)/lib/local
 #      or
 #      2. call the script src/test/radclient/$test.cmd to validate the build/test/radclient/$test.out
 #
-       ${Q}if [ -e "$(EXPECTED)" ] && ! diff -I 'Sent' -I 'Received' $(EXPECTED) $(FOUND); then  \
+       ${Q}grep -v 'Message-Authenticator' $(FOUND) > $(FOUND).out
+       ${Q}mv $(FOUND).out $(FOUND)
+       ${Q}if [ -e "$(EXPECTED)" ] && ! diff -I 'Sent' -I 'Received' $(EXPECTED) $(FOUND); then \
                echo "RADCLIENT FAILED $@";                                 \
                echo "RADIUSD:   $(RADIUSD_RUN)";                           \
                echo "RADCLIENT: $(TEST_BIN)/$(RADCLIENT) $(ARGV) -C $(RADCLIENT_CLIENT_PORT) -f $< -d src/tests/radclient/config -D share/dictionary 127.0.0.1:$(radclient_port) $(TYPE) $(SECRET)"; \
index 970ed35712ca002aec4001cb609ad4362737d8a3..89e62dbefae9d57c10c81a589e429cc732ceaae6 100644 (file)
@@ -2,5 +2,5 @@ Sent Access-Request Id 123 from 0.0.0.0:1234 to 127.0.0.1:12340 length 43
         User-Name = "bob"
         User-Password = "hello"
         Password.Cleartext = "hello"
-Received Access-Accept Id 123 from 127.0.0.1:12340 to 0.0.0.0:1234 via lo length 20 
+Received Access-Accept Id 123 from 127.0.0.1:12340 to 0.0.0.0:1234 via lo length 38
 (0) src/tests/radclient/auth_1.txt response code 2