Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit a37779d

Browse files
Merge pull request #40 from pajavyskocil/ldap_fixed
Fixed bugs with LDAP
2 parents c9067a5 + 831c422 commit a37779d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ All notable changes to this project will be documented in this file.
1818
- Function unauthorize in PerunIdentity is now public
1919
- Changed the login and registration process
2020

21+
[Fixed]
22+
- Fixed the problem with access to non-secured LDAP
23+
- Fixed the bad call of function 'searchForEntity(...)' in function getVoById() in AdapterLdap.php
24+
2125
## [v1.0.0]
2226

2327
[Unreleased]: https://github.com/CESNET/perun-simplesamlphp-module/tree/master

lib/AdapterLdap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function __construct ($configFileName = null)
3535
$conf = SimpleSAML_Configuration::getConfig($configFileName);
3636

3737
$this->ldapHostname = $conf->getString(self::LDAP_HOSTNAME);
38-
$this->ldapUser = $conf->getString(self::LDAP_USER);
39-
$this->ldapPassword = $conf->getString(self::LDAP_PASSWORD);
38+
$this->ldapUser = $conf->getString(self::LDAP_USER, null);
39+
$this->ldapPassword = $conf->getString(self::LDAP_PASSWORD, null);
4040
$this->ldapBase = $conf->getString(self::LDAP_BASE);
4141

4242

@@ -155,7 +155,7 @@ public function getVoByShortName($voShortName)
155155

156156
public function getVoById($id)
157157
{
158-
$vo = sspmod_perun_LdapConnector::searchForEntity($this->ldapBase,
158+
$vo = $this->connector->searchForEntity($this->ldapBase,
159159
"(&(objectClass=perunVo)(perunVoId=$id))",
160160
array("o", "description")
161161
);

0 commit comments

Comments
 (0)