ldap_var.inc.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php // $Id: ldap_var.inc.php 5291 2005-06-01 09:31:57Z olivierb78 $
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004 Dokeos S.A.
  6. Copyright (c) 2003 Ghent University (UGent)
  7. Copyright (c) 2001 Universite catholique de Louvain (UCL)
  8. Copyright (c) Roan Embrechts (Vrije Universiteit Brussel)
  9. For a full list of contributors, see "credits.txt".
  10. The full license can be read in "license.txt".
  11. This program is free software; you can redistribute it and/or
  12. modify it under the terms of the GNU General Public License
  13. as published by the Free Software Foundation; either version 2
  14. of the License, or (at your option) any later version.
  15. See the GNU General Public License for more details.
  16. Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  17. Mail: info@dokeos.com
  18. ==============================================================================
  19. */
  20. /**
  21. ==============================================================================
  22. * LDAP settings
  23. * In the older code, there was a distinction between
  24. * the teacher and student LDAP server. Later I decided not
  25. * to make this distinction. However, it could be built in
  26. * in the future but then perhaps in a more general way.
  27. *
  28. * Originally, Thomas and I agreed to store all settings in one file
  29. * (claro_main.conf.php) to make it easier for claroline admins to make changes.
  30. * Since October 2003, this changed: the include directory has been
  31. * changed to be called "inc", and all tools should have their own file(s).
  32. *
  33. * This file "ldap_var.inc.php" was already used by the
  34. * older french authentification functions. I have moved the new
  35. * variables from the claro_main.conf.php to here as well.
  36. *
  37. * @author Roan Embrechts
  38. * @package dokeos.auth.ldap
  39. ==============================================================================
  40. */
  41. /*
  42. ==============================================================================
  43. INIT SECTION
  44. ==============================================================================
  45. */
  46. //parameters for LDAP module
  47. $usesLDAP = TRUE;
  48. $usesCurriculum = FALSE;
  49. // your ldap server
  50. $ldaphost = "adresse du serveur LDAP";
  51. // your ldap server's port number
  52. $ldapport = "port";
  53. //domain
  54. $ldapDc = "OU";
  55. //older variables for French Univ. Jean Monet code
  56. // Variable pour l'annuaire LDAP Enseignant
  57. $LDAPserv = $ldaphost;
  58. $LDAPport = $ldapport;
  59. $LDAPbasedn = $ldapDc;
  60. $critereRechercheEtu = "employeeType";
  61. //ajout C2M pour utiliser replica en cas de problème
  62. $LDAPserv2 = "adresse replica LDAP";
  63. $LDAPport2 = "port replica";
  64. ?>