Fix #153 — Allow to fetch user informations from LDAP

This commit is contained in:
Luc Didry 2019-06-21 20:46:46 +02:00
parent 03091602eb
commit ab95400163
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 12 additions and 0 deletions

View File

@ -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 cant 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',