Mailing List Archive

DAViCal LDAP problem
sync, [really?]

sync schrieb am 21.06.2010 10:58 Uhr:

> Distribution: CentOS 5.3 i386
> Davical/awl: Latest *.rpm (davical_0.9.7.6-noach.rpm)
I think, you really should try the latest version: 0.9.9.

> ,----[ /etc/davica*l*/myserver.conf ]
> | <?php
> [...]
> | include('drivers_ldap.php');
> `----
The PHP tag is closed, I hope!?


Marc
DAViCal LDAP problem [ In reply to ]
Hi ,all :

as the subject says: I'm stuck with ldap-auth.

Distribution: CentOS 5.3 i386
Davical/awl: Latest *.rpm (davical_0.9.7.6-noach.rpm)

So far, I've got davical up and running using the Postgresql database .

And I want to use the LDAP to auth the accounts and their password

My *.conf:

,----[ /etc/davica*l*/myserver.conf ]
| <?php

|
| /********************************/
| /*********** LDAP hook **********/
| /********************************/
|
| $c->authenticate_hook['call'] = 'LDAP_check';
| $c->authenticate_hook['config'] = array(
| 'host' => test.com.cn,
| 'port' => '389',
| 'protocolVersion' => '3', //Version of LDAP protocol to use
| 'baseDNUsers'=> 'ou=People,dc=test,dc=com,dc=cn',
| 'filterUsers' => 'objectClass=inetOrgPerson',
| 'mapping_field' => array("username" => "uid",
| "updated" => "modifyTimestamp",
| "fullname" => "cn" ,
| "email" =>"mail"
| ),
| '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)),
| 'startTLS' => 'yes',
| );
| include('drivers_ldap.php');
`----

According to
http://wiki.*davical*.org/w/Configuration#Using_LDAP<http://wiki.davical.org/w/Configuration#Using_LDAP>
http://wiki.davical.org/w/Configuration/LDAP

I think this settings should be working?

Login with a user in the ldap-Tree shows in /var/log/messages
(shortened) errors::

,----[ /var/log/httpd/error_log ]
: PHP Notice: Undefined index: i_use _mode_kerberos in
/usr/share/davical/inc/driver_ldap.php in line 180
PHP Notice: Use of undefined constant __LINE - assumed '__LINE' in
/usr/share/davical/inc/auth-functions.php on line 103
PHP Notice: Call to undefined function sql_from_object() in
/usr/share/davical/auth-functions.php in line 127
`----


I'm sure, I'm missing something obvious.

Any hints?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100621/59734e2c/attachment.htm>
-------------- next part --------------
DAViCal LDAP problem [ In reply to ]
On Mon, 2010-06-21 at 18:03 +0200, Marc Patermann wrote:
> sync, [really?]
>
> sync schrieb am 21.06.2010 10:58 Uhr:
>
> > Distribution: CentOS 5.3 i386
> > Davical/awl: Latest *.rpm (davical_0.9.7.6-noach.rpm)
> I think, you really should try the latest version: 0.9.9.
>
> > ,----[ /etc/davica*l*/myserver.conf ]
> > | <?php
> > [...]
> > | include('drivers_ldap.php');
> > `----
> The PHP tag is closed, I hope!?

Hi Marc,

Recommended practice is *not* to close the PHP tag - it's closed
automatically at the end of file. Not closing it, then, removes any
possibility of having extra rubbish at the end of the config file which
would cause DAViCal to start output early and completely screw up.


As for Jianma's problem - I wonder if the basDNUsers is correct with a
dc=test,dc=com,dc=cn => test.com.cn seems an unlikely domain name,
although they're all pretty arbitrary in LDAP, really.


Cheers,
Andrew.

--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
What happened last night can happen again.
------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100622/4252aa0a/attachment.pgp>
-------------- next part --------------