Package: davical
Version: 0.9.7.6-0
Severity: normal
Tags: patch

Hi Andrew,

the authentication with PAM fails:

SQUID_PAM_check in drivers_squid_pam.php calls UpdateUserFromExternal
from auth-functions.php, which doesn't find sql_from_object() --
because
require_once("DataUpdate.php");  
is called after "return(true)", if my PHP interpretation is correct.
The following change fixes the problem for me:

--- /usr/share/davical/inc/auth-functions.php.orig      2009-12-15 
21:27:05.000000000 +0100
+++ /usr/share/davical/inc/auth-functions.php   2009-12-15 22:34:39.000000000 
+0100
@@ -25,11 +25,12 @@
 * @license   http://gnu.org/copyleft/gpl.html GNU GPL v2
 */
 
-if ( function_exists('CreateHomeCalendar') ) return(true);
-
 require_once("AWLUtilities.php");
 require_once("DataUpdate.php");
 
+if ( function_exists('CreateHomeCalendar') ) return(true);
+
+
 /**
 * Create a default home calendar for the user.
 * @param string $username The username of the user we are creating 
relationships for.



Cheers,
gregor


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30.6.20090909
Locale: LANG=C, lc_ctype=de...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages davical depends on:
ii  debconf                  1.5.28          Debian configuration management sy
ii  libawl-php               0.38-0          Andrew's Web Libraries - PHP Utili
ii  libdbd-pg-perl           2.15.1-1        Perl DBI driver for the PostgreSQL
ii  libyaml-perl             0.70-1          YAML Ain't Markup Language
ii  php5-pgsql               5.2.11.dfsg.1-1 PostgreSQL module for php5
ii  postgresql-client-8.3    8.3.8-1         front-end programs for PostgreSQL 

davical recommends no packages.

davical suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to