Test Failure Report for ext/ldap/tests/ldap_sasl_bind_error.phpt ('ldap_sasl_bind() - Binding that should fail')
Script
1:
<?php 2: require "connect.inc"; 3: 4: $link = ldap_connect($host, $port); 5: ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version); 6: 7: // Invalid parameter count 8: var_dump(ldap_sasl_bind()); 9: 10: // Invalid DN 11: var_dump(ldap_sasl_bind($link, "Invalid DN", $passwd, 'DIGEST-MD5', 'realm', $sasl_user)); 12: 13: // Invalid user 14: var_dump(ldap_sasl_bind($link, null, "ThisIsNotCorrect$passwd", 'DIGEST-MD5', "realm", "invalid$sasl_user")); 15: 16: // Invalid password 17: var_dump(ldap_sasl_bind($link, null, "ThisIsNotCorrect$passwd", 'DIGEST-MD5', "realm", $sasl_user)); 18: 19: var_dump(ldap_sasl_bind($link, null, $passwd, 'DIGEST-MD5', "realm", "Manager", "test")); 20: 21: // Invalid DN syntax 22: var_dump(ldap_sasl_bind($link, "unexistingProperty=weirdValue,$user", $passwd)); 23: ?> 24: ===DONE=== 25:
Expected
Warning: ldap_sasl_bind() expects at least 1 parameter, 0 given in %s on line %d
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: Invalid DN syntax in %s on line %d
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: Invalid credentials in %s on line %d
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: Invalid credentials in %s on line %d
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: Insufficient access in %s on line %d
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: Invalid DN syntax in %s on line %d
bool(false)
===DONE===
Output
Warning: ldap_sasl_bind() expects at least 1 parameter, 0 given in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 8
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: Unknown authentication method in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 11
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: Unknown authentication method in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 14
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: Unknown authentication method in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 17
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: Unknown authentication method in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 19
bool(false)
Warning: ldap_sasl_bind(): Unable to bind to server: No such attribute in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 22
bool(false)
===DONE===
Diff
004+ Warning: ldap_sasl_bind(): Unable to bind to server: Unknown authentication method in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 11
004- Warning: ldap_sasl_bind(): Unable to bind to server: Invalid DN syntax in %s on line %d
007+ Warning: ldap_sasl_bind(): Unable to bind to server: Unknown authentication method in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 14
007- Warning: ldap_sasl_bind(): Unable to bind to server: Invalid credentials in %s on line %d
010+ Warning: ldap_sasl_bind(): Unable to bind to server: Unknown authentication method in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 17
010- Warning: ldap_sasl_bind(): Unable to bind to server: Invalid credentials in %s on line %d
013+ Warning: ldap_sasl_bind(): Unable to bind to server: Unknown authentication method in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 19
013- Warning: ldap_sasl_bind(): Unable to bind to server: Insufficient access in %s on line %d
016+ Warning: ldap_sasl_bind(): Unable to bind to server: No such attribute in /var/php_gcov/PHP_5_4/ext/ldap/tests/ldap_sasl_bind_error.php on line 22
016- Warning: ldap_sasl_bind(): Unable to bind to server: Invalid DN syntax in %s on line %d
Generated at Mon, 13 May 2013 22:40:14 +0000 (6 days ago)
|