2015-05-18 19:56:44 +02:00
|
|
|
# global parameters
|
|
|
|
[global]
|
|
|
|
|
|
|
|
# listing interface
|
|
|
|
server.socket_host = '127.0.0.1'
|
|
|
|
# port
|
|
|
|
server.socket_port = 8080
|
|
|
|
# number of threads
|
|
|
|
server.thread_pool = 8
|
|
|
|
#don't show traceback on error
|
|
|
|
request.show_tracebacks = False
|
|
|
|
|
|
|
|
# log configuration
|
|
|
|
# /!\ you can't have multiple log handlers
|
|
|
|
#####################################
|
|
|
|
# configuration to log in files #
|
|
|
|
#####################################
|
|
|
|
## logger 'file' for access log
|
|
|
|
#log.access_handler = 'file'
|
|
|
|
## logger syslog for error and ldapcherry log
|
|
|
|
#log.error_handler = 'file'
|
|
|
|
## access log file
|
|
|
|
#log.access_file = '/tmp/ldapcherry_access.log'
|
|
|
|
## error and ldapcherry log file
|
|
|
|
#log.error_file = '/tmp/ldapcherry_error.log'
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# configuration to log in syslog #
|
|
|
|
#####################################
|
|
|
|
# logger syslog for access log
|
|
|
|
#log.access_handler = 'syslog'
|
|
|
|
## logger syslog for error and ldapcherry log
|
|
|
|
log.error_handler = 'syslog'
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# configuration to not log at all #
|
|
|
|
#####################################
|
|
|
|
# logger none for access log
|
2015-05-19 17:55:02 +02:00
|
|
|
log.access_handler = 'syslog'
|
2015-05-18 19:56:44 +02:00
|
|
|
# logger none for error and ldapcherry log
|
|
|
|
#log.error_handler = 'none'
|
|
|
|
|
|
|
|
# log level
|
2015-05-19 17:55:02 +02:00
|
|
|
log.level = 'debug'
|
2015-05-18 19:56:44 +02:00
|
|
|
|
|
|
|
# session configuration
|
|
|
|
# activate session
|
|
|
|
tools.sessions.on = True
|
|
|
|
# session timeout
|
|
|
|
tools.sessions.timeout = 10
|
|
|
|
# file session storage(to use if multiple processes,
|
|
|
|
# default is in RAM and per process)
|
|
|
|
#tools.sessions.storage_type = "file"
|
|
|
|
# session
|
|
|
|
#tools.sessions.storage_path = "/var/lib/ldapcherry/sessions"
|
|
|
|
|
|
|
|
[attributes]
|
|
|
|
|
|
|
|
# file discribing form content
|
2015-05-18 20:04:47 +02:00
|
|
|
attributes.file = './tests/cfg/attributes.yml'
|
2015-05-18 19:56:44 +02:00
|
|
|
|
|
|
|
[roles]
|
|
|
|
|
|
|
|
# file listing roles
|
2015-05-18 20:04:47 +02:00
|
|
|
roles.file = './tests/cfg/roles.yml'
|
2015-05-18 19:56:44 +02:00
|
|
|
|
|
|
|
[backends]
|
|
|
|
|
2015-05-21 08:52:48 +02:00
|
|
|
ldap.module = 'ldapcherry.backend.backendLdap'
|
2015-05-18 19:56:44 +02:00
|
|
|
ldap.groupdn = 'ou=group,dc=example,dc=com'
|
2015-05-22 01:16:53 +02:00
|
|
|
ldap.userdn = 'ou=group,dc=example,dc=com'
|
|
|
|
ldap.binddn = 'cn=dnscherry,dc=example,dc=org'
|
2015-05-18 19:56:44 +02:00
|
|
|
ldap.password = 'password'
|
|
|
|
ldap.uri = 'ldaps://ldap.ldapcherry.org'
|
|
|
|
ldap.ca = '/etc/dnscherry/TEST-cacert.pem'
|
|
|
|
ldap.starttls = 'on'
|
|
|
|
ldap.checkcert = 'off'
|
2015-05-21 21:40:13 +02:00
|
|
|
ldap.user_filter_tmpl = '(uid=%(username)s)'
|
|
|
|
ldap.group_filter_tmpl = '(member=%(userdn)s)'
|
2015-05-18 19:56:44 +02:00
|
|
|
|
2015-05-21 08:52:48 +02:00
|
|
|
ad.module = 'ldapcherry.backend.backendSamba4'
|
2015-05-18 19:56:44 +02:00
|
|
|
ad.auth = 'Administrator'
|
|
|
|
ad.password = 'password'
|
|
|
|
|
|
|
|
# authentification parameters
|
|
|
|
[auth]
|
|
|
|
|
|
|
|
# Auth mode
|
|
|
|
# * and: user must authenticate on all backends
|
|
|
|
# * or: user must authenticate on one of the backend
|
|
|
|
# * none: disable authentification
|
|
|
|
# * custom: custom authentification module (need auth.module param)
|
|
|
|
auth.mode = 'or'
|
|
|
|
|
|
|
|
# custom auth module to load
|
|
|
|
#auth.module = 'ldapcherry.auth.modNone'
|
|
|
|
|
|
|
|
# resources parameters
|
|
|
|
[resources]
|
|
|
|
# templates directory
|
2015-05-18 20:04:47 +02:00
|
|
|
templates.dir = './resources/templates/'
|
2015-05-18 19:56:44 +02:00
|
|
|
|
|
|
|
[/static]
|
|
|
|
tools.staticdir.on = True
|
2015-05-18 20:04:47 +02:00
|
|
|
tools.staticdir.dir = './resources/static/'
|