1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-26 03:04:30 +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: backend-attributes:
ldap: home ldap: home
ad: Home ad: Home
password: password:
decription: "Password of the user" decription: "Password of the user"
display_name: "Password" display_name: "Password"
self: true self: true
type: pwd type: password
backend-attributes: backend-attributes:
ldap: userPassword ldap: userPassword
ad: userPassword ad: userPassword

View File

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

View File

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