diff --git a/tests/Integration/AuthenticationTest.php b/tests/Integration/AuthenticationTest.php index 5253b26e..287df761 100644 --- a/tests/Integration/AuthenticationTest.php +++ b/tests/Integration/AuthenticationTest.php @@ -37,6 +37,15 @@ public function setUp() public function test_LdapAuth_AuthenticatesUser_WithCorrectCredentials_AndSubBasedomain() { + Config::getInstance()->LoginLdap_testserver['base_dn'] = 'dc=shield,dc=org'; + + $ldapAuth = LdapAuth::makeConfigured(); + $ldapAuth->setLogin(self::TEST_LOGIN); + $ldapAuth->setPassword(self::TEST_PASS); + $authResult = $ldapAuth->authenticate(); + + $this->assertEquals(1, $authResult->getCode()); +/* $client = new Client(); $client->connect(Config::getInstance()->LoginLdap_testserver['hostname']); $client->bind("cn=fury,dc=avengers,dc=shield,dc=org", 'secrets'); @@ -46,7 +55,7 @@ public function test_LdapAuth_AuthenticatesUser_WithCorrectCredentials_AndSubBas @ob_flush(); $this->assertFalse(true); - } +*/ } public function test_LdapAuth_AuthenticatesUser_WithCorrectCredentials() {