|
@@ -35,7 +35,7 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
|
try {
|
|
try {
|
|
|
await apiv3Put('/external-user-groups/ldap/sync-settings', formValues);
|
|
await apiv3Put('/external-user-groups/ldap/sync-settings', formValues);
|
|
|
- toastSuccess(t('external_group.ldap.updated_group_sync_settings'));
|
|
|
|
|
|
|
+ toastSuccess(t('external_user_group.ldap.updated_group_sync_settings'));
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
toastError(err);
|
|
toastError(err);
|
|
@@ -43,10 +43,14 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
}, [formValues, t]);
|
|
}, [formValues, t]);
|
|
|
|
|
|
|
|
return <>
|
|
return <>
|
|
|
- <h3 className="border-bottom mb-3">{t('external_group.ldap.group_sync_settings')}</h3>
|
|
|
|
|
|
|
+ <h3 className="border-bottom mb-3">{t('external_user_group.ldap.group_sync_settings')}</h3>
|
|
|
<form onSubmit={submitHandler}>
|
|
<form onSubmit={submitHandler}>
|
|
|
<div className="row form-group">
|
|
<div className="row form-group">
|
|
|
- <label htmlFor="ldapGroupSearchBase" className="text-left text-md-right col-md-3 col-form-label">{t('external_group.ldap.group_search_base_DN')}</label>
|
|
|
|
|
|
|
+ <label
|
|
|
|
|
+ htmlFor="ldapGroupSearchBase"
|
|
|
|
|
+ className="text-left text-md-right col-md-3 col-form-label">
|
|
|
|
|
+ {t('external_user_group.ldap.group_search_base_DN')}
|
|
|
|
|
+ </label>
|
|
|
<div className="col-md-6">
|
|
<div className="col-md-6">
|
|
|
<input
|
|
<input
|
|
|
className="form-control"
|
|
className="form-control"
|
|
@@ -57,13 +61,13 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
onChange={e => setFormValues({ ...formValues, ldapGroupSearchBase: e.target.value })}
|
|
onChange={e => setFormValues({ ...formValues, ldapGroupSearchBase: e.target.value })}
|
|
|
/>
|
|
/>
|
|
|
<p className="form-text text-muted">
|
|
<p className="form-text text-muted">
|
|
|
- <small>{t('external_group.ldap.group_search_base_dn_detail')}</small>
|
|
|
|
|
|
|
+ <small>{t('external_user_group.ldap.group_search_base_dn_detail')}</small>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div className="row form-group">
|
|
<div className="row form-group">
|
|
|
<label htmlFor="ldapGroupMembershipAttribute" className="text-left text-md-right col-md-3 col-form-label">
|
|
<label htmlFor="ldapGroupMembershipAttribute" className="text-left text-md-right col-md-3 col-form-label">
|
|
|
- {t('external_group.ldap.membership_attribute')}
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.membership_attribute')}
|
|
|
</label>
|
|
</label>
|
|
|
<div className="col-md-6">
|
|
<div className="col-md-6">
|
|
|
<input
|
|
<input
|
|
@@ -77,15 +81,15 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
/>
|
|
/>
|
|
|
<p className="form-text text-muted">
|
|
<p className="form-text text-muted">
|
|
|
<small>
|
|
<small>
|
|
|
- {t('external_group.ldap.membership_attribute_detail')} <br />
|
|
|
|
|
- e.g.) <code>member</code>, <code>memberUid</code>
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.membership_attribute_detail')} <br />
|
|
|
|
|
+ e.g.) <code>member</code>, <code>memberUid</code>
|
|
|
</small>
|
|
</small>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div className="row form-group">
|
|
<div className="row form-group">
|
|
|
<label htmlFor="ldapGroupMembershipAttributeType" className="text-left text-md-right col-md-3 col-form-label">
|
|
<label htmlFor="ldapGroupMembershipAttributeType" className="text-left text-md-right col-md-3 col-form-label">
|
|
|
- {t('external_group.ldap.membership_attribute_type')}
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.membership_attribute_type')}
|
|
|
</label>
|
|
</label>
|
|
|
<div className="col-md-6">
|
|
<div className="col-md-6">
|
|
|
<select
|
|
<select
|
|
@@ -104,14 +108,14 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
</select>
|
|
</select>
|
|
|
<p className="form-text text-muted">
|
|
<p className="form-text text-muted">
|
|
|
<small>
|
|
<small>
|
|
|
- {t('external_group.ldap.membership_attribute_type_detail')}
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.membership_attribute_type_detail')}
|
|
|
</small>
|
|
</small>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div className="row form-group">
|
|
<div className="row form-group">
|
|
|
<label htmlFor="ldapGroupChildGroupAttribute" className="text-left text-md-right col-md-3 col-form-label">
|
|
<label htmlFor="ldapGroupChildGroupAttribute" className="text-left text-md-right col-md-3 col-form-label">
|
|
|
- {t('external_group.ldap.child_group_attribute')}
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.child_group_attribute')}
|
|
|
</label>
|
|
</label>
|
|
|
<div className="col-md-6">
|
|
<div className="col-md-6">
|
|
|
<input
|
|
<input
|
|
@@ -124,7 +128,7 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
onChange={e => setFormValues({ ...formValues, ldapGroupChildGroupAttribute: e.target.value })}/>
|
|
onChange={e => setFormValues({ ...formValues, ldapGroupChildGroupAttribute: e.target.value })}/>
|
|
|
<p className="form-text text-muted">
|
|
<p className="form-text text-muted">
|
|
|
<small>
|
|
<small>
|
|
|
- {t('external_group.ldap.child_group_attribute_detail')}<br />
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.child_group_attribute_detail')}<br />
|
|
|
e.g.) <code>member</code>
|
|
e.g.) <code>member</code>
|
|
|
</small>
|
|
</small>
|
|
|
</p>
|
|
</p>
|
|
@@ -134,7 +138,7 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
<label
|
|
<label
|
|
|
className="text-left text-md-right col-md-3 col-form-label"
|
|
className="text-left text-md-right col-md-3 col-form-label"
|
|
|
>
|
|
>
|
|
|
- {/* {t('external_group.ldap.auto_generate_user_on_sync')} */}
|
|
|
|
|
|
|
+ {/* {t('external_user_group.ldap.auto_generate_user_on_sync')} */}
|
|
|
</label>
|
|
</label>
|
|
|
<div className="col-md-6">
|
|
<div className="col-md-6">
|
|
|
<div className="custom-control custom-checkbox custom-checkbox-info">
|
|
<div className="custom-control custom-checkbox custom-checkbox-info">
|
|
@@ -150,7 +154,7 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
className="custom-control-label"
|
|
className="custom-control-label"
|
|
|
htmlFor="autoGenerateUserOnLdapGroupSync"
|
|
htmlFor="autoGenerateUserOnLdapGroupSync"
|
|
|
>
|
|
>
|
|
|
- {t('external_group.ldap.auto_generate_user_on_sync')}
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.auto_generate_user_on_sync')}
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -159,7 +163,7 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
<label
|
|
<label
|
|
|
className="text-left text-md-right col-md-3 col-form-label"
|
|
className="text-left text-md-right col-md-3 col-form-label"
|
|
|
>
|
|
>
|
|
|
- {/* {t('external_group.ldap.preserve_deleted_ldap_groups')} */}
|
|
|
|
|
|
|
+ {/* {t('external_user_group.ldap.preserve_deleted_ldap_groups')} */}
|
|
|
</label>
|
|
</label>
|
|
|
<div className="col-md-6">
|
|
<div className="col-md-6">
|
|
|
<div className="custom-control custom-checkbox custom-checkbox-info">
|
|
<div className="custom-control custom-checkbox custom-checkbox-info">
|
|
@@ -175,7 +179,7 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
className="custom-control-label"
|
|
className="custom-control-label"
|
|
|
htmlFor="preserveDeletedLdapGroups"
|
|
htmlFor="preserveDeletedLdapGroups"
|
|
|
>
|
|
>
|
|
|
- {t('external_group.ldap.preserve_deleted_ldap_groups')}
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.preserve_deleted_ldap_groups')}
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -197,7 +201,7 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
/>
|
|
/>
|
|
|
<p className="form-text text-muted">
|
|
<p className="form-text text-muted">
|
|
|
<small>
|
|
<small>
|
|
|
- {t('external_group.ldap.name_mapper_detail')}
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.name_mapper_detail')}
|
|
|
</small>
|
|
</small>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
@@ -217,7 +221,7 @@ export const LdapGroupSyncSettingsForm: FC = () => {
|
|
|
/>
|
|
/>
|
|
|
<p className="form-text text-muted">
|
|
<p className="form-text text-muted">
|
|
|
<small>
|
|
<small>
|
|
|
- {t('external_group.ldap.description_mapper_detail')}
|
|
|
|
|
|
|
+ {t('external_user_group.ldap.description_mapper_detail')}
|
|
|
</small>
|
|
</small>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|