feat(xo-server-auth-ldap/configuration): add titles and reorder settings
This commit is contained in:
parent
f3527a44d7
commit
511a04dad5
@ -32,10 +32,12 @@ export const configurationSchema = {
|
|||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
uri: {
|
uri: {
|
||||||
|
title: 'URI',
|
||||||
description: 'URI of the LDAP server.',
|
description: 'URI of the LDAP server.',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
certificateAuthorities: {
|
certificateAuthorities: {
|
||||||
|
title: 'Certificate Authorities',
|
||||||
description: `
|
description: `
|
||||||
Paths to CA certificates to use when connecting to SSL-secured LDAP servers.
|
Paths to CA certificates to use when connecting to SSL-secured LDAP servers.
|
||||||
|
|
||||||
@ -47,12 +49,24 @@ If not specified, it will use a default set of well-known CAs.
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
checkCertificate: {
|
checkCertificate: {
|
||||||
|
title: 'Check certificate',
|
||||||
description:
|
description:
|
||||||
"Enforce the validity of the server's certificates. You can disable it when connecting to servers that use a self-signed certificate.",
|
"Enforce the validity of the server's certificates. You can disable it when connecting to servers that use a self-signed certificate.",
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaults: DEFAULTS.checkCertificate,
|
defaults: DEFAULTS.checkCertificate,
|
||||||
},
|
},
|
||||||
|
startTls: {
|
||||||
|
title: 'Use StartTLS',
|
||||||
|
type: 'boolean',
|
||||||
|
},
|
||||||
|
base: {
|
||||||
|
title: 'Base',
|
||||||
|
description:
|
||||||
|
'The base is the part of the description tree where the users and groups are looked for.',
|
||||||
|
type: 'string',
|
||||||
|
},
|
||||||
bind: {
|
bind: {
|
||||||
|
title: 'Credentials',
|
||||||
description: 'Credentials to use before looking for the user record.',
|
description: 'Credentials to use before looking for the user record.',
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
@ -74,12 +88,8 @@ For Microsoft Active Directory, it can also be \`<user>@<domain>\`.
|
|||||||
},
|
},
|
||||||
required: ['dn', 'password'],
|
required: ['dn', 'password'],
|
||||||
},
|
},
|
||||||
base: {
|
|
||||||
description:
|
|
||||||
'The base is the part of the description tree where the users are looked for.',
|
|
||||||
type: 'string',
|
|
||||||
},
|
|
||||||
filter: {
|
filter: {
|
||||||
|
title: 'User filter',
|
||||||
description: `
|
description: `
|
||||||
Filter used to find the user.
|
Filter used to find the user.
|
||||||
|
|
||||||
@ -102,10 +112,6 @@ Or something like this if you also want to filter by group:
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
default: DEFAULTS.filter,
|
default: DEFAULTS.filter,
|
||||||
},
|
},
|
||||||
startTls: {
|
|
||||||
title: 'Use StartTLS',
|
|
||||||
type: 'boolean',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
required: ['uri', 'base'],
|
required: ['uri', 'base'],
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user