1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 09:24:21 +01:00

configuration formatting

This commit is contained in:
kakwa 2015-04-26 09:40:50 +02:00
parent 398a29f7e2
commit 6ece24bd84
3 changed files with 19 additions and 6 deletions

View File

@ -76,11 +76,12 @@ home:
backend-attributes:
ldap: home
ad: Home
password:
decription: "Password of the user"
display_name: "Password"
self: true
type: pwd
type: password
backend-attributes:
ldap: userPassword
ad: userPassword

View File

@ -54,10 +54,15 @@ tools.sessions.timeout = 10
# session
#tools.sessions.storage_path = "/var/lib/ldapcherry/sessions"
# resources parameters
[resources]
# templates directory
template_dir = '/usr/share/ldapcherry/templates/'
[attributes]
# file discribing form content
attributes.file = '/etc/ldapcherry/attributes.yml'
[roles]
# file listing roles
roles.file = '/etc/ldapcherry/roles.yml'
[backends]
@ -77,6 +82,13 @@ auth.mode = 'or'
# custom auth module to load
#auth.module = 'ldapcherry.auth.modNone'
# resources parameters
[resources]
# templates directory
template_dir = '/usr/share/ldapcherry/templates/'
[/static]
tools.staticdir.on = True
tools.staticdir.dir = '/usr/share/ldapcherry/static/'

View File

@ -77,7 +77,7 @@ resources_files = get_list_files('resources',
resources_files.append((
os.path.join(sysconfdir, 'ldapcherry'),
[ 'conf/ldapcherry.ini']
[ 'conf/ldapcherry.ini', 'conf/attributes.yml', 'conf/roles.yml']
))
setup(