ldap_var.inc.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. *
  21. * @package chamilo.auth.ldap
  22. */
  23. /**
  24. * Configuration settings.
  25. */
  26. // your ldap server
  27. $ldap_host = $extldap_config['host'][0];
  28. // your ldap server's port number
  29. $ldap_port = @$extldap_config['port'] ?: null;
  30. //domain
  31. $ldap_basedn = $extldap_config['base_dn'];
  32. //search term for students
  33. $ldap_search_dn = $extldap_config['user_search'];
  34. //additional server params for use of replica in case of problems
  35. $ldap_host2 = count($extldap_config['host']) > 1 ? $extldap_config['host'][1] : null;
  36. $ldap_port2 = $extldap_config['port'];
  37. //protocol version - set to 3 for LDAP 3
  38. $ldap_version = $extldap_config['protocol_version'];
  39. //non-anonymous LDAP mode
  40. $ldap_rdn = $extldap_config['admin_dn'];
  41. $ldap_pass = $extldap_config['admin_password'];
  42. $ldap_pass_placeholder = "PLACEHOLDER";