User Tools

Site Tools


davical_debian8

Davical on Debian 8 with iRedmail

This configuration uses iRedmail as LDAP backend!

Prerequisites

  • Do a minimal Debian 8 installation with only SSH

Installation

Install the packages

apt-get install aptitude firewalld chrony open-vm-tools apache2 php5-ldap davical

Configuration

PostgreSQL

/etc/postgresql/9.4/main/pg_hba.conf
.
.
# TYPE  DATABASE        USER            ADDRESS                 METHOD
local   davical         davical_app                             trust
local   davical         davical_dba                             trust
.
.
/etc/postgresql/9.4/main/pg_ident.conf
# MAPNAME       SYSTEM-USERNAME         PG-USERNAME
root            root                    postgres
root@dav:~# su - postgres
postgres@dav:~$ /usr/share/davical/dba/create-database.sh

Supported locales updated.
Updated view: dav_principal.sql applied.
CalDAV functions updated.
RRULE functions updated.
Database permissions updated.
NOTE
====
*  You will need to edit the PostgreSQL pg_hba.conf to allow the
   'davical_dba' database user access to the 'davical' database.

*  You will need to edit the PostgreSQL pg_hba.conf to allow the
   'davical_app' database user access to the 'davical' database.

*  The password for the 'admin' user has been set to 'SECRET_HASH'

Thanks for trying DAViCal!  Check in /usr/share/doc/davical/examples/ for
some configuration examples.  For help, visit #davical on irc.oftc.net.

Apache

/etc/apache2/sites-available/davical.conf
<VirtualHost *:80>
  DocumentRoot /usr/share/davical/htdocs
  DirectoryIndex index.php index.html
  ServerName localhost

  Alias /images/ /usr/share/davical/htdocs/images/
  php_value include_path /usr/share/davical/inc:/usr/share/awl/inc
  php_value magic_quotes_gpc 0
  php_value register_globals 0
  php_value error_reporting "E_ALL & ~E_NOTICE"
  php_value default_charset "utf-8"
</VirtualHost>
rm /etc/apache2/sites-enabled/*
cd /etc/apache2/sites-enabled
ln -s ../sites-available/davical.conf
a2enmod authnz_ldap

Davical

/etc/davical/config.php
<?php
  $c->domain_name = "dav.helux.nl";
  $c->admin_email = 'info@helux.nl';
  $c->system_name = "Helux DAViCal Server";
  $c->enable_row_linking = true;
  $c->default_locale = "nl_NL";
  $c->public_freebusy_url = true;
  $c->post_add_member = false;

  $c->pg_connect[] = 'dbname=davical port=5432 user=davical_app';

  $c->authenticate_hook['call'] = 'LDAP_check';
  $c->authenticate_hook['config'] = array(
     'host'          => 'mail.helux.nl',
     'port'          => '389',
     'filterUsers'   => '(&(enabledService=davical))',
     'bindDN'        => 'cn=vmail,dc=mail,dc=helux,dc=nl',
     'passDN'        => 'SECRET',
     'baseDNUsers'   => 'o=domains,dc=mail,dc=helux,dc=nl',
     'protocolVersion' => 3,
     'scope' => 'subtree',
     'mapping_field' => array(
        'username' => 'mail',
        'modified'  => 'modifyTimestamp',
        'fullname' => 'cn',
        'email'    => 'mail'),
     'default_value' => array("date_format_type" => "E","locale" => "nl_NL"),
     'format_updated'=> array('Y' => array(0,4),'m' => array(4,2),'d'=> array(6,2),'H' => array(8,2),'M'=>array(10,2),'S' => array(12,2)),);
  $c->do_not_sync_from_ldap = array( 'admin' => true );
include('drivers_ldap.php');

Go to the URL of the webinterface. In this case I use a reverse proxy to terminate SSL. So in this case I use the URL http://<internal_hostname>.

The admin user is admin, with password mentioned in the NOTE when you installed the database.

davical_debian8.txt · Last modified: by herwarth