X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/6eca3aa915782488ab0d688d7397c42e3fdf30b4..refs/heads/ldap:/lib/config.original.php diff --git a/lib/config.original.php b/lib/config.original.php index ffff3ce..7d221b7 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -43,6 +43,7 @@ $cfg['lang'] = 'auto'; /* Select a theme - see media folder for available themes */ $cfg['style'] = 'courgette'; +$cfg['dark_style'] = 'dark-courgette'; /* Name the organisation running this installation, eg. 'ACME' */ @@ -157,7 +158,7 @@ $cfg['proxy_ip'] = array(); /* File hash * In order to make file deduplication work, files can be hashed through different methods. - * By default, files are hashed through md5 but other methods are available. + * To enable file deduplication feature, set this option to `md5`. * * Possible values are 'md5', 'md5_outside' and 'random'. * @@ -167,9 +168,9 @@ $cfg['proxy_ip'] = array(); * - md5 of the last part of the file and * - file's size. * This method offer file deduplication at minimal cost but can be dangerous as files with the same partial hash can be mistaken. - * With 'random' option, file hash is set to a random value and file deduplication cannot work anymore but it is fast and safe. + * With 'random' option, file hash is set to a random value and file deduplication cannot work but it is fast and safe. */ -$cfg['file_hash'] = 'md5'; +$cfg['file_hash'] = 'random'; /* Work around that LiteSpeed truncates large files when downloading. * Only for use with the LiteSpeed web server! @@ -221,3 +222,14 @@ $cfg['debug'] = false; * Set to 0 to remove limitation. */ $cfg['max_upload_chunk_size_bytes'] = 100000000; // 100MB + +/** Enable LDAP authentication for uploaders + * Cannot be used with 'upload_password' or 'upload_ip_nopassword' options. + */ +$cfg['upload_ldap_auth'] = false; + +/** LDAP host to reach when 'upload_ldap_auth' is enabled */ +$cfg['upload_ldap_host'] = ""; + +/** LDAP Base DN to authenticate users with 'upload_ldap_auth' option enabled*/ +$cfg['upload_ldap_base_dn'] = "dc=jirafeau,dc=net";