|
|
@@ -260,4 +260,14 @@ class Zend_Ldap_BindTest extends PHPUnit_Framework_TestCase
|
|
|
$this->assertTrue(is_resource($ldap->getResource()));
|
|
|
$this->assertEquals(TESTS_ZEND_LDAP_USERNAME, $ldap->getBoundUser());
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @see https://net.educause.edu/ir/library/pdf/csd4875.pdf
|
|
|
+ */
|
|
|
+ public function testBindWithNullPassword()
|
|
|
+ {
|
|
|
+ $ldap = new Zend_Ldap($this->_options);
|
|
|
+ $this->setExpectedException('Zend_Ldap_Exception', 'Invalid credentials');
|
|
|
+ $ldap->bind($this->_altUsername, "\0invalidpassword");
|
|
|
+ }
|
|
|
}
|