|
|
@ -369,17 +369,14 @@ export const LdapDrawerComponent = ({ |
|
|
|
<Field |
|
|
|
<Field |
|
|
|
label={t('ldap-drawer.extra-security-section.client-cert-value-label', 'Client certificate content')} |
|
|
|
label={t('ldap-drawer.extra-security-section.client-cert-value-label', 'Client certificate content')} |
|
|
|
> |
|
|
|
> |
|
|
|
<SecretInput |
|
|
|
<Input |
|
|
|
id="client-cert" |
|
|
|
id="client-cert" |
|
|
|
placeholder={t( |
|
|
|
placeholder={t( |
|
|
|
'ldap-drawer.extra-security-section.client-cert-value-placeholder', |
|
|
|
'ldap-drawer.extra-security-section.client-cert-value-placeholder', |
|
|
|
'Client certificate content in base64' |
|
|
|
'Client certificate content in base64' |
|
|
|
)} |
|
|
|
)} |
|
|
|
isConfigured={mapCertConfigured.clientCertValue} |
|
|
|
type="text" |
|
|
|
onReset={() => { |
|
|
|
{...register(`${serverConfig}.client_cert_value`)} |
|
|
|
setValue(`${serverConfig}.client_cert_value`, ''); |
|
|
|
|
|
|
|
setMapCertConfigured({ ...mapCertConfigured, clientCertValue: false }); |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
</Field> |
|
|
|
</Field> |
|
|
|
<Field label={t('ldap-drawer.extra-security-section.client-key-value-label', 'Client key content')}> |
|
|
|
<Field label={t('ldap-drawer.extra-security-section.client-key-value-label', 'Client key content')}> |
|
|
@ -401,35 +398,25 @@ export const LdapDrawerComponent = ({ |
|
|
|
{encryptionProvider === EncryptionProvider.FilePath && ( |
|
|
|
{encryptionProvider === EncryptionProvider.FilePath && ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<Field label={t('ldap-drawer.extra-security-section.root-ca-cert-label', 'Root CA certificate path')}> |
|
|
|
<Field label={t('ldap-drawer.extra-security-section.root-ca-cert-label', 'Root CA certificate path')}> |
|
|
|
<SecretInput |
|
|
|
<Input |
|
|
|
id="root-ca-cert" |
|
|
|
id="root-ca-cert" |
|
|
|
placeholder={t( |
|
|
|
placeholder={t( |
|
|
|
'ldap-drawer.extra-security-section.root-ca-cert-placeholder', |
|
|
|
'ldap-drawer.extra-security-section.root-ca-cert-placeholder', |
|
|
|
'/path/to/root_ca_cert.pem' |
|
|
|
'/path/to/root_ca_cert.pem' |
|
|
|
)} |
|
|
|
)} |
|
|
|
isConfigured={mapCertConfigured.rootCaCertPath} |
|
|
|
type="text" |
|
|
|
onReset={() => { |
|
|
|
{...register(`${serverConfig}.root_ca_cert`)} |
|
|
|
setValue(`${serverConfig}.root_ca_cert`, ''); |
|
|
|
|
|
|
|
setMapCertConfigured({ ...mapCertConfigured, rootCaCertPath: false }); |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
value={watch(`${serverConfig}.root_ca_cert`)} |
|
|
|
|
|
|
|
onChange={({ currentTarget: { value } }) => setValue(`${serverConfig}.root_ca_cert`, value)} |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
</Field> |
|
|
|
</Field> |
|
|
|
<Field label={t('ldap-drawer.extra-security-section.client-cert-label', 'Client certificate path')}> |
|
|
|
<Field label={t('ldap-drawer.extra-security-section.client-cert-label', 'Client certificate path')}> |
|
|
|
<SecretInput |
|
|
|
<Input |
|
|
|
id="client-cert" |
|
|
|
id="client-cert" |
|
|
|
placeholder={t( |
|
|
|
placeholder={t( |
|
|
|
'ldap-drawer.extra-security-section.client-cert-placeholder', |
|
|
|
'ldap-drawer.extra-security-section.client-cert-placeholder', |
|
|
|
'/path/to/client_cert.pem' |
|
|
|
'/path/to/client_cert.pem' |
|
|
|
)} |
|
|
|
)} |
|
|
|
isConfigured={mapCertConfigured.clientCertPath} |
|
|
|
type="text" |
|
|
|
onReset={() => { |
|
|
|
{...register(`${serverConfig}.client_cert`)} |
|
|
|
setValue(`${serverConfig}.client_cert`, ''); |
|
|
|
|
|
|
|
setMapCertConfigured({ ...mapCertConfigured, clientCertPath: false }); |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
value={watch(`${serverConfig}.client_cert`)} |
|
|
|
|
|
|
|
onChange={({ currentTarget: { value } }) => setValue(`${serverConfig}.client_cert`, value)} |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
</Field> |
|
|
|
</Field> |
|
|
|
<Field label={t('ldap-drawer.extra-security-section.client-key-label', 'Client key path')}> |
|
|
|
<Field label={t('ldap-drawer.extra-security-section.client-key-label', 'Client key path')}> |
|
|
|