dokeos-auth-ldap
[ class tree: dokeos-auth-ldap ] [ index: dokeos-auth-ldap ] [ all elements ]

Source for file ldap_var.inc.php

Documentation is available at ldap_var.inc.php

  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.  
  6.     Copyright (c) 2004-2008 Dokeos SPRL
  7.     Copyright (c) 2003 Ghent University (UGent)
  8.     Copyright (c) 2001 Universite catholique de Louvain (UCL)
  9.     Copyright (c) Roan Embrechts (Vrije Universiteit Brussel)
  10.  
  11.     For a full list of contributors, see "credits.txt".
  12.     The full license can be read in "license.txt".
  13.  
  14.     This program is free software; you can redistribute it and/or
  15.     modify it under the terms of the GNU General Public License
  16.     as published by the Free Software Foundation; either version 2
  17.     of the License, or (at your option) any later version.
  18.  
  19.     See the GNU General Public License for more details.
  20.  
  21.     Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium
  22.     Mail: info@dokeos.com
  23. ==============================================================================
  24. */
  25. /**
  26. ==============================================================================
  27. *    LDAP settings
  28. *    In the older code, there was a distinction between
  29. *    the teacher and student LDAP server. Later I decided not
  30. *    to make this distinction. However, it could be built in
  31. *    in the future but then perhaps in a more general way.
  32. *
  33. *    Originally, Thomas and I agreed to store all settings in one file
  34. *    (configuration.php) to make it easier for claroline admins to make changes.
  35. *    Since October 2003, this changed: the include directory has been
  36. *    changed to be called "inc", and all tools should have their own file(s).
  37. *
  38. *    This file "ldap_var.inc.php" was already used by the
  39. *    older french authentification functions. I have moved the new
  40. *    variables from the configuration.php to here as well.
  41. *
  42. *    @author Roan Embrechts
  43. *    @package dokeos.auth.ldap
  44. ==============================================================================
  45. */
  46. // your ldap server
  47. $ldap_host api_get_setting('ldap_main_server_address');
  48. // your ldap server's port number
  49. $ldap_port api_get_setting('ldap_main_server_port');
  50. //domain
  51. $ldap_basedn api_get_setting('ldap_domain');
  52.  
  53. //search term for students
  54. $ldap_search_dn api_get_setting('ldap_search_string');
  55.  
  56. //additional server params for use of replica in case of problems
  57. $ldap_host2 api_get_setting('ldap_replicate_server_address');
  58. $ldap_port2 api_get_setting('ldap_replicate_server_port');
  59.  
  60. //protocol version - set to 3 for LDAP 3
  61. $ldap_version api_get_setting('ldap_version');
  62.  
  63. //non-anonymous LDAP mode
  64. $ldap_rdn api_get_setting('ldap_authentication_login');
  65. $ldap_pass api_get_setting('ldap_authentication_password');
  66.  
  67. $ldap_pass_placeholder "PLACEHOLDER";
  68. ?>

Documentation generated on Thu, 12 Jun 2008 13:54:45 -0500 by phpDocumentor 1.4.1