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

58 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,
"FORCE_SCRIPT_NAME":"/__APP__",
"LDAP_SERVERS": [{"host": "127.0.0.1", "port": 389, "use_ssl": false, "get_info": "NONE"}],
"LDAP_ENGINE" : "OpenLDAP",
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",
"LDAP_USER_SEARCH_FILTER" : "(&(|(objectclass=posixAccount))(uid=%uid)(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))",
"LDAP_USER_MODEL_USERNAME_FIELD" : "uid",
"LDAP_USE_LDAP_GROUPS" : true,
"LDAP_GROUPS_SEARCH_BASE" : "ou=groups,dc=yunohost,dc=org",
"LDAP_GROUPS_SEARCH_FILTER" : "(&(objectclass=top)(memberUid=*))",
"LDAP_GROUP_MEMBER_ATTRIBUTE" : "memberUid",
"LDAP_GROUPS_MAP" : {},
2023-12-14 17:15:30 +01:00
"LDAP_SUPERUSER_GROUPS" : ["permission=cn=__APP__.admins,ou=permission,dc=yunohost,dc=org"],
"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-13 16:15:51 +01:00
}