Skip to content

Commit 00093c5

Browse files
committed
Add LDAP xlat test using server side extensions
1 parent 02948b8 commit 00093c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tests/modules/ldap/xlat.unlang

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,10 @@ if !(result_string == 'John Doe') {
121121
test_fail
122122
}
123123

124+
# Use extensions - request the 2nd client, sorted by freeradiusClientIdentifier
125+
result_string := %ldap("ldap://$ENV{LDAP_TEST_SERVER}:$ENV{LDAP_TEST_SERVER_PORT}/ou=clients,dc=example,dc=com?freeradiusClientIdentifier?sub?(objectClass=freeradiusClient)?sss=freeradiusClientIdentifier,vlv=0/0/2/0")
126+
if (result_string != '2.2.2.2') {
127+
test_fail
128+
}
129+
124130
test_pass

0 commit comments

Comments
 (0)