Исходный код вики LDAP Admin sheet

Версия 1.1 от superadmin на 09.07.2020, 17:19

Скрыть последних авторов
superadmin 1.1 1 {{velocity output="false"}}
2 $xwiki.jsx.use('XWiki.AdminLdapSheet')
3 $xwiki.ssx.use('XWiki.AdminLdapSheet')
4 #set ($params = {
5 'ldap': ['ldap', 'ldap_server', 'ldap_port', 'ldap_bind_DN','ldap_bind_pass', 'ldap_user_group', 'ldap_exclude_group',
6 'ldap_base_DN', 'ldap_UID_attr', 'ldap_trylocal','ldap_update_user', 'ldap_update_photo', 'ldap_photo_attachment_name',
7 'ldap_photo_attribute', 'ldap_fields_mapping','ldap_group_mapping', 'ldap_groupcache_expiration', 'ldap_mode_group_sync']
8 })
9
10 Note : 'ldap_validate_password' has been voluntary left out, has it's xwiki.cfg documentation precises that "[it is] covering very rare and bad use cases."
11 {{/velocity}}
12
13 {{velocity}}
14 #if(!$services.ldap)
15 {{error}}
16 $services.localization.render('ldap.missingLdapService')
17 {{/error}}
18 #elseif(!$services.ldap.isXWikiLDAPAuthenticator())
19 {{warning}}
20 $services.localization.render('ldap.ldapAuthenticationIsNotEnabledWarning')
21 {{/warning}}
22 #end
23 {{/velocity}}
24
25 = {{velocity}}$services.localization.render('ldap.adminHeadingConfiguration'){{/velocity}} =
26
27 {{include reference="XWiki.AdminFieldsDisplaySheet" /}}
28
29 = {{velocity}}$services.localization.render('ldap.adminHeadingMiscellaneous'){{/velocity}} =
30
31 {{velocity}}
32 #if ($request.resetgroupcache_action)
33 #set($void = $services.ldap.resetGroupCache())
34 {{success}}$services.localization.render('ldap.resetGroupCacheSuccess'){{/success}}
35 #end
36 {{/velocity}}
37
38 {{velocity}}
39 {{html wiki="false"}}
40 <form method="post" action="${escapetool.xml($xwiki.requestURL)}#H-1">
41 <fieldset>
42 <span class="buttonwrapper"><input name="resetgroupcache_action" value="$services.localization.render('ldap.resetGroupCacheButton')" class="button" type="submit"></span>
43 </fieldset>
44 </form>
45 {{/html}}
46 {{/velocity}}