diff --git a/conf/local.config.php b/conf/local.config.php new file mode 100644 index 0000000..5dbd44f --- /dev/null +++ b/conf/local.config.php @@ -0,0 +1,47 @@ + [ + 'log' => false, + 'priority' => \Laminas\Log\Logger::NOTICE, + ], + 'http_client' => [ + 'sslcapath' => null, + 'sslcafile' => null, + ], + 'cli' => [ + 'phpcli_path' => null, + ], + 'thumbnails' => [ + 'types' => [ + 'large' => ['constraint' => 800], + 'medium' => ['constraint' => 200], + 'square' => ['constraint' => 200], + ], + 'thumbnailer_options' => [ + 'imagemagick_dir' => null, + ], + ], + 'translator' => [ + 'locale' => 'en_US', + ], + 'service_manager' => [ + 'aliases' => [ + 'Omeka\File\Store' => 'Omeka\File\Store\Local', + 'Omeka\File\Thumbnailer' => 'Omeka\File\Thumbnailer\ImageMagick', + ], + ], + 'ldap' => [ + 'adapter_options' => [ + 'server1' => [ + 'host' => 'localhost', + 'username' => 'ou=users,dc=yunohost,dc=org', + 'password' => null, + 'bindRequiresDn' => true, + 'baseDn' => 'ou=users,dc=yunohost,dc=org', + 'accountFilterFormat' => "(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))", + 'accountCanonicalForm' => 4, + 'accountDomainName' => 'example.com', + ], + ], + ], +]; diff --git a/manifest.toml b/manifest.toml index a6919ef..7254442 100644 --- a/manifest.toml +++ b/manifest.toml @@ -58,6 +58,12 @@ ram.runtime = "50M" sha256 = "95aa91802ef497f6fb33e7bf1d129b041dc11ce1dc2eca4a6790a29becd592ad" autoupdate.strategy = "latest_github_tag" + [resources.sources.ldap] + in_subdir = false + url = "https://github.com/biblibre/omeka-s-module-Ldap/releases/download/v0.5.0/Ldap-0.5.0.zip" + sha256 = "5f0e36c7438f045cec3b7427fd8ebb5f8722b26043cc2028d9577400862becd9" + autoupdate.strategy = "latest_github_tag" + [resources.system_user] [resources.install_dir] diff --git a/scripts/install b/scripts/install index e91476b..cbfedf7 100755 --- a/scripts/install +++ b/scripts/install @@ -32,6 +32,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport" +ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="ldap" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index 28c9c3d..50dac4e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,7 +39,8 @@ ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" --keep="config/local.config.php config/database.ini modules themes files" -ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport" --full_replace=1 +ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport" +ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="ldap" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir"