2017-08-08 03:01:11 +08:00
|
|
|
<?php
|
2018-05-20 00:04:13 +08:00
|
|
|
// LDAP parameters
|
2017-08-26 21:54:24 +08:00
|
|
|
$hostname = "ldap://company.com/";
|
2017-08-17 06:05:49 +08:00
|
|
|
$port = 389;
|
2018-05-20 00:04:13 +08:00
|
|
|
$ldap_version = 3;
|
2017-08-17 06:05:49 +08:00
|
|
|
|
2017-08-26 21:54:24 +08:00
|
|
|
// Attribute use to identify user on LDAP - ex : uid, mail, sAMAccountName
|
|
|
|
$search_attribute = "uid";
|
2017-08-17 06:05:49 +08:00
|
|
|
|
2017-08-26 21:54:24 +08:00
|
|
|
// variable use in resource.php
|
|
|
|
$base = "ou=People,o=Company";
|
|
|
|
$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
|
|
|
|
$bind_dn = "";
|
|
|
|
$bind_pass = "";
|