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@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos