Skip to content

Commit

Permalink
Check normal auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Jan 27, 2015
1 parent f5020ca commit e61182e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/Integration/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -46,7 +55,7 @@ public function test_LdapAuth_AuthenticatesUser_WithCorrectCredentials_AndSubBas
@ob_flush();
$this->assertFalse(true);
}
*/ }

public function test_LdapAuth_AuthenticatesUser_WithCorrectCredentials()
{
Expand Down

0 comments on commit e61182e

Please sign in to comment.