FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 06-13-2010, 09:22 AM
sync
 
Default DAViCal LDAP-Authentication error

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/davical/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/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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 06-13-2010, 09:22 AM
sync
 
Default DAViCal LDAP-Authentication error

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
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 06:08 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org