Added example LDAP Data page

This commit is contained in:
Djamil Legato
2018-05-16 12:33:46 -07:00
parent 47dcea06c7
commit a6def9336f
2 changed files with 23 additions and 0 deletions

View File

@@ -171,3 +171,5 @@ If either the `user_dn`, `search_dn`, `group_dn` or `group_query` are incorrect
If you expect `fullname`, or `email` to be stored in the Grav user object, but they are not appearing, it's probably a problem with your field mappings. Double check with your LDAP administrator that these are the correct mappings. If you expect `fullname`, or `email` to be stored in the Grav user object, but they are not appearing, it's probably a problem with your field mappings. Double check with your LDAP administrator that these are the correct mappings.
Under the `example` folder you can find a `default.md` page that you can use to see the data collected during LDAP authentication. It's an useful way for configuring the plugin as well as tweaking the Blacklist.

21
example/default.md Normal file
View File

@@ -0,0 +1,21 @@
---
title: LDAP Data
cache_enabled: false
process:
twig: true
access:
site.login: true
---
# This is a secure page...
## Welcome {{ grav.user.fullname }}
User `{{ grav.user.username }}` {{ grav.user.exists ? '**has** a' : 'does **not** have' }} local account...
* username: `{{ grav.user.username }}`
* email: `{{ grav.user.email }}`
* login: `{{ grav.user.login }}`
* provider: `{{ grav.user.provider }}`
* groups: {{ vardump(grav.user.groups) }}
* access: {{ vardump(grav.user.access) }}
* ldap: {{ vardump(grav.user.ldap) }}