summaryrefslogtreecommitdiff
path: root/src/web/helpers/ldap.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/helpers/ldap.php')
-rw-r--r--src/web/helpers/ldap.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/web/helpers/ldap.php b/src/web/helpers/ldap.php
index 46bbe69..5ae12c7 100644
--- a/src/web/helpers/ldap.php
+++ b/src/web/helpers/ldap.php
@@ -11,21 +11,21 @@ class LDAPHelper {
function __construct() {
$this->env = array(
# ldap host
- 'url' => getenv("LDAP_URL"),
+ 'url' => CONFIG["LDAP_URL"],
# ldap credentials
- 'bind' => getenv("LDAP_BIND_DN"),
- 'password' => getenv("LDAP_BIND_PASSWORD"),
+ 'bind' => CONFIG["LDAP_BIND_DN"],
+ 'password' => CONFIG["LDAP_BIND_PASSWORD"],
# ldap search
- 'base' => getenv("LDAP_BASE_DN"),
- 'filter' => getenv("LDAP_FILTER"),
- 'uid' => getenv("LDAP_UID"),
+ 'base' => CONFIG["LDAP_BASE_DN"],
+ 'filter' => CONFIG["LDAP_FILTER"],
+ 'uid' => CONFIG["LDAP_UID"],
);
$this->matchers = array(
- 'username' => getenv("LDAP_USERNAME_MATCHER"),
- 'email' => getenv("LDAP_EMAIL_MATCHER"),
- 'first_name' => getenv("LDAP_FIRST_NAME_MATCHER"),
- 'last_name' => getenv("LDAP_LAST_NAME_MATCHER"),
+ 'username' => CONFIG["LDAP_USERNAME_MATCHER"],
+ 'email' => CONFIG["LDAP_EMAIL_MATCHER"],
+ 'first_name' => CONFIG["LDAP_FIRST_NAME_MATCHER"],
+ 'last_name' => CONFIG["LDAP_LAST_NAME_MATCHER"],
);
$this->bound = NULL;