| 1 |
X-Wiki |
| 2 |
====== |
| 3 |
|
| 4 |
|image0| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
XWiki is a free wiki software platform written in Java with a design |
| 10 |
emphasis on extensibility. XWiki is an enterprise wiki. It includes |
| 11 |
WYSIWYG editing, OpenDocument based document import/export, semantic |
| 12 |
annotations and tagging, and advanced permissions management. |
| 13 |
|
| 14 |
Configuration |
| 15 |
------------- |
| 16 |
|
| 17 |
The integration with LL::NG is the following: |
| 18 |
|
| 19 |
- LemonLDAP::NG is configured as a reverse-proxy for xwiki |
| 20 |
- Xwiki is configured to accept HTTP Headers |
| 21 |
|
| 22 |
Xwiki virtual host |
| 23 |
~~~~~~~~~~~~~~~~~~ |
| 24 |
|
| 25 |
Apache |
| 26 |
^^^^^^ |
| 27 |
|
| 28 |
You will configure Xwiki virtual host like other |
| 29 |
:doc:`protected virtual host<../configvhost>`. |
| 30 |
|
| 31 |
This is an example, with https and speaking to xwiki via AJP. |
| 32 |
|
| 33 |
.. code-block:: apache |
| 34 |
|
| 35 |
<VirtualHost *:80> |
| 36 |
ServerName wiki.acme.fr |
| 37 |
Redirect / https://wiki.acme.fr/ |
| 38 |
</VirtualHost> |
| 39 |
|
| 40 |
<VirtualHost *:443> |
| 41 |
ServerName wiki.acme.fr |
| 42 |
|
| 43 |
SSLEngine On |
| 44 |
SSLCertificateFile /etc/pki/tls/certs/wildcard.acme.fr.crt |
| 45 |
SSLCertificateKeyFile /etc/pki/tls/certs/wildcard.acme.fr.key |
| 46 |
SSLCertificateChainFile /etc/pki/tls/certs/CLASS_2_ACME_CA.crt |
| 47 |
SSLOptions +StdEnvVars |
| 48 |
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 |
| 49 |
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS |
| 50 |
SSLHonorCipherOrder on |
| 51 |
SSLCompression off |
| 52 |
|
| 53 |
PerlHeaderParserHandler Lemonldap::NG::Handler::ApacheMP2 |
| 54 |
|
| 55 |
RewriteEngine on |
| 56 |
RewriteRule ^/$ /xwiki/ [R] |
| 57 |
|
| 58 |
ProxyPreserveHost On |
| 59 |
ProxyRequests On |
| 60 |
|
| 61 |
ProxyPass / ajp://192.168.11.130:8009/ |
| 62 |
ProxyPassReverse / ajp://192.168.11.130:8009/ |
| 63 |
|
| 64 |
ErrorLog /var/log/httpd/wiki_error.log |
| 65 |
CustomLog /var/log/httpd/wiki_access.log combined |
| 66 |
</VirtualHost> |
| 67 |
|
| 68 |
Xwiki virtual host in Manager |
| 69 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 70 |
|
| 71 |
Go to the Manager and :doc:`create a new virtual host<../configvhost>` |
| 72 |
for Xwiki. |
| 73 |
|
| 74 |
Configure the :ref:`access rules<rules>`. |
| 75 |
|
| 76 |
Configure the :ref:`headers<headers>`: |
| 77 |
|
| 78 |
- remote_user: ``$uid`` |
| 79 |
- remote_groups: ``join('|', keys(%{$hGroups}))`` |
| 80 |
- secret: ``choose_a_secret_key`` |
| 81 |
|
| 82 |
Xwiki Configuration |
| 83 |
~~~~~~~~~~~~~~~~~~~ |
| 84 |
|
| 85 |
First, you need to install the `Headers Trusted Authentication Adapter <https://extensions.xwiki.org/xwiki/bin/view/Extension/Trusted%20Headers%20Authentication%20Adapter>`__ |
| 86 |
|
| 87 |
Then, configure in `xwiki.cfg` |
| 88 |
|
| 89 |
:: |
| 90 |
|
| 91 |
|
| 92 |
xwiki.authentication.authclass=org.xwiki.contrib.authentication.XWikiTrustedAuthenticator |
| 93 |
xwiki.authentication.trusted.adapterHint=headers |
| 94 |
xwiki.authentication.trusted.auth_field=remote_user |
| 95 |
xwiki.authentication.trusted.group_field=remote_groups |
| 96 |
xwiki.authentication.trusted.logout_url=https://auth.example.com/?logout=1 |
| 97 |
xwiki.authentication.trusted.secret_field=secret |
| 98 |
xwiki.authentication.trusted.secret_value=choose_a_secret_key |
| 99 |
|
| 100 |
# Adjust the XWiki=>LemonLDAP group map to your liking |
| 101 |
xwiki.authentication.trusted.groupsMapping=XWiki.XWikiAdminGroup=xwiki-admins|XWiki.XWikiAdminGroup=timelords |
| 102 |
|
| 103 |
.. |image0| image:: /applications/xwiki.png |
| 104 |
:class: align-center |
| 105 |
|