summaryrefslogtreecommitdiff
path: root/src/views/_sila/SecurityAndAccess/Ldap/Ldap.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/_sila/SecurityAndAccess/Ldap/Ldap.vue')
-rw-r--r--src/views/_sila/SecurityAndAccess/Ldap/Ldap.vue44
1 files changed, 33 insertions, 11 deletions
diff --git a/src/views/_sila/SecurityAndAccess/Ldap/Ldap.vue b/src/views/_sila/SecurityAndAccess/Ldap/Ldap.vue
index b33cdf92..358cdf70 100644
--- a/src/views/_sila/SecurityAndAccess/Ldap/Ldap.vue
+++ b/src/views/_sila/SecurityAndAccess/Ldap/Ldap.vue
@@ -13,7 +13,10 @@
<b-form-checkbox
v-model="form.ldapAuthenticationEnabled"
data-test-id="ldap-checkbox-ldapAuthenticationEnabled"
- :disabled="$store.getters['authentication/role'] === 'ReadOnly'"
+ :disabled="
+ $store.getters['authentication/role'] === 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
+ "
@change="onChangeldapAuthenticationEnabled"
>
{{ $t('global.action.enable') }}
@@ -45,7 +48,8 @@
:disabled="
!caCertificateExpiration ||
!ldapCertificateExpiration ||
- $store.getters['authentication/role'] === 'ReadOnly'
+ $store.getters['authentication/role'] === 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
@change="$v.form.secureLdapEnabled.$touch()"
>
@@ -80,7 +84,9 @@
data-test-id="ldap-radio-activeDirectoryEnabled"
:value="false"
:disabled="
- $store.getters['authentication/role'] === 'ReadOnly'
+ $store.getters['authentication/role'] ===
+ 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
@change="onChangeServiceType"
>
@@ -91,7 +97,9 @@
data-test-id="ldap-radio-activeDirectoryEnabled"
:value="true"
:disabled="
- $store.getters['authentication/role'] === 'ReadOnly'
+ $store.getters['authentication/role'] ===
+ 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
@change="onChangeServiceType"
>
@@ -116,7 +124,9 @@
data-test-id="ldap-input-serverUri"
:state="getValidationState($v.form.serverUri)"
:disabled="
- $store.getters['authentication/role'] === 'ReadOnly'
+ $store.getters['authentication/role'] ===
+ 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
@change="$v.form.serverUri.$touch()"
/>
@@ -137,7 +147,9 @@
data-test-id="ldap-input-bindDn"
:state="getValidationState($v.form.bindDn)"
:disabled="
- $store.getters['authentication/role'] === 'ReadOnly'
+ $store.getters['authentication/role'] ===
+ 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
@change="$v.form.bindDn.$touch()"
/>
@@ -161,7 +173,9 @@
:state="getValidationState($v.form.bindPassword)"
class="form-control-with-button"
:disabled="
- $store.getters['authentication/role'] === 'ReadOnly'
+ $store.getters['authentication/role'] ===
+ 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
@change="$v.form.bindPassword.$touch()"
/>
@@ -182,7 +196,9 @@
data-test-id="ldap-input-baseDn"
:state="getValidationState($v.form.baseDn)"
:disabled="
- $store.getters['authentication/role'] === 'ReadOnly'
+ $store.getters['authentication/role'] ===
+ 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
@change="$v.form.baseDn.$touch()"
/>
@@ -204,7 +220,9 @@
v-model="form.userIdAttribute"
data-test-id="ldap-input-userIdAttribute"
:disabled="
- $store.getters['authentication/role'] === 'ReadOnly'
+ $store.getters['authentication/role'] ===
+ 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
@change="$v.form.userIdAttribute.$touch()"
/>
@@ -223,7 +241,9 @@
v-model="form.groupIdAttribute"
data-test-id="ldap-input-groupIdAttribute"
:disabled="
- $store.getters['authentication/role'] === 'ReadOnly'
+ $store.getters['authentication/role'] ===
+ 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
@change="$v.form.groupIdAttribute.$touch()"
/>
@@ -241,7 +261,9 @@
type="submit"
data-test-id="ldap-button-saveSettings"
:disabled="
- loading || $store.getters['authentication/role'] === 'ReadOnly'
+ loading ||
+ $store.getters['authentication/role'] === 'ReadOnly' ||
+ $store.getters['authentication/role'] === 'Operator'
"
>
{{ $t('global.action.saveSettings') }}