diff --git a/conf/attributes.yml b/conf/attributes.yml index 1d32abb..071f680 100644 --- a/conf/attributes.yml +++ b/conf/attributes.yml @@ -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 diff --git a/conf/ldapcherry.ini b/conf/ldapcherry.ini index 8d0f61f..8ce92b6 100644 --- a/conf/ldapcherry.ini +++ b/conf/ldapcherry.ini @@ -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/' diff --git a/setup.py b/setup.py index a52446b..abd98f7 100755 --- a/setup.py +++ b/setup.py @@ -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(