ldap-matter/oauth/LDAP/config_ldap.php.example

18 lines
695 B
Plaintext
Raw Normal View History

2017-08-08 03:01:11 +08:00
<?php
// 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;
$ldap_start_tls = boolval(getenv('ldap_start_tls')) ?: false;
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";
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=*)";
// 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') ?: "";