* @version $id SVN * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ /*************************** * LDAP Configuration file ***************************/ define('LDAP_HOST', 'ip.ip.ip.ip'); define('LDAP_PORT', 389); define('LDAP_USER', 'username'); define('LDAP_PASS', 'password'); define('LDAP_VERSION', 3); // put null if you don't want to specify any version define('LDAP_SUFFIX', '@mydomain.net'); // often this is needed to make ldap_bind works well ! define('LDAP_ADM_SUFFIX', ''); // optional - sometimes suffix is different for admin user. Most of the time, no suffix define('LDAP_DN', 'OU=MYGROUP,DC=mydomain,DC=net'); define('LDAP_SEND_EMAIL', false); define('LDAP_SEARCH_FILTER', '(&(objectCategory=user)(samaccountname=%s))'); // %s is dynamically replaced by sprintf - Attention a bien définir l'expression memberOf. Au besoin, la récuperer depuis les données d'un utilisateur connu/test ?>