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

Commit 970e6da

Browse files
committed
Removed dead code in AdapterLdap.php
1 parent 24cc07e commit 970e6da

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/AdapterLdap.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ class AdapterLdap extends Adapter
2929
const LDAP_PASSWORD = 'ldap.password';
3030
const LDAP_BASE = 'ldap.base';
3131

32-
private $ldapHostname;
33-
private $ldapUser;
34-
private $ldapPassword;
3532
private $ldapBase;
3633

3734
protected $connector;
@@ -44,13 +41,12 @@ public function __construct($configFileName = null)
4441

4542
$conf = Configuration::getConfig($configFileName);
4643

47-
$this->ldapHostname = $conf->getString(self::LDAP_HOSTNAME);
48-
$this->ldapUser = $conf->getString(self::LDAP_USER, null);
49-
$this->ldapPassword = $conf->getString(self::LDAP_PASSWORD, null);
44+
$ldapHostname = $conf->getString(self::LDAP_HOSTNAME);
45+
$ldapUser = $conf->getString(self::LDAP_USER, null);
46+
$ldapPassword = $conf->getString(self::LDAP_PASSWORD, null);
5047
$this->ldapBase = $conf->getString(self::LDAP_BASE);
5148

52-
53-
$this->connector = new LdapConnector($this->ldapHostname, $this->ldapUser, $this->ldapPassword);
49+
$this->connector = new LdapConnector($ldapHostname, $ldapUser, $ldapPassword);
5450
}
5551

5652
public function getPerunUser($idpEntityId, $uids)

0 commit comments

Comments
 (0)