From ab95400163da7b4b1550130f02b1dbe70a4dcf75 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 21 Jun 2019 20:46:46 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20#153=20=E2=80=94=20Allow=20to=20fetch=20u?= =?UTF-8?q?ser=20informations=20from=20LDAP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lufi.conf.template | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lufi.conf.template b/lufi.conf.template index 9db3777..7e9e267 100644 --- a/lufi.conf.template +++ b/lufi.conf.template @@ -181,6 +181,18 @@ # } #}, + # if you use `ldap` for authentication, you can map some attributes from LDAP to be able to access them in Lufi + # those attributes will be accessible with: + # $c->current_user->{lufi_attribute_name} in Lufi backend files (all that is in `lib` directory) + # <%= $self->current_user->{lufi_attribute_name} %> in templates files (in `themes` directory) + # + # define the attributes like this: `lufi_attribute_name => 'LDAP_attribute_name'` + # note that you can’t use `username` as a Lufi attribute name: this name is reserved and will contain the login of the user + #ldap_map_attr => { + # displayname => 'cn', + # mail => 'mail' + #}, + # set `htpasswd` if you want to use an htpasswd file instead of ldap # see 'man htpasswd' to know how to create such file #htpasswd => 'lufi.passwd',