LDAP config

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
neto
TestLink user
Posts: 4
Joined: Thu Nov 01, 2007 10:25 am

LDAP config

Post by neto »

After you made the configuration to be the authentication via LDAP, the testlink recognizes what has been set, but when I go log, it shows the message: Connection method is configured as LDAP
But PHP LDAP extension is not loaded => You will not be able to login.
Please contact your TestLink administrator

And in my php.ini file, the line for the ldap already uncommented. Whenever I try to create a user, the testlink create this user, register it in the database, but not login with the user created.


What can be?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

try to add some echoes on TL code that makes the check to understand what is happening.

regards
neto
TestLink user
Posts: 4
Joined: Thu Nov 01, 2007 10:25 am

Post by neto »

$g_ldap_server = 'ldap://bsbserv001/';
$g_ldap_port = '389';
$g_ldap_root_dn = 'dc=bsb,dc=politec,dc=com,dc=br';
$g_ldap_organization = '(organizationname=*Politec)';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'ldapread@bsb.politec.com.br';
$g_ldap_bind_passwd = '1q2w3e4r5t6y';
$g_use_ldap_email = 'OFF';


This is part of the code which was amended
Marini
TestLink user
Posts: 1
Joined: Tue Jan 15, 2008 2:56 pm

LDAP with SSL

Post by Marini »

Here my addition in order to allow LDAP on SSL. The missing function is the setup of the Version 3 of the LDAP protocol, which is done (without checking the function return code, let the developer clean the code and check it in):

ldap_set_option($t_ds, LDAP_OPT_PROTOCOL_VERSION, 3);

after line 37 in ldap_api.php in directory testlink/lib/functions

Without this the bind to the LDAP server fails

Paolo
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

thanks.
Last week we have made changes to LDAP config on CVS HEAD.
Post Reply