1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diacamma_ynh.git synced 2024-09-03 18:26:10 +02:00
diacamma_ynh/conf/extra_diacamma.json

59 lines
2.2 KiB
JSON
Raw Normal View History

2023-12-13 16:15:51 +01:00
{
"LANGUAGE_CODE":"__LANGUAGE__",
"USE_X_FORWARDED_HOST":true,
2023-12-15 16:58:51 +01:00
"FORCE_SCRIPT_NAME":"__PATH__",
2023-12-13 16:15:51 +01:00
"LDAP_SERVERS": [{"host": "127.0.0.1", "port": 389, "use_ssl": false, "get_info": "NONE"}],
"LDAP_ENGINE" : "OpenLDAP",
2023-12-14 19:48:34 +01:00
"LDAP_AUTHENTICATION" : "ANONYMOUS",
2023-12-14 17:15:30 +01:00
"LDAP_BIND_USER" : "",
2023-12-13 16:15:51 +01:00
"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",
2023-12-14 19:48:34 +01:00
"LDAP_USER_SEARCH_FILTER" : "(&(|(objectclass=posixAccount))(uid=%s)(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))",
"LDAP_USER_MODEL_USERNAME_FIELD" : "username",
2023-12-13 16:15:51 +01:00
"LDAP_USE_LDAP_GROUPS" : true,
2023-12-14 18:27:22 +01:00
"LDAP_GROUPS_SEARCH_BASE" : "ou=permission,dc=yunohost,dc=org",
"LDAP_GROUPS_SEARCH_FILTER" : "(objectclass=top)",
2023-12-14 19:48:34 +01:00
"LDAP_GROUP_MEMBER_ATTRIBUTE" : "inheritPermission",
2023-12-13 16:15:51 +01:00
"LDAP_GROUPS_MAP" : {},
2023-12-14 19:48:34 +01:00
"LDAP_SUPERUSER_GROUPS" : ["cn=__APP__.admin,ou=permission,dc=yunohost,dc=org"],
2023-12-14 17:15:30 +01:00
"LDAP_STAFF_GROUPS" : [],
2023-12-13 16:15:51 +01:00
"LDAP_IGNORED_LOCAL_GROUPS" : [],
2023-12-14 17:15:30 +01:00
"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
2023-12-14 17:44:01 +01:00
}
}
2023-12-14 17:15:30 +01:00
}
2023-12-13 16:15:51 +01:00
}