2017-08-08 03:01:11 +08:00
|
|
|
<?php
|
2018-05-20 00:04:13 +08:00
|
|
|
// LDAP parameters
|
2020-04-30 21:43:07 +08:00
|
|
|
$ldap_host = getenv('ldap_host') ?: "ldap://ldap.company.com/";
|
|
|
|
$ldap_port = intval(getenv('ldap_port')) ?: 389;
|
|
|
|
$ldap_version = intval(getenv('ldap_version')) ?: 3;
|
2017-08-17 06:05:49 +08:00
|
|
|
|
2020-04-30 21:43:07 +08:00
|
|
|
// Attribute use to identify user on LDAP - ex : uid, mail, sAMAccountName
|
|
|
|
$ldap_search_attribute = getenv('ldap_search_attribute') ?: "uid";
|
2017-08-17 06:05:49 +08:00
|
|
|
|
2020-04-30 21:43:07 +08:00
|
|
|
// variable use in resource.php
|
|
|
|
$ldap_base_dn = getenv('ldap_base_dn') ?: "ou=People,o=Company";
|
|
|
|
$ldap_filter = getenv('ldap_filter') ?: "(objectClass=*)";
|
2017-08-17 06:05:49 +08:00
|
|
|
|
2017-08-22 05:10:20 +08:00
|
|
|
// ldap service user to allow search in ldap
|
2020-04-30 21:43:07 +08:00
|
|
|
$ldap_bind_dn = getenv('ldap_bind_dn') ?: "";
|
|
|
|
$ldap_bind_pass = getenv('ldap_bind_pass') ?: "";
|