Skip to content

Commit

Permalink
use the correct array offsets.
Browse files Browse the repository at this point in the history
Perhaps these changes should stop
  • Loading branch information
alandekok committed Oct 9, 2023
1 parent 6a3a751 commit 1a7672d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/modules/ldap/xlat.unlang
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1a7672d

Please sign in to comment.