<span><span><span></span></span></span><span><span>Hi ,all :<br><br></span></span><span><span><span> as the subject says: I'm stuck with<span> ldap</span>-auth.
</span></span></span><br><br><span><span><span> Distribution: CentOS 5.3 i386</span><br><span><span>Davical</span>/awl: Latest *.rpm
</span></span></span><span><span><span></span><span></span><span></span>(<span style="color: rgb(255, 0, 0);">davical_0.9.7.6-noach.rpm</span>)<br><br><span>So far, I've got <span>davical</span>
up and running using the Postgresql database .</span><br><br><span>And I want to use the LDAP to auth the accounts and their password
</span><span></span><br><br><span>My *.conf:
</span><br><br><span>,----[ /etc/<span>davica</span><b>l</b>/myserver.conf
]
</span><br><span>| <?php
</span><br><span></span><span></span><br><span>|
</span><br><span>| /********************************/
</span><br><span>| /*********** <span>LDAP</span> <span>hook</span> **********/
</span><br><span>| /********************************/
</span><br><span>|
</span><br><span>| $c->authenticate_hook['call'] =<span> 'LDAP_check</span>';
</span><br><span>| $c->authenticate_hook['config'] = array(
</span><br><span>| 'host' => <a href="http://test.com.cn" target="_blank">test.com.cn</a>,
</span><br><span>| 'port' => '389',
</span><span></span><span></span><br><span>| 'protocolVersion' => '3', //Version of <span>LDAP</span> protocol to use
</span><br><span>| 'baseDNUsers'=> 'ou=People,dc=test,dc=com,dc=cn',
</span><br><span>| 'filterUsers' =>
'objectClass=inetOrgPerson',
</span><br><span>| 'mapping_field' => array("username" =>
"uid",
</span><br><span>| "updated" =>
"modifyTimestamp",
</span><br><span>| "fullname" => "cn" ,
</span><br><span>| "email" =>"mail"
</span><br><span>| ),
</span><br><span>| 'format_updated'=> array('Y' => array(0,4),
</span><br><span>| 'm' => array(4,2),
</span><br><span>| 'd'=> array(6,2),
</span><br><span>| 'H' => array(8,2),
</span><br><span>| 'M'=>array(10,2),
</span><br><span>| 'S' => array(12,2)),
</span><br><span>| 'startTLS' => 'yes',
</span><br><span>| );
</span><br><span>| include('drivers_ldap.php');
</span><br><span>`----
</span><br><br><span>According to <br></span><a href="http://wiki.davical.org/w/Configuration#Using_LDAP" rel="nofollow" link="external" target="_blank"><span>http://wiki.<b>davical</b>.org/w/Configuration#Using_LDAP</span></a><span><br>
<a href="http://wiki.davical.org/w/Configuration/LDAP">http://wiki.davical.org/w/Configuration/LDAP</a><br><br> I
think </span><span>this settings should be working?
</span><br><br><span>Login with a user in the ldap-Tree
shows in /var/log/messages
</span><br><span>(shortened) errors::
</span><br><br><span>,----[ /var/log/httpd/error_log ]
</span><br><span>: PHP Notice: Undefined index: i_use _mode_kerberos in /usr/share/davical/inc/driver_ldap.php in line 180</span><br><span> PHP Notice: Use
of undefined constant __LINE - assumed '__LINE' in /usr/share/davical/inc/auth-functions.php on line 103 <br>PHP Notice: Call to undefined function sql_from_object() in /usr/share/davical/auth-functions.php in line 127
</span><br><span>`----
</span><br><span></span><span></span><br><br><span>I'm sure, I'm missing something obvious.
</span><br><br><span>Any hints?</span><br><br><span>Thanks
</span></span></span>