Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a TestLink webservice running on a server, and OpenLDAP running on other server. There are no firewall problems between them (I managed to configure Redmine, on the same server as TestLink, to use LDAP authentication).

But whenever I place the configuration for LDAP in TestLink, TestLink stops working. I have no clue on what is happening.

This is where I define LDAP's settings on

$tlCfg->authentication['method'] = 'LDAP';
$tlCfg->authentication['ldap_server'] = 'serverip';
$tlCfg->authentication['ldap_port'] = '389';
$tlCfg->authentication['ldap_version'] = '2';
$tlCfg->authentication['ldap_root_dn'] = 'dc=mycompany,dc=com,dc=br';
$tlCfg->ldap_organization'] = '';
$tlCfg->authentication['ldap_uid_field'] = 'uid';
$tlCfg->authentication['ldap_bind_dn'] = 'myuser'; //Not actual login name and password, for obvious reasons
$tlCfg->authentication['ldap_bind_passwd'] = 'mypassword';
$tlCfg->authentication['ldap_tls'] = false;
$tlCfg->user_self_signup = true;

I'm certain that OpenLDAP is 2.X. My TestLink version is 1.9.3

What could I be doing wrong?

share|improve this question
Post the access log from the TestLink and also from the directory server. Also, don't use LDAPv2, use LDAPv3 (ldap_version). – Terry Gardner Sep 23 '12 at 19:06
up vote 0 down vote accepted

I solved it. There were some dumb little errors.

First, as @Terry Gardner pointed out, I should use LDAPv3:

$tlCfg->authentication['ldap_version'] = '3';

Second, this line was wrong:

$tlCfg->ldap_organization'] = '';

The correct version would be:

$tlCfg->authentication['ldap_organization'] = '';

And finally, on /etc/php.ini I added

For doing this, I needed to install the php-ldap package from yum.

yum install php-ldap
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.