Configuration/hooks/Authentication/IMAP

From Davical
< Configuration‎ | hooks‎ | Authentication
Revision as of 01:58, 24 February 2012 by Karora (talk) (New page: Here should sit documentation for the IMAP authentication driver coded in 'inc/drivers_imap_pam.php'. == IMAP Settings == The settings for the LDAP connection go in the config file <tt>/...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Here should sit documentation for the IMAP authentication driver coded in 'inc/drivers_imap_pam.php'.

IMAP Settings

The settings for the LDAP connection go in the config file /etc/davical/<servername>-conf.php (this file might be in /etc/rscds/ if you upgraded from an older installation).

  $c->authenticate_hook['call'] = 'IMAP_PAM_check';
  $c->authenticate_hook['config'] = array(
    'host'          => '<IMAP SERVER>', //host name of your IMAP Server
    'port'          => '<PORT>', //port
 
    ... other stuff here ...

  );
  include('drivers_imap_pam.php');

Details

Working Example

If ...

Then the following config allows authentication from DAViCal via IMAP:

<?php
 $c->pg_connect[] = 'dbname=davical port=5432 user=general';
 $c->authenticate_hook['call'] = 'IMAP_PAM_check';
 $c->authenticate_hook['config'] = array(
     'host' => 'imap.example.com',
     'port' => '143',

Missing stuff in here that someone needs to fill in...

   );
 include('drivers_imap_pam.php');
?>