mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Add some default values
This commit is contained in:
parent
e47dfe778e
commit
71c0903431
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ end
|
||||||
default_conf = {
|
default_conf = {
|
||||||
portal_scheme = "https",
|
portal_scheme = "https",
|
||||||
portal_path = "/ssowat",
|
portal_path = "/ssowat",
|
||||||
|
domains = { conf["portal_domain"] },
|
||||||
session_timeout = 60 * 60 * 24, -- one day
|
session_timeout = 60 * 60 * 24, -- one day
|
||||||
session_max_timeout = 60 * 60 * 24 * 7, -- one week
|
session_max_timeout = 60 * 60 * 24 * 7, -- one week
|
||||||
login_arg = "sso_login",
|
login_arg = "sso_login",
|
||||||
|
@ -44,7 +45,8 @@ default_conf = {
|
||||||
ldap_group = "ou=users,dc=yunohost,dc=org",
|
ldap_group = "ou=users,dc=yunohost,dc=org",
|
||||||
ldap_identifier = "uid",
|
ldap_identifier = "uid",
|
||||||
ldap_attributes = {"uid", "givenname", "sn", "cn", "homedirectory", "mail", "maildrop"},
|
ldap_attributes = {"uid", "givenname", "sn", "cn", "homedirectory", "mail", "maildrop"},
|
||||||
allow_mail_authentication = true
|
allow_mail_authentication = true,
|
||||||
|
additional_headers = { Remote-user = "uid" }
|
||||||
}
|
}
|
||||||
|
|
||||||
for param, default_value in pairs(default_conf) do
|
for param, default_value in pairs(default_conf) do
|
||||||
|
|
Loading…
Add table
Reference in a new issue