|
9 | 9 |
|
10 | 10 | <NcTextField |
11 | 11 | autocomplete="off" |
12 | | - :label=" t('user_ldap', 'Backup (Replica) Host')" |
| 12 | + :label="t('user_ldap', 'Backup (Replica) Host')" |
13 | 13 | :value="ldapConfigProxy.ldapBackupHost" |
14 | 14 | :helper-text="t('user_ldap', 'Give an optional backup host. It must be a replica of the main LDAP/AD server.')" |
15 | | - @change.native="(event) => ldapConfigProxy.ldapBackupHost = event.target.value" /> |
| 15 | + @change="(event) => ldapConfigProxy.ldapBackupHost = event.target.value" /> |
16 | 16 |
|
17 | 17 | <NcTextField |
18 | 18 | type="number" |
19 | 19 | :value="ldapConfigProxy.ldapBackupPort" |
20 | | - :label="t('user_ldap', 'Backup (Replica) Port') " |
21 | | - @change.native="(event) => ldapConfigProxy.ldapBackupPort = event.target.value" /> |
| 20 | + :label="t('user_ldap', 'Backup (Replica) Port')" |
| 21 | + @change="(event) => ldapConfigProxy.ldapBackupPort = event.target.value" /> |
22 | 22 |
|
23 | 23 | <NcCheckboxRadioSwitch |
24 | | - :checked="ldapConfigProxy.ldapOverrideMainServer === '1'" |
| 24 | + :model-value="ldapConfigProxy.ldapOverrideMainServer === '1'" |
25 | 25 | type="switch" |
26 | 26 | :aria-label="t('user_ldap', 'Only connect to the replica server.')" |
27 | | - @update:checked="ldapConfigProxy.ldapOverrideMainServer = $event ? '1' : '0'"> |
| 27 | + @update:model-value="ldapConfigProxy.ldapOverrideMainServer = $event ? '1' : '0'"> |
28 | 28 | {{ t('user_ldap', 'Disable Main Server') }} |
29 | 29 | </NcCheckboxRadioSwitch> |
30 | 30 |
|
31 | 31 | <NcCheckboxRadioSwitch |
32 | | - :checked="ldapConfigProxy.turnOffCertCheck === '1'" |
| 32 | + :model-value="ldapConfigProxy.turnOffCertCheck === '1'" |
33 | 33 | :aria-label="t('user_ldap', 'Not recommended, use it for testing only! If connection only works with this option, import the LDAP server\'s SSL certificate in your {instanceName} server.', { instanceName })" |
34 | | - @update:checked="ldapConfigProxy.turnOffCertCheck = $event ? '1' : '0'"> |
| 34 | + @update:model-value="ldapConfigProxy.turnOffCertCheck = $event ? '1' : '0'"> |
35 | 35 | {{ t('user_ldap', 'Turn off SSL certificate validation.') }} |
36 | 36 | </NcCheckboxRadioSwitch> |
37 | 37 |
|
|
40 | 40 | :label="t('user_ldap', 'Cache Time-To-Live')" |
41 | 41 | :value="ldapConfigProxy.ldapCacheTTL" |
42 | 42 | :helper-text="t('user_ldap', 'in seconds. A change empties the cache.')" |
43 | | - @change.native="(event) => ldapConfigProxy.ldapCacheTTL = event.target.value" /> |
| 43 | + @change="(event) => ldapConfigProxy.ldapCacheTTL = event.target.value" /> |
44 | 44 | </details> |
45 | 45 |
|
46 | 46 | <details name="ldap-wizard__advanced__section" class="ldap-wizard__advanced__section"> |
|
51 | 51 | :value="ldapConfigProxy.ldapUserDisplayName" |
52 | 52 | :label="t('user_ldap', 'User Display Name Field')" |
53 | 53 | :helper-text="t('user_ldap', 'The LDAP attribute to use to generate the user\'s display name.')" |
54 | | - @change.native="(event) => ldapConfigProxy.ldapUserDisplayName = event.target.value" /> |
| 54 | + @change="(event) => ldapConfigProxy.ldapUserDisplayName = event.target.value" /> |
55 | 55 |
|
56 | 56 | <NcTextField |
57 | 57 | autocomplete="off" |
58 | 58 | :value="ldapConfigProxy.ldapUserDisplayName2" |
59 | 59 | :label="t('user_ldap', '2nd User Display Name Field')" |
60 | 60 | :helper-text= "t('user_ldap', 'Optional. An LDAP attribute to be added to the display name in brackets. Results in e.g. »John Doe ([email protected])«.')" |
61 | | - @change.native="(event) => ldapConfigProxy.ldapUserDisplayName2 = event.target.value" /> |
| 61 | + @change="(event) => ldapConfigProxy.ldapUserDisplayName2 = event.target.value" /> |
62 | 62 |
|
63 | 63 | <NcTextArea |
64 | | - :value="ldapConfigProxy.ldapBaseUsers" |
| 64 | + :model-value="ldapConfigProxy.ldapBaseUsers" |
65 | 65 | :placeholder="t('user_ldap', 'One User Base DN per line')" |
66 | 66 | :label="t('user_ldap', 'Base User Tree')" |
67 | | - @change.native="(event) => ldapConfigProxy.ldapBaseUsers = event.target.value" /> |
| 67 | + @change="(event) => ldapConfigProxy.ldapBaseUsers = event.target.value" /> |
68 | 68 |
|
69 | 69 | <NcTextArea |
70 | | - :value="ldapConfigProxy.ldapAttributesForUserSearch" |
| 70 | + :model-value="ldapConfigProxy.ldapAttributesForUserSearch" |
71 | 71 | :placeholder="t('user_ldap', 'Optional; one attribute per line')" |
72 | 72 | :label="t('user_ldap', 'User Search Attributes')" |
73 | | - @change.native="(event) => ldapConfigProxy.ldapAttributesForUserSearch = event.target.value" /> |
| 73 | + @change="(event) => ldapConfigProxy.ldapAttributesForUserSearch = event.target.value" /> |
74 | 74 |
|
75 | 75 | <NcCheckboxRadioSwitch |
76 | | - :checked="ldapConfigProxy.markRemnantsAsDisabled === '1'" |
| 76 | + :model-value="ldapConfigProxy.markRemnantsAsDisabled === '1'" |
77 | 77 | :aria-label="t('user_ldap', 'When switched on, users imported from LDAP which are then missing will be disabled')" |
78 | | - @update:checked="ldapConfigProxy.markRemnantsAsDisabled = $event ? '1' : '0'"> |
| 78 | + @update:model-value="ldapConfigProxy.markRemnantsAsDisabled = $event ? '1' : '0'"> |
79 | 79 | {{ t('user_ldap', 'Disable users missing from LDAP') }} |
80 | 80 | </NcCheckboxRadioSwitch> |
81 | 81 |
|
|
84 | 84 | :value="ldapConfigProxy.ldapGroupDisplayName" |
85 | 85 | :label="t('user_ldap', 'Group Display Name Field')" |
86 | 86 | :title="t('user_ldap', 'The LDAP attribute to use to generate the groups\'s display name.')" |
87 | | - @change.native="(event) => ldapConfigProxy.ldapGroupDisplayName = event.target.value" /> |
| 87 | + @change="(event) => ldapConfigProxy.ldapGroupDisplayName = event.target.value" /> |
88 | 88 |
|
89 | 89 | <NcTextArea |
90 | | - :value="ldapConfigProxy.ldapBaseGroups" |
| 90 | + :model-value="ldapConfigProxy.ldapBaseGroups" |
91 | 91 | :placeholder="t('user_ldap', 'One Group Base DN per line')" |
92 | 92 | :label="t('user_ldap', 'Base Group Tree')" |
93 | | - @change.native="(event) => ldapConfigProxy.ldapBaseGroups = event.target.value" /> |
| 93 | + @change="(event) => ldapConfigProxy.ldapBaseGroups = event.target.value" /> |
94 | 94 |
|
95 | 95 | <NcTextArea |
96 | | - :value="ldapConfigProxy.ldapAttributesForGroupSearch" |
| 96 | + :model-value="ldapConfigProxy.ldapAttributesForGroupSearch" |
97 | 97 | :placeholder="t('user_ldap', 'Optional; one attribute per line')" |
98 | 98 | :label="t('user_ldap', 'Group Search Attributes')" |
99 | | - @change.native="(event) => ldapConfigProxy.ldapAttributesForGroupSearch = event.target.value" /> |
| 99 | + @change="(event) => ldapConfigProxy.ldapAttributesForGroupSearch = event.target.value" /> |
100 | 100 |
|
101 | 101 | <NcSelect |
102 | 102 | v-model="ldapConfigProxy.ldapGroupMemberAssocAttr" |
|
115 | 115 | :label="t('user_ldap', 'Dynamic Group Member URL')" |
116 | 116 | :value="ldapConfigProxy.ldapDynamicGroupMemberURL" |
117 | 117 | :helper-text="t('user_ldap', 'The LDAP attribute that on group objects contains an LDAP search URL that determines what objects belong to the group. (An empty setting disables dynamic group membership functionality.)')" |
118 | | - @change.native="(event) => ldapConfigProxy.ldapDynamicGroupMemberURL = event.target.value" /> |
| 118 | + @change="(event) => ldapConfigProxy.ldapDynamicGroupMemberURL = event.target.value" /> |
119 | 119 |
|
120 | 120 | <NcCheckboxRadioSwitch |
121 | | - :checked="ldapConfigProxy.ldapNestedGroups === '1'" |
| 121 | + :model-value="ldapConfigProxy.ldapNestedGroups === '1'" |
122 | 122 | :aria-label="t('user_ldap', 'When switched on, groups that contain groups are supported. (Only works if the group member attribute contains DNs.)')" |
123 | | - @update:checked="ldapConfigProxy.ldapNestedGroups = $event ? '1' : '0'"> |
| 123 | + @update:model-value="ldapConfigProxy.ldapNestedGroups = $event ? '1' : '0'"> |
124 | 124 | {{ t('user_ldap', 'Nested Groups') }} |
125 | 125 | </NcCheckboxRadioSwitch> |
126 | 126 |
|
|
129 | 129 | :label="t('user_ldap', 'Paging chunksize')" |
130 | 130 | :value="ldapConfigProxy.ldapPagingSize" |
131 | 131 | :helper-text="t('user_ldap', 'Chunksize used for paged LDAP searches that may return bulky results like user or group enumeration. (Setting it 0 disables paged LDAP searches in those situations.)')" |
132 | | - @change.native="(event) => ldapConfigProxy.ldapPagingSize = event.target.value" /> |
| 132 | + @change="(event) => ldapConfigProxy.ldapPagingSize = event.target.value" /> |
133 | 133 |
|
134 | 134 | <NcCheckboxRadioSwitch |
135 | | - :checked="ldapConfigProxy.turnOnPasswordChange === '1'" |
| 135 | + :model-value="ldapConfigProxy.turnOnPasswordChange === '1'" |
136 | 136 | :aria-label="t('user_ldap', 'Allow LDAP users to change their password and allow Super Administrators and Group Administrators to change the password of their LDAP users. Only works when access control policies are configured accordingly on the LDAP server. As passwords are sent in plaintext to the LDAP server, transport encryption must be used and password hashing should be configured on the LDAP server.')" |
137 | | - @update:checked="ldapConfigProxy.turnOnPasswordChange = $event ? '1' : '0'"> |
| 137 | + @update:model-value="ldapConfigProxy.turnOnPasswordChange = $event ? '1' : '0'"> |
138 | 138 | {{ t('user_ldap', 'Enable LDAP password changes per user') }} |
139 | 139 | </NcCheckboxRadioSwitch> |
140 | 140 | <span class="tablecell"> |
|
146 | 146 | :label="t('user_ldap', 'Default password policy DN')" |
147 | 147 | :value="ldapConfigProxy.ldapDefaultPPolicyDN" |
148 | 148 | :helper-text="t('user_ldap', 'The DN of a default password policy that will be used for password expiry handling. Works only when LDAP password changes per user are enabled and is only supported by OpenLDAP. Leave empty to disable password expiry handling.')" |
149 | | - @change.native="(event) => ldapConfigProxy.ldapDefaultPPolicyDN = event.target.value" /> |
| 149 | + @change="(event) => ldapConfigProxy.ldapDefaultPPolicyDN = event.target.value" /> |
150 | 150 | </details> |
151 | 151 |
|
152 | 152 | <details name="ldap-wizard__advanced__section" class="ldap-wizard__advanced__section"> |
|
157 | 157 | :value="ldapConfigProxy.ldapQuotaAttribute" |
158 | 158 | :label="t('user_ldap', 'Quota Field')" |
159 | 159 | :helper-text="t('user_ldap', 'Leave empty for user\'s default quota. Otherwise, specify an LDAP/AD attribute.')" |
160 | | - @change.native="(event) => ldapConfigProxy.ldapQuotaAttribute = event.target.value" /> |
| 160 | + @change="(event) => ldapConfigProxy.ldapQuotaAttribute = event.target.value" /> |
161 | 161 |
|
162 | 162 | <NcTextField |
163 | 163 | autocomplete="off" |
164 | 164 | :value="ldapConfigProxy.ldapQuotaDefault" |
165 | 165 | :label="t('user_ldap', 'Quota Default')" |
166 | 166 | :helper-text="t('user_ldap', 'Override default quota for LDAP users who do not have a quota set in the Quota Field.')" |
167 | | - @change.native="(event) => ldapConfigProxy.ldapQuotaDefault = event.target.value" /> |
| 167 | + @change="(event) => ldapConfigProxy.ldapQuotaDefault = event.target.value" /> |
168 | 168 |
|
169 | 169 | <NcTextField |
170 | 170 | autocomplete="off" |
171 | 171 | :value="ldapConfigProxy.ldapEmailAttribute" |
172 | 172 | :label="t('user_ldap', 'Email Field')" |
173 | 173 | :helper-text="t('user_ldap', 'Set the user\'s email from their LDAP attribute. Leave it empty for default behaviour.')" |
174 | | - @change.native="(event) => ldapConfigProxy.ldapEmailAttribute = event.target.value" /> |
| 174 | + @change="(event) => ldapConfigProxy.ldapEmailAttribute = event.target.value" /> |
175 | 175 |
|
176 | 176 | <NcTextField |
177 | 177 | autocomplete="off" |
178 | 178 | :label="t('user_ldap', 'User Home Folder Naming Rule')" |
179 | 179 | :value="ldapConfigProxy.homeFolderNamingRule" |
180 | 180 | :helper-text="t('user_ldap', 'Leave empty for username (default). Otherwise, specify an LDAP/AD attribute.')" |
181 | | - @change.native="(event) => ldapConfigProxy.homeFolderNamingRule = event.target.value" /> |
| 181 | + @change="(event) => ldapConfigProxy.homeFolderNamingRule = event.target.value" /> |
182 | 182 |
|
183 | 183 | <NcTextField |
184 | 184 | autocomplete="off" |
185 | 185 | :label="t('user_ldap', '`$home` Placeholder Field')" |
186 | 186 | :value="ldapConfigProxy.ldapExtStorageHomeAttribute" |
187 | 187 | :helper-text="t('user_ldap', '$home in an external storage configuration will be replaced with the value of the specified attribute')" |
188 | | - @change.native="(event) => ldapConfigProxy.ldapExtStorageHomeAttribute = event.target.value" /> |
| 188 | + @change="(event) => ldapConfigProxy.ldapExtStorageHomeAttribute = event.target.value" /> |
189 | 189 | </details> |
190 | 190 |
|
191 | 191 | <details name="ldap-wizard__advanced__section" class="ldap-wizard__advanced__section"> |
|
196 | 196 | :label="t('user_ldap', 'Phone Field')" |
197 | 197 | :value="ldapConfigProxy.ldapAttributePhone" |
198 | 198 | :helper-text="t('user_ldap', 'User profile Phone will be set from the specified attribute')" |
199 | | - @change.native="(event) => ldapConfigProxy.ldapAttributePhone = event.target.value" /> |
| 199 | + @change="(event) => ldapConfigProxy.ldapAttributePhone = event.target.value" /> |
200 | 200 |
|
201 | 201 | <NcTextField |
202 | 202 | autocomplete="off" |
203 | 203 | :label="t('user_ldap', 'Website Field')" |
204 | 204 | :value="ldapConfigProxy.ldapAttributeWebsite" |
205 | 205 | :helper-text="t('user_ldap', 'User profile Website will be set from the specified attribute')" |
206 | | - @change.native="(event) => ldapConfigProxy.ldapAttributeWebsite = event.target.value" /> |
| 206 | + @change="(event) => ldapConfigProxy.ldapAttributeWebsite = event.target.value" /> |
207 | 207 |
|
208 | 208 | <NcTextField |
209 | 209 | autocomplete="off" |
210 | 210 | :label="t('user_ldap', 'Address Field')" |
211 | 211 | :value="ldapConfigProxy.ldapAttributeAddress" |
212 | 212 | :helper-text="t('user_ldap', 'User profile Address will be set from the specified attribute')" |
213 | | - @change.native="(event) => ldapConfigProxy.ldapAttributeAddress = event.target.value" /> |
| 213 | + @change="(event) => ldapConfigProxy.ldapAttributeAddress = event.target.value" /> |
214 | 214 |
|
215 | 215 | <NcTextField |
216 | 216 | autocomplete="off" |
217 | 217 | :label="t('user_ldap', 'Twitter Field')" |
218 | 218 | :value="ldapConfigProxy.ldapAttributeTwitter" |
219 | 219 | :helper-text="t('user_ldap', 'User profile Twitter will be set from the specified attribute')" |
220 | | - @change.native="(event) => ldapConfigProxy.ldapAttributeTwitter = event.target.value" /> |
| 220 | + @change="(event) => ldapConfigProxy.ldapAttributeTwitter = event.target.value" /> |
221 | 221 |
|
222 | 222 | <NcTextField |
223 | 223 | autocomplete="off" |
224 | 224 | :label="t('user_ldap', 'Fediverse Field')" |
225 | 225 | :value="ldapConfigProxy.ldapAttributeFediverse" |
226 | 226 | :helper-text="t('user_ldap', 'User profile Fediverse will be set from the specified attribute')" |
227 | | - @change.native="(event) => ldapConfigProxy.ldapAttributeFediverse = event.target.value" /> |
| 227 | + @change="(event) => ldapConfigProxy.ldapAttributeFediverse = event.target.value" /> |
228 | 228 |
|
229 | 229 | <NcTextField |
230 | 230 | autocomplete="off" |
231 | 231 | :label="t('user_ldap', 'Organisation Field')" |
232 | 232 | :value="ldapConfigProxy.ldapAttributeOrganisation" |
233 | 233 | :helper-text="t('user_ldap', 'User profile Organisation will be set from the specified attribute')" |
234 | | - @change.native="(event) => ldapConfigProxy.ldapAttributeOrganisation = event.target.value" /> |
| 234 | + @change="(event) => ldapConfigProxy.ldapAttributeOrganisation = event.target.value" /> |
235 | 235 |
|
236 | 236 | <NcTextField |
237 | 237 | autocomplete="off" |
238 | 238 | :label="t('user_ldap', 'Role Field')" |
239 | 239 | :value="ldapConfigProxy.ldapAttributeRole" |
240 | 240 | :helper-text="t('user_ldap', 'User profile Role will be set from the specified attribute')" |
241 | | - @change.native="(event) => ldapConfigProxy.ldapAttributeRole = event.target.value" /> |
| 241 | + @change="(event) => ldapConfigProxy.ldapAttributeRole = event.target.value" /> |
242 | 242 |
|
243 | 243 | <NcTextField |
244 | 244 | autocomplete="off" |
245 | 245 | :label="t('user_ldap', 'Headline Field')" |
246 | 246 | :value="ldapConfigProxy.ldapAttributeHeadline" |
247 | 247 | :helper-text="t('user_ldap', 'User profile Headline will be set from the specified attribute')" |
248 | | - @change.native="(event) => ldapConfigProxy.ldapAttributeHeadline = event.target.value" /> |
| 248 | + @change="(event) => ldapConfigProxy.ldapAttributeHeadline = event.target.value" /> |
249 | 249 |
|
250 | 250 | <NcTextField |
251 | 251 | autocomplete="off" |
252 | 252 | :label="t('user_ldap', 'Biography Field')" |
253 | 253 | :value="ldapConfigProxy.ldapAttributeBiography" |
254 | 254 | :helper-text="t('user_ldap', 'User profile Biography will be set from the specified attribute')" |
255 | | - @change.native="(event) => ldapConfigProxy.ldapAttributeBiography = event.target.value" /> |
| 255 | + @change="(event) => ldapConfigProxy.ldapAttributeBiography = event.target.value" /> |
256 | 256 |
|
257 | 257 | <NcTextField |
258 | 258 | autocomplete="off" |
259 | 259 | :label="t('user_ldap', 'Birthdate Field')" |
260 | 260 | :value="ldapConfigProxy.ldapAttributeBirthDate" |
261 | 261 | :helper-text="t('user_ldap', 'User profile Date of birth will be set from the specified attribute')" |
262 | | - @change.native="(event) => ldapConfigProxy.ldapAttributeBirthDate = event.target.value" /> |
| 262 | + @change="(event) => ldapConfigProxy.ldapAttributeBirthDate = event.target.value" /> |
263 | 263 | </details> |
264 | 264 | </fieldset> |
265 | 265 | </template> |
|
0 commit comments