Skip to content

Commit

Permalink
Merge branch 'master' into v7
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Mar 8, 2017
2 parents 3daac9b + 9d7f61d commit b0b8a40
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 6 deletions.
31 changes: 26 additions & 5 deletions administrator-manual/en/migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Migration from NethService/SME Server
Migration is the process to convert a SME Server/NethService
machine (:dfn:`source`) into a |product| (:dfn:`destination`).

.. warning::

Before running the migration procedure, read carefully all the sections of this
chapter.

#. In the source host, create a full backup archive and move it
to the destination host.

Expand All @@ -33,12 +38,28 @@ machine (:dfn:`source`) into a |product| (:dfn:`destination`).

.. _migration_account:

Account provider
================
Accounts provider
=================

You should configure an :ref:`accounts provider <account-providers>` before
starting the migration procedure.

* If the source system was joined to an Active Directory domain (Samba server
role was ADS), configure a *remote Active Directory* accounts provider.

* If the source system was a NT Primary Domain Controller (Samba server role was
ADS) install a *local Active Directory* accounts provider.

* If access to Shared Folders on the destination system requires user
authentication, install a *local Active Directory* accounts provider.

* In any other case, install a *local LDAP* accounts provider.

.. warning::

You should install an account provider before starting the migration procedure.
If you choose to have a Samba DC, remember to fully configure the DC before
executing the ``migration-import`` event.
If you choose a local Active Directory accounts provider, remember to
fully configure and start the DC before executing the ``migration-import`` event.
See :ref:`account-providers`.


.. index::
Expand Down
1 change: 1 addition & 0 deletions developer-manual/en/modules
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ nethserver-getmail
nethserver-nextcloud
nethserver-squid
nethserver-suricata
nethserver-webtop5
2 changes: 1 addition & 1 deletion developer-manual/en/nethserver-firewall-base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ Valid actions for traffic shaping rules are:
Assumptions and limitations

1. All nDPI traffic is marked in forward chain.
When a nDPI protocol is found, the whole connection is marke.
When a nDPI protocol is found, the whole connection is marked.

2. Priority rules are in post chain and can use nDPI markers.
If a priority rule uses a role (interface) as source, the rule can't be added
Expand Down
93 changes: 93 additions & 0 deletions developer-manual/en/nethserver-webtop5.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
==================
nethserver-webtop5
==================

WebTop 5 is a full-featured groupware written in Java.

It's composed by three parts:

* Java web application running on Tomcat 7
* PHP implementation of Active Sync protocol
* PostgreSQL database

Access to web application is forced in SSL mode.

WebTop 5 has been split in 4 different RPMs:

- webtop5-core: Tomcat webapp, derived from a WAR. It contains all jars developed by Sonicle. This package will be updated at each
WebTop release
- webtop5-libs: derived from a WAR, it contains all third-party jars. This package will be seldom updated
- webtop5-zpush: ActiveSync implementation for WebTop, it contains PHP code from z-push project (http://z-push.org/)
- nethserver-webtop5: NethServer auto-configuration for WebTop

Database
========

Configuration is saved in ``webtop`` key inside ``configuration`` database.

Available properties:

* ``ActiveSync``: if set to ``enabled``, it enables /Microsoft-Server-ActiveSync url. Default is ``enabled``
* ``ActiveSyncLog``: log level of z-push implementation. As default z-push will log only relevant errors.
* ``DefaultLocale``: default locale for WebTop users. To list available locales execute: ``/etc/e-smith/events/actions/nethserver-webtop5-locale-tz``
* ``DefaultTimezone``: default timezone for WebTop users. To list available timezones: ``JAVA_HOME=/usr/share/webtop/ java ListTimeZones``
* ``MinMemory`` and ``MaxMemory``: minimun and maximum memory of Tomcat instance. Values are expressed in MB.
* ``PublicUrl``: public URL used to publish resources for the cloud. If not set, default is ``http://<FQDN>/webtop``

Example: ::

webtop=configuration
ActiveSync=enabled
ActiveSyncLog=LOGLEVEL_ERROR
DefaultLocale=en_US
DefaultTimezone=Etc/UTC
MaxMemory=1024
MinMemory=512
PublicUrl=


Configuration can be applied using the ``nethserver-webtop5-update`` event.

Troubleshooting
===============

Please note that nethserver-webtop5 is composed by many parts.
Each part has its own logs and troubleshooting best practices.

Tomcat
------

Tomcat instance is managed by systemd unit called ``tomcat@webtop``.
All logs are saved inside ``/var/lib/tomcats/webtop/logs/`` directory.

Tomcat output can also be inspected using the following command: ::

journalctl -u tomcat@webtop

Active Sync
-----------

Active Sync is implemented using a PHP application called z-push.
All logs are inside ``/var/log/z-push/`` directory.

To inspect z-push status use: ::

php /usr/share/webtop/z-push/z-push-admin.php

It is also possibile to enable z-push debug using these commands: ::

config setprop webtop ActiveSyncLog LOGLEVEL_DEBUG
signal-event nethserver-webtop5-update

Instead of ``LOGLEVEL_DEBUG`` you can use any constant supported by z-push implementation.
See ``/usr/share/webtop/z-push/config.php``.


Tomcat instance
===============

WebTop uses its own Tomcat instance running on port ``58080``.

The instance is launched with some special Java options,
see content of ``/etc/sysconfig/tomcat@webtop``.

0 comments on commit b0b8a40

Please sign in to comment.