1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00

add __APP__ for ldap

This commit is contained in:
ericgaspar 2020-05-28 17:57:12 +02:00
parent 1281583d6e
commit b9a182cf6a
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 2 additions and 1 deletions

View file

@ -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"
}

View file

@ -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"