From 7079a2efebd27d3c274ca7cae3c6d96ab45ced70 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 18 Apr 2022 11:15:21 +0200 Subject: [PATCH] Add LDAP --- conf/ldap-config.yaml | 4 ++-- conf/ldap.src | 7 +++++++ scripts/install | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/conf/ldap-config.yaml b/conf/ldap-config.yaml index 2398b25..57d39a1 100644 --- a/conf/ldap-config.yaml +++ b/conf/ldap-config.yaml @@ -5,14 +5,14 @@ # example configuration that works with Forum Systems's testing server: # https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/ -host: "ldap.forumsys.com" +host: "ldap://127.0.0.1" port: 389 timeout: 30s # uncomment for TLS: # use-ssl: true # example "single-bind" configuration, where we bind directly to the user's entry: -bind-dn: "uid=%s,dc=example,dc=com" +bind-dn: "ou=users,dc=yunohost,dc=org" # example "admin bind" configuration, where we bind to an initial admin user, # then search for the user's entry with a search filter: diff --git a/conf/ldap.src b/conf/ldap.src index e69de29..1bb67d9 100644 --- a/conf/ldap.src +++ b/conf/ldap.src @@ -0,0 +1,7 @@ +SOURCE_URL=https://github.com/YunoHost-Apps/ergo_ynh/releases/download/v.1/ergo-ldap.zip +SOURCE_SUM=4fa3e4511a5462e9a3b831db67d754d322fa1db41a708901dfae50fe3e959377 +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=zip +SOURCE_IN_SUBDIR=true +SOURCE_FILENAME= +SOURCE_EXTRACT=true diff --git a/scripts/install b/scripts/install index 09249b8..0991740 100755 --- a/scripts/install +++ b/scripts/install @@ -83,6 +83,7 @@ ynh_script_progression --message="Setting up source files..." --time --weight=1 ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --source_id=$YNH_ARCH +ynh_setup_source --dest_dir="$final_path" --source_id=ldap chmod 750 "$final_path" chmod -R o-rwx "$final_path"