Overview

Packages

  • awl
    • caldav-client-v2
    • RRule
  • davical
    • authentication
      • drivers
    • caldav
    • DAViCalSession
    • DAVTicket
    • external-bind
    • feed
    • HTTPAuthSession
    • iSchedule
    • iSchedule-POST
    • logging
    • metrics
    • Principal
    • propfind
    • PublicSession
    • Request
    • Resource
    • tzservice
  • None

Functions

  • auth_functions_deprecated
  • AuthExternalAWL
  • CreateDefaultRelationships
  • CreateHomeCalendar
  • CreateHomeCollections
  • getPrincipalByID
  • getUserByEMail
  • getUserByID
  • getUserByName
  • UpdateCollectionTimezones
  • UpdateUserFromExternal
  • Overview
  • Package
  • Function
  • Tree
  • Deprecated
  • Todo

Function AuthExternalAWL

Authenticate against a different PostgreSQL database which contains a usr table in the AWL format.

Use this as in the following example config snippet:

require_once('auth-functions.php'); $c->authenticate_hook = array( 'call' => 'AuthExternalAwl', 'config' => array( // A PgSQL database connection string for the database containing user records 'connection[]' => 'dbname=wrms host=otherhost port=5433 user=general', // Which columns should be fetched from the database 'columns' => "user_no, active, email_ok, joined, last_update AS updated, last_used, username, password, fullname, email", // a WHERE clause to limit the records returned. 'where' => "active AND org_code=7" ) );

Package: davical\authentication
Copyright: Catalyst IT Ltd, Morphoss Ltd
License: GNU GPL v2 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at auth-functions.php
Parameters summary
$username
$password
DAViCal API documentation generated by ApiGen