From b9a182cf6a80032f101911042a91e535080ee998 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 28 May 2020 17:57:12 +0200 Subject: [PATCH] add __APP__ for ldap --- conf/config.json.example | 2 +- scripts/upgrade | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/config.json.example b/conf/config.json.example index 9a2032c..2eded54 100644 --- a/conf/config.json.example +++ b/conf/config.json.example @@ -35,7 +35,7 @@ "bindDn": null, "bindCredentials": null, "searchBase": "ou=users,dc=yunohost,dc=org", - "searchFilter": "(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=codimd.main,ou=permission,dc=yunohost,dc=org))", + "searchFilter": "(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))", "usernameField": "cn", "useridField": "uid" } diff --git a/scripts/upgrade b/scripts/upgrade index 0ad1ad0..60b685e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,6 +100,7 @@ ynh_replace_string --match_string="__PATH__" --replace_string="${path_url:1 ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="../conf/config.json.example" ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="../conf/config.json.example" ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="../conf/config.json.example" +ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/config.json.example" cp ../conf/config.json.example "$final_path/config.json"