TL 1.7.0 & LDAP authentication

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Cyril
TestLink user
Posts: 1
Joined: Mon Oct 01, 2007 12:53 pm

TL 1.7.0 & LDAP authentication

Post by Cyril »

Hi to All,

I've been installed the new version 1.7.0 on my client environment. We previously add an 1.6.3 version correctly connected to the LDAP global instance.

The configuration elements has changed between 1.6.3 & 17.0, so I've tried to adapt the previously elements to the 1.7.0 version.

I've filled the following informations in file config.inc.php :

Code: Select all

$g_login_method				= LDAP;

$g_ldap_server			= 'ldap://ldaprec1.siege.intra.groupe-casino.fr';
$g_ldap_port			= '5389';
$g_ldap_root_dn			= 'dc=groupe-casino,dc=fr';
$g_ldap_organization	= '';    # e.g. '(organizationname=*Traffic)'
$g_ldap_uid_field		= 'uid'; # Use 'sAMAccountName' for Active Directory
$g_ldap_bind_dn			= 'uid=EAI,ou=Admin,dc=groupe-casino,dc=fr'; // Left empty if you LDAP server allows anonymous binding 
$g_ldap_bind_passwd	= 'my-pwd'; // Left empty if you LDAP server allows anonymous binding 
I've read in some Mantis forums that there still is a question about putting quotes or not on LDAP value for field $g_login_method. I've tried both (LDAP & 'LDAP'), none are working.

User accounts are located in ou=people branch (under the root dn) in our LDAP instance. I've tried adding ou=people before dc=groupe... in ldap_root_dn field, it does'nt work better.

TestLink fails to authenticate telling 'wrong user or pwd' !

Is there another configuration step I forget in order to make works ?

Many thanks in advance.

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

Post by fman »

1. please install phpLdapAdmin, and try with the config you used.
2. try to get PHP adding some echos or printr on TL code
smalchow
TestLink user
Posts: 1
Joined: Mon Oct 08, 2007 5:36 pm

phpldapadmin works

Post by smalchow »

Hi, i am jus testing testlink, and LDAP authentication does not work,

<-- snip -->

$g_login_method = 'LDAP';
$g_ldap_server = 'ldap://active.directory.controller';
$g_ldap_port = '389';
$g_ldap_root_dn = 'ou=users, ................';
//$g_ldap_organization = ''; # e.g. '(organizationname=*Traffic)'
$g_ldap_uid_field = 'sAMAccountName'; # Use 'sAMAccountName' for Active Directory
$g_ldap_bind_dn = 'CN=Test Link,..............'; $g_ldap_bind_passwd = 'somepwd';

<--- snip --->

if i use the exact same string as in "$g_ldap_bind_dn" to login to the same ActiveDirectory server it works.

The strange thing is, when i do a tcpdump on port 389, there is not even a single packet leaving the testmachine, therefore it does not even ask the ActiveDiretory for authentication.

any more hints ?

regards
soeren
Post Reply