1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kimai2_ynh.git synced 2024-09-03 19:26:26 +02:00
This commit is contained in:
ericgaspar 2022-03-13 00:01:25 +01:00
parent 6fbf09c43e
commit 963dae7041
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 7 deletions

View file

@ -112,12 +112,12 @@ kimai:
attributes:
# The following 2 rules are automatically prepended and can be overwritten.
# Username is set to the value of the configured "usernameAttribute" field
- { ldap_attr: "uid", user_method: "setUsername" }
- { ldap_attr: "uid", user_method: setUsername }
# Only applied if you don't configure a mapping for setEmail()
- { ldap_attr: "mail", user_method: "setEmail" }
- { ldap_attr: "mail", user_method: setEmail }
# An example which will set the display name in Kimai from the
# value of the "common name" field in your LDAP
- { ldap_attr: "cn", user_method: "setAlias" }
- { ldap_attr: "cn", user_method: setAlias }
# You can comment the following section, if you don't want to manage
# user roles in Kimai via LDAP groups. If you want to use the group
@ -135,8 +135,8 @@ kimai:
# The following example rule will be expanded to (for user "foo"):
# (&(&(objectClass=groupOfNames))(member=foo))
# default: empty
filter: "(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))"
filter: "(&(objectClass=posixGroup)(cn=__APP__*))"
# The following field is taken from the LDAP user entry and its
# value is used in the filter above as "valueOfUsernameAttribute".
# The attribute must be given in lowercase!

View file

@ -30,7 +30,6 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
registration=$YNH_APP_ARG_REGISTRATION
random_key=$(ynh_string_random 32)
phpversion=$YNH_PHP_VERSION
email=$(ynh_user_get_info --username=$admin --key=mail)
app=$YNH_APP_INSTANCE_NAME
@ -174,7 +173,6 @@ ynh_script_progression --message="Installing Kimai2..."
pushd "$final_path"
ynh_exec_as $app php$phpversion bin/console kimai:install -n
ynh_exec_as $app php$phpversion bin/console kimai:create-user $admin $email ROLE_SUPER_ADMIN -n
popd
#=================================================