Example #1
0
 /** @dataProvider bindingWithPasswordProvider */
 public function testThatBindingWithAddedSlashesFailsWorks($user, $password, $filter)
 {
     $newpassword = addslashes($password);
     $ldap = new LDAP('ldap://cn=Manager,dc=example,dc=com:insecure@127.0.0.1:3890/dc=example,dc=com');
     if ($newpassword === $password) {
         $this->assertTrue($ldap->authenticate($user, $password, $filter));
     } else {
         $this->assertFalse($ldap->authenticate($user, $newpassword, $filter));
     }
 }