aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/isabelle/config/ldap.php
blob: 825b7edbd58cdfd27739cef24fecd578e166ebc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;
$GLOBALS['ldap_base'] = getenv("SPIP_LDAP_BASE");
$GLOBALS['ldap_link'] = @ldap_connect(getenv("SPIP_LDAP_HOST"));
@ldap_set_option($GLOBALS['ldap_link'],LDAP_OPT_PROTOCOL_VERSION,'3');
@ldap_bind($GLOBALS['ldap_link'],getenv("SPIP_LDAP_SEARCH_DN"), getenv("SPIP_LDAP_SEARCH_PW"));
$GLOBALS['ldap_champs'] = array('login' => array('sAMAccountName','uid','login','userid','cn','sn'),'nom' => 'cn','email' => 'mail','bio' => 'description',);
$GLOBALS['ldap_search'] = getenv("SPIP_LDAP_SEARCH");
?>