Add search bind support, fix group_identifier typo, fix gidNumber query
- Add search_bind_enabled/search_bind_dn/search_bind_password config - Support both group_indentifier (original typo) and group_identifier - Skip gidNumber query when attribute is empty - Use searchLdap for all search/group queries
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: Login LDAP
|
||||
version: 1.1.0
|
||||
version: 1.2.0
|
||||
description: Allows for Grav user authentication against an LDAP Server such as OpenLDAP or ActiveDirectory
|
||||
icon: user-circle-o
|
||||
author:
|
||||
@@ -108,6 +108,38 @@ form:
|
||||
validate:
|
||||
type: bool
|
||||
|
||||
search_bind_section:
|
||||
type: section
|
||||
title: PLUGIN_LOGIN_LDAP.SEARCH_BIND_CONFIGURATION
|
||||
underline: true
|
||||
|
||||
fields:
|
||||
|
||||
search_bind_enabled:
|
||||
type: toggle
|
||||
label: PLUGIN_LOGIN_LDAP.SEARCH_BIND_ENABLE
|
||||
help: PLUGIN_LOGIN_LDAP.SEARCH_BIND_ENABLE_DESC
|
||||
default: 0
|
||||
highlight: 0
|
||||
options:
|
||||
1: Enabled
|
||||
0: Disabled
|
||||
validate:
|
||||
type: bool
|
||||
|
||||
search_bind_dn:
|
||||
type: text
|
||||
label: PLUGIN_LOGIN_LDAP.SEARCH_BIND_DN
|
||||
size: large
|
||||
placeholder: cn=readonly,dc=company,dc=com
|
||||
help: PLUGIN_LOGIN_LDAP.SEARCH_BIND_DN_DESC
|
||||
|
||||
search_bind_password:
|
||||
type: password
|
||||
label: PLUGIN_LOGIN_LDAP.SEARCH_BIND_PASSWORD
|
||||
size: large
|
||||
help: PLUGIN_LOGIN_LDAP.SEARCH_BIND_PASSWORD_DESC
|
||||
|
||||
config_section:
|
||||
type: section
|
||||
title: LDAP Configuration
|
||||
|
||||
Reference in New Issue
Block a user