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?
LDAP config
Moderators: Amaradana, TurboPT, TL Developers
$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
$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
LDAP with SSL
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
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