ldap_var.inc.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php // $Id: ldap_var.inc.php 14966 2008-04-20 23:03:11Z yannoo $
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004-2008 Dokeos SPRL
  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, rue du Corbeau, 108, 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. * (configuration.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 configuration.php to here as well.
  36. *
  37. * @author Roan Embrechts
  38. * @package dokeos.auth.ldap
  39. ==============================================================================
  40. */
  41. // your ldap server
  42. $ldap_host = api_get_setting('ldap_main_server_address');
  43. // your ldap server's port number
  44. $ldap_port = api_get_setting('ldap_main_server_port');
  45. //domain
  46. $ldap_basedn = api_get_setting('ldap_domain');
  47. //search term for students
  48. $ldap_search_dn = api_get_setting('ldap_search_string');
  49. //additional server params for use of replica in case of problems
  50. $ldap_host2 = api_get_setting('ldap_replicate_server_address');
  51. $ldap_port2 = api_get_setting('ldap_replicate_server_port');
  52. //protocol version - set to 3 for LDAP 3
  53. $ldap_version = api_get_setting('ldap_version');
  54. //non-anonymous LDAP mode
  55. $ldap_rdn = api_get_setting('ldap_authentication_login');
  56. $ldap_pass = api_get_setting('ldap_authentication_password');
  57. $ldap_pass_placeholder = "PLACEHOLDER";
  58. ?>