diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-07 00:43:12 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-07 00:43:12 +0100 |
commit | 7d8b50d392f3aa588518d81b547ffe8cd9364544 (patch) | |
tree | 30930d0346f46c860a8356b1c663ef8f81c725b9 /virtual/packages/chloe_config/ldap.php | |
parent | 34e2fd14c7091f85b667667cb2b74c1b75e005db (diff) | |
download | Nix-7d8b50d392f3aa588518d81b547ffe8cd9364544.tar.gz Nix-7d8b50d392f3aa588518d81b547ffe8cd9364544.tar.zst Nix-7d8b50d392f3aa588518d81b547ffe8cd9364544.zip |
Add Chloé's website
Diffstat (limited to 'virtual/packages/chloe_config/ldap.php')
-rw-r--r-- | virtual/packages/chloe_config/ldap.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/virtual/packages/chloe_config/ldap.php b/virtual/packages/chloe_config/ldap.php new file mode 100644 index 0000000..825b7ed --- /dev/null +++ b/virtual/packages/chloe_config/ldap.php | |||
@@ -0,0 +1,9 @@ | |||
1 | <?php | ||
2 | if (!defined("_ECRIRE_INC_VERSION")) return; | ||
3 | $GLOBALS['ldap_base'] = getenv("SPIP_LDAP_BASE"); | ||
4 | $GLOBALS['ldap_link'] = @ldap_connect(getenv("SPIP_LDAP_HOST")); | ||
5 | @ldap_set_option($GLOBALS['ldap_link'],LDAP_OPT_PROTOCOL_VERSION,'3'); | ||
6 | @ldap_bind($GLOBALS['ldap_link'],getenv("SPIP_LDAP_SEARCH_DN"), getenv("SPIP_LDAP_SEARCH_PW")); | ||
7 | $GLOBALS['ldap_champs'] = array('login' => array('sAMAccountName','uid','login','userid','cn','sn'),'nom' => 'cn','email' => 'mail','bio' => 'description',); | ||
8 | $GLOBALS['ldap_search'] = getenv("SPIP_LDAP_SEARCH"); | ||
9 | ?> | ||