/** * sets up the LDAP configuration to be used for the test */ protected function initConnection() { parent::initConnection(); $originalHost = $this->connection->ldapHost; $originalPort = $this->connection->ldapPort; $this->connection->setConfiguration(['ldapHost' => 'qwertz.uiop', 'ldapPort' => '32123', 'ldap_backup_host' => $originalHost, 'ldap_backup_port' => $originalPort]); }
/** * prepares the LDAP environment and sets up a test configuration for * the LDAP backend. */ public function init() { require __DIR__ . '/../setup-scripts/createExplicitUsers.php'; parent::init(); $this->mapping = new UserMapping(\OC::$server->getDatabaseConnection()); $this->mapping->clear(); $this->access->setUserMapper($this->mapping); $this->backend = new \OCA\user_ldap\USER_LDAP($this->access, \OC::$server->getConfig()); }
public function __construct($host, $port, $bind, $pwd, $base) { // make sure host is a simple host name if (strpos($host, '://') !== false) { $host = substr_replace($host, '', 0, strpos($host, '://') + 3); } if (strpos($host, ':') !== false) { $host = substr_replace($host, '', strpos($host, ':')); } $this->host = $host; $this->port = $port; parent::__construct($host, $port, $bind, $pwd, $base); }
/** * sets up the LDAP configuration to be used for the test */ protected function initConnection() { parent::initConnection(); $this->connection->setConfiguration(['ldapUserDisplayName' => 'displayname']); }
/** * prepares the LDAP environment and sets up a test configuration for * the LDAP backend. */ public function init() { require __DIR__ . '/../setup-scripts/createExplicitUsers.php'; parent::init(); }
/** * sets up the LDAP configuration to be used for the test */ protected function initConnection() { parent::initConnection(); $this->connection->setConfiguration(['homeFolderNamingRule' => 'homeDirectory']); }
/** * sets up the LDAP configuration to be used for the test */ protected function initConnection() { parent::initConnection(); $this->connection->setConfiguration(['ldapBaseGroups' => 'ou=Groups,' . $this->base, 'ldapUserFilter' => 'objectclass=inetOrgPerson', 'ldapUserDisplayName' => 'displayName', 'ldapGroupDisplayName' => 'cn', 'ldapLoginFilter' => 'uid=%uid']); }
/** * prepares the LDAP environment and sets up a test configuration for * the LDAP backend. */ public function init() { require __DIR__ . '/../setup-scripts/createExplicitUsers.php'; parent::init(); $this->backend = new \OCA\user_ldap\USER_LDAP($this->access, \OC::$server->getConfig()); }