Skip to content

Commit

Permalink
Add user with umlaut to test.
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Jan 31, 2015
1 parent b12a9a2 commit 92df3b2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Integration/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@ public function test_LdapAuth_DoesNotAuthenticate_WhenAnonymousLoginProvided()
$this->assertEquals(0, $authResult->getCode());
}

public function test_LdapAuth_AuthenticatesSuccessfully_WhenUidContainsUmlaut()
{
$ldapAuth = LdapAuth::makeConfigured();
$ldapAuth->setLogin('jenngrünwald');
$ldapAuth->setPassword('nypl');
$authResult = $ldapAuth->authenticate();

$this->assertEquals(1, $authResult->getCode());
}

private function getNonLdapUserTokenAuth()
{
return UsersManagerAPI::getInstance()->getTokenAuth(self::NON_LDAP_USER, md5(self::NON_LDAP_PASS));
Expand Down
9 changes: 9 additions & 0 deletions tests/travis/setup_ldap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,15 @@ uid: rogue@xmansion.org
userPassword: `slappasswd -h {md5} -s cher`
sn: Doesnthaveone
# USER ENTRY (pwd: nypl)
dn: cn=Jennifer Grünwald,$BASE_DN
cn: Jennifer Grünwald
objectClass: top
objectClass: piwikPerson
uid: jenngrünwald
userPassword: `slappasswd -h {md5} -s nypl`
sn: Grünwald
EOF

if [ "$?" -eq "0" ]; then
Expand Down

0 comments on commit 92df3b2

Please sign in to comment.