Added example LDAP Data page
This commit is contained in:
@@ -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
21
example/default.md
Normal 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) }}
|
||||||
Reference in New Issue
Block a user