config.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /** NOTE **
  3. ** Make sure that <?php is the FIRST line of this file!
  4. ** IE: There should NOT be any blank lines or spaces BEFORE <?php
  5. **/
  6. /*********************************************
  7. * Useful important configuration overrides *
  8. *********************************************/
  9. /* If you are asked to put PLA in debug mode, this is how you do it: */
  10. $config->custom->debug['level'] = 0;
  11. $config->custom->debug['syslog'] = true;
  12. # $config->custom->debug['file'] = '/tmp/pla_debug.log';
  13. /**
  14. * The phpLDAPadmin config file
  15. * See: http://phpldapadmin.sourceforge.net/wiki/index.php/Config.php
  16. */
  17. /* The temporary storage directory where we will put jpegPhoto data
  18. This directory must be readable and writable by your web server. */
  19. $config->custom->jpeg['tmpdir'] = '/var/www/tmp';
  20. /* phpLDAPadmin can encrypt the content of sensitive cookies if you set this
  21. to a big random string. */
  22. /*
  23. * Autogenerated value will be automatically added by phpldapadmin/startup.sh
  24. */
  25. $config->custom->session['blowfish'] = '{{ PHPLDAPADMIN_CONFIG_BLOWFISH }}';
  26. /*********************************************
  27. * Appearance *
  28. *********************************************/
  29. /* Hide the warnings for invalid objectClasses/attributes in templates. */
  30. $config->custom->appearance['hide_template_warning'] = true;
  31. /*********************************************
  32. * User-friendly attribute translation *
  33. *********************************************/
  34. /* Use this array to map attribute names to user friendly names. For example, if
  35. you don't want to see "facsimileTelephoneNumber" but rather "Fax". */
  36. // $config->custom->appearance['friendly_attrs'] = array();
  37. $config->custom->appearance['friendly_attrs'] = array(
  38. 'facsimileTelephoneNumber' => 'Fax',
  39. 'gid' => 'Group',
  40. 'mail' => 'Email',
  41. 'telephoneNumber' => 'Telephone',
  42. 'uid' => 'User Name',
  43. 'userPassword' => 'Password'
  44. );
  45. /*********************************************
  46. * Define your LDAP servers in this section *
  47. *********************************************/
  48. $servers = new Datastore();
  49. /*
  50. * Autogenerated servers variables will come here
  51. */
  52. {{ PHPLDAPADMIN_SERVERS }}