ldap-matter/Docker/oauth/files/config_ldap.php

16 lines
630 B
PHP
Raw Normal View History

2019-03-20 04:58:37 +08:00
<?php
// LDAP parameters
$ldap_host = getenv('ldap_host') ?: "ldap://ldap.company.com/";
$ldap_port = intval(getenv('ldap_port')) ?: 389;
2019-03-20 04:58:37 +08:00
$ldap_version = intval(getenv('ldap_version')) ?: 3;
// Attribute use to identify user on LDAP - ex : uid, mail, sAMAccountName
$ldap_search_attribute = getenv('ldap_search_attribute') ?: "uid";
2019-03-20 04:58:37 +08:00
// variable use in resource.php
$ldap_base_dn = getenv('ldap_base_dn') ?: "ou=People,o=Company";
$ldap_filter = getenv('ldap_filter') ?: "objectClass=*";
2019-03-20 04:58:37 +08:00
// ldap service user to allow search in ldap
$ldap_bind_dn = getenv('ldap_bind_dn') ?: "";
$ldap_bind_pass = getenv('ldap_bind_pass') ?: "";