Lang translations
This commit is contained in:
@@ -36,40 +36,40 @@ form:
|
|||||||
|
|
||||||
tab_1:
|
tab_1:
|
||||||
type: tab
|
type: tab
|
||||||
title: Configuration Options
|
title: PLUGIN_LOGIN_LDAP.CONFIGURATION
|
||||||
fields:
|
fields:
|
||||||
|
|
||||||
server_section:
|
server_section:
|
||||||
type: section
|
type: section
|
||||||
title: Server Configuration
|
title: PLUGIN_LOGIN_LDAP.SERVER_CONFIGURATION
|
||||||
underline: true
|
underline: true
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
|
|
||||||
host:
|
host:
|
||||||
type: text
|
type: text
|
||||||
label: Host
|
label: PLUGIN_LOGIN_LDAP.HOST
|
||||||
size: large
|
size: large
|
||||||
help: Host name of the LDAP server
|
help: PLUGIN_LOGIN_LDAP.HOST_DESC
|
||||||
placeholder: ldap.yourcompany.com
|
placeholder: ldap.yourcompany.com
|
||||||
validate:
|
validate:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
port:
|
port:
|
||||||
type: number
|
type: number
|
||||||
label: Port
|
label: PLUGIN_LOGIN_LDAP.PORT
|
||||||
default: 389
|
default: 389
|
||||||
size: x-small
|
size: x-small
|
||||||
help: Port to connect to host
|
help: PLUGIN_LOGIN_LDAP.PORT_DESC
|
||||||
validate:
|
validate:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
version:
|
version:
|
||||||
type: number
|
type: number
|
||||||
label: Version
|
label: PLUGIN_LOGIN_LDAP.VERSION
|
||||||
default: 3
|
default: 3
|
||||||
size: x-small
|
size: x-small
|
||||||
help: LDAP Version 3 is most popular, only change this if you know what you are doing
|
help: PLUGIN_LOGIN_LDAP.VERSION_DESC
|
||||||
validate:
|
validate:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
@@ -86,8 +86,8 @@ form:
|
|||||||
|
|
||||||
start_tls:
|
start_tls:
|
||||||
type: toggle
|
type: toggle
|
||||||
label: Negotiate TLS
|
label: PLUGIN_LOGIN_LDAP.NEGOTIATE_TLS
|
||||||
help: Negotiate TLS encryption with the LDAP server (requires all traffic to be encrypted)
|
help: PLUGIN_LOGIN_LDAP.NEGOTIATE_TLS_DESC
|
||||||
default: 0
|
default: 0
|
||||||
highlight: 0
|
highlight: 0
|
||||||
options:
|
options:
|
||||||
@@ -98,8 +98,8 @@ form:
|
|||||||
|
|
||||||
opt_referrals:
|
opt_referrals:
|
||||||
type: toggle
|
type: toggle
|
||||||
label: Follow Referrals
|
label: PLUGIN_LOGIN_LDAP.OPT_REFERRALS
|
||||||
help: Sets the value of LDAP_OPT_REFERRALS (Set to "off" for Windows 2003 servers)
|
help: PLUGIN_LOGIN_LDAP.OPT_REFERRALS_DESC
|
||||||
default: 0
|
default: 0
|
||||||
highlight: 0
|
highlight: 0
|
||||||
options:
|
options:
|
||||||
@@ -117,65 +117,64 @@ form:
|
|||||||
|
|
||||||
user_dn:
|
user_dn:
|
||||||
type: text
|
type: text
|
||||||
label: User DN
|
label: PLUGIN_LOGIN_LDAP.USER_DN
|
||||||
size: large
|
size: large
|
||||||
placeholder: uid=[username],dc=company,dc=com
|
placeholder: uid=[username],dc=company,dc=com
|
||||||
help: String used to authenticate a user, where [username] is directly replaced by user value entered via login
|
help: PLUGIN_LOGIN_LDAP.USER_DN_DESC
|
||||||
validate:
|
validate:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
search_dn:
|
search_dn:
|
||||||
type: text
|
type: text
|
||||||
label: User Search DN
|
label: PLUGIN_LOGIN_LDAP.USER_SEARCH_DN
|
||||||
size: large
|
size: large
|
||||||
placeholder: ou=users,dc=company,dc=com
|
placeholder: ou=users,dc=company,dc=com
|
||||||
help: String used to retrieve user data. If not provided, extra LDAP user data will not be stored in Grav user account file
|
help: PLUGIN_LOGIN_LDAP.USER_SEARCH_DN_DESC
|
||||||
|
|
||||||
group_dn:
|
group_dn:
|
||||||
type: text
|
type: text
|
||||||
label: Group Search DN
|
label: PLUGIN_LOGIN_LDAP.GROUP_SEARCH_DN
|
||||||
size: large
|
size: large
|
||||||
placeholder: ou=groups,dc=company,dc=com
|
placeholder: ou=groups,dc=company,dc=com
|
||||||
help: String used to retrieve user group data. If not provided, extra LDAP group data will not be stored in Grav user account file
|
help: PLUGIN_LOGIN_LDAP.GROUP_SEARCH_DN_DESC
|
||||||
|
|
||||||
group_query:
|
group_query:
|
||||||
type: text
|
type: text
|
||||||
label: Group Query
|
label: PLUGIN_LOGIN_LDAP.GROUP_QUERY
|
||||||
size: large
|
size: large
|
||||||
placeholder: '(&(cn=*)(memberUid=[username]))'
|
placeholder: '(&(cn=*)(memberUid=[username]))'
|
||||||
help: The query used to search Groups. Only change this if you know what you are doing
|
help: PLUGIN_LOGIN_LDAP.GROUP_QUERY_DESC
|
||||||
|
|
||||||
map_username:
|
map_username:
|
||||||
type: text
|
type: text
|
||||||
label: Username Mapping
|
label: PLUGIN_LOGIN_LDAP.USERNAME_MAPPING
|
||||||
size: large
|
size: large
|
||||||
help: LDAP Attribute(s) that contains the user's username
|
help: PLUGIN_LOGIN_LDAP.USERNAME_MAPPING_DESC
|
||||||
placeholder: uid
|
placeholder: uid
|
||||||
|
|
||||||
map_fullname:
|
map_fullname:
|
||||||
type: text
|
type: text
|
||||||
label: User Fullname Mapping
|
label: PLUGIN_LOGIN_LDAP.FULLNAME_MAPPING
|
||||||
size: large
|
size: large
|
||||||
help: LDAP Attribute(s) that contains the user's full name
|
help: PLUGIN_LOGIN_LDAP.FULLNAME_MAPPING
|
||||||
placeholder: givenName lastName
|
placeholder: givenName lastName
|
||||||
|
|
||||||
map_email:
|
map_email:
|
||||||
type: text
|
type: text
|
||||||
label: User Email Mapping
|
label: PLUGIN_LOGIN_LDAP.EMAIL_MAPPING
|
||||||
size: large
|
size: large
|
||||||
help: LDAP Attribute that contains the user's email
|
help: PLUGIN_LOGIN_LDAP.EMAIL_MAPPING_DESC
|
||||||
placeholder: mail
|
placeholder: mail
|
||||||
|
|
||||||
advanced_section:
|
tab_2:
|
||||||
type: section
|
type: tab
|
||||||
title: Advanced Configuration
|
title: PLUGIN_LOGIN_LDAP.ADVANCED
|
||||||
underline: true
|
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
|
|
||||||
save_grav_user:
|
save_grav_user:
|
||||||
type: toggle
|
type: toggle
|
||||||
label: Save Grav user
|
label: PLUGIN_LOGIN_LDAP.SAVE_GRAV_USER
|
||||||
|
help: PLUGIN_LOGIN_LDAP.SAVE_GRAV_USER_DESC
|
||||||
highlight: 0
|
highlight: 0
|
||||||
default: 0
|
default: 0
|
||||||
options:
|
options:
|
||||||
@@ -186,8 +185,8 @@ form:
|
|||||||
|
|
||||||
store_ldap_data:
|
store_ldap_data:
|
||||||
type: toggle
|
type: toggle
|
||||||
label: Store LDAP data
|
label: PLUGIN_LOGIN_LDAP.STORE_LDAP_USER
|
||||||
help: If storing a local Grav user, you can also store LDAP data to use in Grav
|
help: PLUGIN_LOGIN_LDAP.STORE_LDAP_USER_DESC
|
||||||
highlight: 0
|
highlight: 0
|
||||||
default: 0
|
default: 0
|
||||||
options:
|
options:
|
||||||
@@ -199,7 +198,7 @@ form:
|
|||||||
default_access_levels.groups:
|
default_access_levels.groups:
|
||||||
type: selectize
|
type: selectize
|
||||||
size: large
|
size: large
|
||||||
label: Default Groups
|
label: PLUGIN_LOGIN_LDAP.DEFAULT_ACCESS_LEVELS_GROUPS
|
||||||
'@data-options': '\Grav\User\Groups::groups'
|
'@data-options': '\Grav\User\Groups::groups'
|
||||||
classes: fancy
|
classes: fancy
|
||||||
validate:
|
validate:
|
||||||
@@ -207,7 +206,7 @@ form:
|
|||||||
|
|
||||||
default_access_levels.access.site:
|
default_access_levels.access.site:
|
||||||
type: array
|
type: array
|
||||||
label: Default Site Access
|
label: PLUGIN_LOGIN_LDAP.DEFAULT_ACCESS_LEVELS_SITE
|
||||||
multiple: false
|
multiple: false
|
||||||
placeholder_key: login
|
placeholder_key: login
|
||||||
placeholder_value: 'true'
|
placeholder_value: 'true'
|
||||||
@@ -218,8 +217,10 @@ form:
|
|||||||
default_access_levels.access.groups:
|
default_access_levels.access.groups:
|
||||||
classes: frontmatter
|
classes: frontmatter
|
||||||
type: editor
|
type: editor
|
||||||
label: Groups Access Level
|
label: PLUGIN_LOGIN_LDAP.DEFAULT_GROUPS_ACCESS_LEVELS
|
||||||
autofocus: true
|
autofocus: true
|
||||||
|
markdown: true
|
||||||
|
description: PLUGIN_LOGIN_LDAP.ACCESS_GROUPS_DESC
|
||||||
default: "admin:\r\n admin:\r\n login: true\r\n super: true\r\n site:\r\n login: true\r\nuser:\r\n site:\r\n login: true"
|
default: "admin:\r\n admin:\r\n login: true\r\n super: true\r\n site:\r\n login: true\r\nuser:\r\n site:\r\n login: true"
|
||||||
codemirror:
|
codemirror:
|
||||||
mode: 'yaml'
|
mode: 'yaml'
|
||||||
@@ -231,9 +232,11 @@ form:
|
|||||||
gutters: ['CodeMirror-lint-markers']
|
gutters: ['CodeMirror-lint-markers']
|
||||||
lint: true
|
lint: true
|
||||||
|
|
||||||
tab_2:
|
|
||||||
|
|
||||||
|
tab_3:
|
||||||
type: tab
|
type: tab
|
||||||
title: Instructions
|
title: PLUGIN_LOGIN_LDAP.INSTRUCTIONS
|
||||||
fields:
|
fields:
|
||||||
|
|
||||||
ldap_instructions:
|
ldap_instructions:
|
||||||
@@ -241,4 +244,3 @@ form:
|
|||||||
markdown: true
|
markdown: true
|
||||||
style: vertical
|
style: vertical
|
||||||
file: 'plugins://login-ldap/README.md'
|
file: 'plugins://login-ldap/README.md'
|
||||||
|
|
||||||
|
|||||||
38
languages/en.yaml
Normal file
38
languages/en.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
PLUGIN_LOGIN_LDAP:
|
||||||
|
ACCESS_GROUPS_DESC: 'NOTE: The first level defines the **LDAP group** to be mapped, subsequent levels define the **Grav Access Levels** to give a user who is assigned to that group.'
|
||||||
|
ADVANCED: 'Advanced'
|
||||||
|
CONFIGURATION: 'Configuration'
|
||||||
|
DEFAULT_ACCESS_LEVELS_GROUPS: 'Default Groups'
|
||||||
|
DEFAULT_ACCESS_LEVELS_SITE: 'Default Site Access'
|
||||||
|
DEFAULT_GROUPS_ACCESS_LEVELS: 'Groups Access Level'
|
||||||
|
GROUP_SEARCH_DN: 'Group Search DN'
|
||||||
|
GROUP_SEARCH_DN_DESC: 'String used to retrieve user group data. If not provided, extra LDAP group data will not be stored in Grav user account file'
|
||||||
|
GROUP_QUERY: 'Group Query'
|
||||||
|
GROUP_QUERY_DESC: 'The query used to search Groups. Only change this if you know what you are doing'
|
||||||
|
HOST: 'Host'
|
||||||
|
HOST_DESC: 'Host name of the LDAP server'
|
||||||
|
INSTRUCTIONS: 'Instructions'
|
||||||
|
NEGOTIATE_TLS: 'Negotiate TLS'
|
||||||
|
NEGOTIATE_TLS_DESC: 'Negotiate TLS encryption with the LDAP server (requires all traffic to be encrypted)'
|
||||||
|
OPT_REFERRALS: 'Follow Referrals'
|
||||||
|
OPT_REFERRALS_DESC: 'Sets the value of LDAP_OPT_REFERRALS (Set to "off" for Windows 2003 servers)'
|
||||||
|
PORT: 'Port'
|
||||||
|
PORT_DESC: 'Port to connect to host'
|
||||||
|
SAVE_GRAV_USER: 'Save Grav user'
|
||||||
|
SAVE_GRAV_USER_DESC: 'Saves the logged in user as a local Grav account'
|
||||||
|
STORE_LDAP_USER: 'Store LDAP data'
|
||||||
|
STORE_LDAP_USER_DESC: 'If storing a local Grav user, you can also store LDAP data to use in Grav'
|
||||||
|
SERVER_CONFIGURATION: 'Server Configuration'
|
||||||
|
USE_SSL: 'Use SSL'
|
||||||
|
USER_DN: 'User DN'
|
||||||
|
USER_DN_DESC: 'String used to authenticate a user, where [username] is directly replaced by user value entered via login'
|
||||||
|
USERNAME_MAPPING: 'Username Mapping'
|
||||||
|
USERNAME_MAPPING_DESC: 'LDAP Attribute(s) that contains the user''s username'
|
||||||
|
FULLNAME_MAPPING: 'User Fullname Mapping'
|
||||||
|
FULLNAME_MAPPING_DESC: 'LDAP Attribute(s) that contains the user''s full name'
|
||||||
|
EMAIL_MAPPING: 'User Email Mapping'
|
||||||
|
EMAIL_MAPPING_DESC: 'LDAP Attribute that contains the user''s email'
|
||||||
|
USER_SEARCH_DN: 'User Search DN'
|
||||||
|
USER_SEARCH_DN_DESC: 'String used to retrieve user data. If not provided, extra LDAP user data will not be stored in Grav user account file'
|
||||||
|
VERSION: 'Version'
|
||||||
|
VERSION_DESC: 'LDAP Version 3 is most popular, only change this if you know what you are doing'
|
||||||
Reference in New Issue
Block a user