2017-08-17 06:34:12 +08:00
|
|
|
<?php
|
|
|
|
// LDAP server
|
|
|
|
$hostname = "<%= @ldap_uri %>";
|
|
|
|
$port = <%= @ldap_port %>;
|
|
|
|
|
2017-08-26 21:54:24 +08:00
|
|
|
// Attribute use to identify user on LDAP (used in connexion.php, replace $rdn_suffix) - ex : uid, mail, sAMAccountName
|
|
|
|
$search_attribute = "<%= @ldap_attribute %>";
|
2017-08-17 06:34:12 +08:00
|
|
|
|
2017-08-26 21:54:24 +08:00
|
|
|
// Base directory name of the LDAP
|
2017-08-17 06:34:12 +08:00
|
|
|
$base = "<%= @ldap_base %>";
|
2017-08-26 21:54:24 +08:00
|
|
|
|
|
|
|
// An optional filter to search in LDAP - ex : objectClass=person
|
2017-08-17 06:34:12 +08:00
|
|
|
$filter = "<%= @ldap_filter %>";
|
|
|
|
|
2017-08-22 05:10:20 +08:00
|
|
|
// ldap service user to allow search in ldap
|
2017-08-26 21:54:24 +08:00
|
|
|
$bind_dn = "<%= @ldap_bind_dn %>";
|
|
|
|
$bind_pass = "<%= @ldap_bind_pass %>";
|