Skip to content

Commit cdf4cff

Browse files
committed
Testing
1 parent ad18a94 commit cdf4cff

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/actions/test-linux/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ runs:
4949
--offline \
5050
--show-diff \
5151
--show-slow 1000 \
52-
--set-timeout 120
52+
--set-timeout 120 \
53+
ext/ldap/tests/ldap_sasl_bind_error.phpt

ext/ldap/tests/ldap_sasl_bind_error.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,31 @@ ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
2121

2222
// Invalid DN
2323
var_dump(ldap_sasl_bind($link, "Invalid DN", $sasl_passwd, 'DIGEST-MD5', 'realm', $sasl_user));
24+
ldap_unbind($link);
2425

2526
// Invalid user
2627
var_dump(ldap_sasl_bind($link, null, "ThisIsNotCorrect$sasl_passwd", 'DIGEST-MD5', "realm", "invalid$sasl_user"));
28+
ldap_unbind($link);
2729

2830
// Invalid password
2931
var_dump(ldap_sasl_bind($link, null, "ThisIsNotCorrect$sasl_passwd", 'DIGEST-MD5', "realm", $sasl_user));
32+
ldap_unbind($link);
3033

3134
var_dump(ldap_sasl_bind($link, null, $sasl_passwd, 'DIGEST-MD5', "realm", "Manager", "test"));
35+
ldap_unbind($link);
3236

3337
// Invalid DN syntax
3438
var_dump(ldap_sasl_bind($link, "unexistingProperty=weirdValue,$user", $sasl_passwd));
39+
ldap_unbind($link);
40+
3541
?>
3642
--CLEAN--
3743
<?php
3844
include "connect.inc";
3945

4046
$link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
4147
remove_dummy_data($link, $base);
48+
ldap_unbind($link);
4249
?>
4350
--EXPECTF--
4451
Warning: ldap_sasl_bind(): Unable to bind to server: Invalid DN syntax in %s on line %d

0 commit comments

Comments
 (0)