ldap_var.inc.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * LDAP settings
  5. * In the older code, there was a distinction between
  6. * the teacher and student LDAP server. Later I decided not
  7. * to make this distinction. However, it could be built in
  8. * in the future but then perhaps in a more general way.
  9. *
  10. * Originally, Thomas and I agreed to store all settings in one file
  11. * (configuration.php) to make it easier for claroline admins to make changes.
  12. * Since October 2003, this changed: the include directory has been
  13. * changed to be called "inc", and all tools should have their own file(s).
  14. *
  15. * This file "ldap_var.inc.php" was already used by the
  16. * older french authentification functions. I have moved the new
  17. * variables from the configuration.php to here as well.
  18. *
  19. * @author Roan Embrechts
  20. * @package chamilo.auth.ldap
  21. */
  22. /**
  23. * Configuration settings
  24. */
  25. // your ldap server
  26. $ldap_host = $extldap_config['host'][0];
  27. // your ldap server's port number
  28. $ldap_port = @$extldap_config['port'] ?: null;
  29. //domain
  30. $ldap_basedn = $extldap_config['base_dn'];
  31. //search term for students
  32. $ldap_search_dn = $extldap_config['user_search'];
  33. //additional server params for use of replica in case of problems
  34. $ldap_host2 = count($extldap_config['host']) > 1 ? $extldap_config['host'][1] : null;
  35. $ldap_port2 = $extldap_config['port'];
  36. //protocol version - set to 3 for LDAP 3
  37. $ldap_version = $extldap_config['protocol_version'];
  38. //non-anonymous LDAP mode
  39. $ldap_rdn = $extldap_config['admin_dn'];
  40. $ldap_pass = $extldap_config['admin_password'];
  41. $ldap_pass_placeholder = "PLACEHOLDER";