Single-sign-on and self-serve account management. https://netsyms.biz/apps/accounthub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings.template.php 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. // Whether to show debugging data in output.
  3. // DO NOT SET TO TRUE IN PRODUCTION!!!
  4. define("DEBUG", false);
  5. // Database connection settings
  6. // See http://medoo.in/api/new for info
  7. define("DB_TYPE", "mysql");
  8. define("DB_NAME", "sso");
  9. define("DB_SERVER", "localhost");
  10. define("DB_USER", "sso");
  11. define("DB_PASS", "");
  12. define("DB_CHARSET", "utf8");
  13. define("LDAP_ENABLED", TRUE);
  14. // See https://github.com/ldaptools/ldaptools/blob/master/docs/en/reference/Main-Configuration.md
  15. // for info on the LDAP config
  16. /*
  17. * Begin LDAP Configuration
  18. */
  19. use LdapTools\Configuration;
  20. use LdapTools\DomainConfiguration;
  21. $ldap_config = new Configuration();
  22. $ldap_config_domain = (new DomainConfiguration('example'))
  23. ->setDomainName("example.com")
  24. ->setServers(['192.168.25.131'])
  25. ->setLazyBind(TRUE)
  26. ->setUsername("readonly-bind")
  27. ->setPassword("password")
  28. ->setUseTls(TRUE);
  29. $ldap_config->addDomain($ldap_config_domain);
  30. /*
  31. * End LDAP Configuration
  32. */
  33. define("SITE_TITLE", "Netsyms Business Apps :: Single Sign On");
  34. // Used to identify the system in OTP and other places
  35. define("SYSTEM_NAME", "Netsyms SSO Demo");
  36. // For supported values, see http://php.net/manual/en/timezones.php
  37. define("TIMEZONE", "America/Denver");
  38. // Base URL for site links.
  39. define('URL', 'http://localhost:8000/');
  40. // Use reCAPTCHA on login screen
  41. // https://www.google.com/recaptcha/
  42. define("RECAPTCHA_ENABLED", FALSE);
  43. define('RECAPTCHA_SITE_KEY', '');
  44. define('RECAPTCHA_SECRET_KEY', '');
  45. // See lang folder for language options
  46. define('LANGUAGE', "en_us");
  47. // Minimum length for new passwords
  48. // The system checks new passwords against the 500 worst passwords and rejects
  49. // any matches.
  50. // If you want to have additional password requirements, go edit action.php.
  51. // However, all that does is encourage people to use the infamous
  52. // "post-it password manager". See also https://xkcd.com/936/ and
  53. // http://stackoverflow.com/a/34166252/2534036 for reasons why forcing passwords
  54. // like CaPs45$% is not actually a great idea.
  55. // Encourage users to use 2-factor auth whenever possible.
  56. define("MIN_PASSWORD_LENGTH", 8);
  57. // Maximum number of rows to get in a query.
  58. define("QUERY_LIMIT", 1000);
  59. //////////////////////////////////////////////////////////////
  60. // /!\ Warning: Changing these values may /!\ //
  61. // /!\ violate the terms of your license agreement! /!\ //
  62. //////////////////////////////////////////////////////////////
  63. define("LICENSE_TEXT", "<b>Unlicensed Demo: For Trial Use Only</b>");
  64. define("COPYRIGHT_NAME", "Netsyms Technologies");
  65. //////////////////////////////////////////////////////////////