Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/auth/ldap/ldap_var.inc.php

79 lines
2.6 KiB

<?php // $Id: ldap_var.inc.php 13366 2007-10-01 01:52:09Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004 Dokeos S.A.
Copyright (c) 2003 Ghent University (UGent)
Copyright (c) 2001 Universite catholique de Louvain (UCL)
Copyright (c) Roan Embrechts (Vrije Universiteit Brussel)
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
Mail: info@dokeos.com
==============================================================================
*/
/**
==============================================================================
* LDAP settings
* In the older code, there was a distinction between
* the teacher and student LDAP server. Later I decided not
* to make this distinction. However, it could be built in
* in the future but then perhaps in a more general way.
*
* Originally, Thomas and I agreed to store all settings in one file
* (configuration.php) to make it easier for claroline admins to make changes.
* Since October 2003, this changed: the include directory has been
* changed to be called "inc", and all tools should have their own file(s).
*
* This file "ldap_var.inc.php" was already used by the
* older french authentification functions. I have moved the new
* variables from the configuration.php to here as well.
*
* @author Roan Embrechts
* @package dokeos.auth.ldap
==============================================================================
*/
/*
==============================================================================
INIT SECTION
==============================================================================
*/
//parameters for LDAP module
$usesLDAP = TRUE;
$usesCurriculum = FALSE;
// your ldap server
$ldaphost = "adresse du serveur LDAP";
// your ldap server's port number
$ldapport = "port";
//domain
$ldapDc = "OU";
// Variable for the teacher's LDAP directory
$LDAPserv = $ldaphost;
$LDAPport = $ldapport;
$LDAPbasedn = $ldapDc;
//search term for students
$critereRechercheEtu = "employeeType";
//additional server params for use of replica in case of problems
$LDAPserv2 = "adresse replica LDAP";
$LDAPport2 = "port replica";
//protocol version - set to 3 for LDAP 3
$LDAPversion = 2;
$PLACEHOLDER = "PLACEHOLDER";
?>