]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use the correct array offsets.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 9 Oct 2023 19:40:23 +0000 (15:40 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 9 Oct 2023 19:40:23 +0000 (15:40 -0400)
Perhaps these changes should stop

src/tests/modules/ldap/xlat.unlang

index 38c57b2b7330e7210dd528d4d76a2880c17b4b0c..9bebce63b1bd30554940ab5e9de4e81e9fce04a6 100644 (file)
@@ -54,7 +54,7 @@ if (!(&Tmp-String-6 == "John Doe")) {
 # Return multiple values - could be in any sequence
 &Tmp-String-7 := %ldap("ldap://$ENV{LDAP_TEST_SERVER}:$ENV{LDAP_TEST_SERVER_PORT}/ou=clients,dc=example,dc=com?freeradiusClientIdentifier?sub?(objectClass=freeradiusClient)")
 
-if !((&Tmp-String-7[1] == "1.1.1.1") && (&Tmp-String-7[2] == "2.2.2.2")) {
+if !((&Tmp-String-7[0] == "1.1.1.1") && (&Tmp-String-7[1] == "2.2.2.2")) {
         test_fail
 }