Loading...
 

LDAP / Active directory


Net_Ldap2 Unknown Error

Greetings

I have really been trying to get Tiki 9.(1,2,3,4) and later Tiki 10.2 ( php 5.4 )work as here in site is instructed to use OpenLdap 2.4 as account and group backend.

and No success.

I keep getting : ErrorUnknown Net_LDAP2 Error
and after that : tiki/lib/auth/ldap.php errors in tiki logs with lines : 228 , 240 , 264.
These all are could not connect even binddn in log is displayed correctly.

I have systematicly gone all posible variations of user and group ldap configs in admin UI without no success.

Could some please instruct how you have managed to make things work or update docs or example confs.

p.s.
i have other systems/apps (even in same web server other php apps ar working) using same openldap server so it is not about ldap server conf or php / webserver installatoin as currently Tiki is only app that i cannot get to work with openldap server.

Hi

Debugging this and now it seems that for some reason

Net_LDAP2::isError function
http://pear.php.net/manual/pt_BR/package.networking.net-ldap2.errorhandling.php

return allways error 1000 “unknown..”

if i comment out this error checking in tiki/lib/auth/ldap.php starting line 239

if (Net_LDAP2::isError($this->ldaplink)) {
$this->add_log(‘ldap’, ‘Error: ’ . $this->ldaplink->getMessage() . ’ at line ’ . LINE . ’ in ’ . FILE);
// return Net_LDAP2 Error codes. No need to redefine this.
return($this->ldaplink->getCode());
}

All works as should.


Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.