mirror of
https://github.com/YunoHost-Apps/diacamma_ynh.git
synced 2024-09-03 18:26:10 +02:00
59 lines
No EOL
2.2 KiB
JSON
59 lines
No EOL
2.2 KiB
JSON
{
|
|
"LANGUAGE_CODE":"__LANGUAGE__",
|
|
"USE_X_FORWARDED_HOST":true,
|
|
"FORCE_SCRIPT_NAME":"/__APP__",
|
|
"LDAP_SERVERS": [{"host": "127.0.0.1", "port": 389, "use_ssl": false, "get_info": "NONE"}],
|
|
"LDAP_ENGINE" : "OpenLDAP",
|
|
"LDAP_AUTHENTICATION" : "ANONYMOUS",
|
|
"LDAP_BIND_USER" : "",
|
|
"LDAP_BIND_PASSWORD" : "",
|
|
"LDAP_ATTRIBUTES_MAP" : {"username": "uid", "first_name": "cn", "last_name": "sn", "email": "mail"},
|
|
"LDAP_SEARCH_BASE" : "ou=users,dc=yunohost,dc=org",
|
|
"LDAP_USER_SEARCH_FILTER" : "(&(|(objectclass=posixAccount))(uid=%s)(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))",
|
|
"LDAP_USER_MODEL_USERNAME_FIELD" : "username",
|
|
"LDAP_USE_LDAP_GROUPS" : true,
|
|
"LDAP_GROUPS_SEARCH_BASE" : "ou=permission,dc=yunohost,dc=org",
|
|
"LDAP_GROUPS_SEARCH_FILTER" : "(objectclass=top)",
|
|
"LDAP_GROUP_MEMBER_ATTRIBUTE" : "inheritPermission",
|
|
"LDAP_GROUPS_MAP" : {},
|
|
"LDAP_SUPERUSER_GROUPS" : ["cn=__APP__.admin,ou=permission,dc=yunohost,dc=org"],
|
|
"LDAP_STAFF_GROUPS" : [],
|
|
"LDAP_IGNORED_LOCAL_GROUPS" : [],
|
|
"USER_READONLY": true,
|
|
"AUTHENTICATION_BACKENDS" : ["django_auth_ldap3_ad.auth.LDAP3ADBackend"],
|
|
"LOGGING" : {
|
|
"version": 1,
|
|
"disable_existing_loggers": false,
|
|
"handlers": {
|
|
"logfile": {
|
|
"class": "logging.handlers.WatchedFileHandler",
|
|
"filename": "__INSTALL_DIR__/django_error.log"
|
|
},
|
|
"console": {
|
|
"class": "logging.StreamHandler"
|
|
}
|
|
},
|
|
"loggers": {
|
|
"django": {
|
|
"level": "ERROR",
|
|
"handlers": ["logfile", "console"],
|
|
"propagate": false
|
|
},
|
|
"lucterios": {
|
|
"level": "WARNING",
|
|
"handlers": ["logfile", "console"],
|
|
"propagate": false
|
|
},
|
|
"diacamma": {
|
|
"level": "WARNING",
|
|
"handlers": ["logfile", "console"],
|
|
"propagate": false
|
|
},
|
|
"django_auth_ldap3_ad": {
|
|
"level": "WARNING",
|
|
"handlers": ["logfile", "console"],
|
|
"propagate": false
|
|
}
|
|
}
|
|
}
|
|
} |