Exercises

Set up a Nextcloud server based on Apache and Mysql following Complete NC Installation on Debian 9 Stretch and manual update. Mind the following hints:

  1. Use https://sdiXY.mi.hdm-stuttgart.de/nextcloud rather than https://sdiXY.mi.hdm-stuttgart.de as base URL to your server reusing your existing Apache server installation. This should be mapped to a Nextcloud root directory /var/www/nextcloudoutside e.g. /var/www/html/nextcloud denying attackers getting access to sensitive configuration data.

  2. If you've already configured a Mysql server use that one instead of the installation manual's MariaDB server.

  3. Depending on the /etc/passwd home directory settings of user www-data you may have to use sudo -u www-data php /var/www/html/nextcloud/occ ... rather than simply sudo -u www-data ./occ ....

After this step log in as user ncadmin and follow User authentication with LDAP configuring LDAP access. Use ldap1.hdm-stuttgart.de as LDAP provider.

Tip

The default LDAP attribute displayName has to be changed to cn.

Test your installation by logging in using your own HdM account credentials.