Skip to content

Commit

Permalink
Merge pull request #39914 from rhafer/ldapfixes
Browse files Browse the repository at this point in the history
[tests-only] Smaller fixes for LDAP based tests on oCIS
  • Loading branch information
rhafer authored Mar 23, 2022
2 parents 8fc353d + 5e5c1be commit 87d2f9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/acceptance/features/bootstrap/Provisioning.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ public function connectToLdap(array $suiteParameters):void {
$useSsl = false;
if (OcisHelper::isTestingOnOcisOrReva()) {
$this->ldapBaseDN = OcisHelper::getBaseDN();
$this->ldapUsersOU = OcisHelper::getGroupsOU();
$this->ldapGroupsOU = OcisHelper::getUsersOU();
$this->ldapUsersOU = OcisHelper::getUsersOU();
$this->ldapGroupsOU = OcisHelper::getGroupsOU();
$this->ldapGroupSchema = OcisHelper::getGroupSchema();
$this->ldapHost = OcisHelper::getHostname();
$this->ldapPort = OcisHelper::getLdapPort();
Expand Down Expand Up @@ -734,6 +734,8 @@ public function createLdapUser(array $setting):void {
}
if (isset($setting["email"])) {
$entry['mail'] = $setting["email"];
} elseif (OcisHelper::isTestingOnOcis()) {
$entry['mail'] = $userId . '@owncloud.com';
}
$entry['gidNumber'] = 5000;
$entry['uidNumber'] = $uidNumber;
Expand Down

0 comments on commit 87d2f9a

Please sign in to comment.