Testlink 1.7.4 and LDAP authentication

The release related discussions, plans and questions.
Locked
baribal
TestLink user
Posts: 4
Joined: Mon Jun 30, 2008 2:40 pm

Testlink 1.7.4 and LDAP authentication

Post by baribal »

That's what i have in custom_config.inc.php:

$g_login_method = 'LDAP';
$g_ldap_server = 'ldap://192.168.0.9';
$g_ldap_port = '389';
$g_ldap_root_dn = 'dc=mydomain';
$g_ldap_organization = ''; # e.g. '(organizationname=*Traffic)'
$g_ldap_uid_field = 'sAMAccountName'; # Use 'sAMAccountName' for A
$g_ldap_bind_dn = 'cn=Full Name,cn=Users,dc=mydomain';
$g_ldap_bind_passwd = 'mypass'; // Left empty if you LDAP server allow
$g_ldap_protocol_version = '3';

And testlink is asking credentials again and again. I tried to:

$g_ldap_bind_dn = 'loginname@mydomain'

Didn't help.

But i can open ldap connection in the softerra ldap browser and phpldapamin using cn=Full Name,cn=Users,dc=mydomain or loginname@mydomain with no problems. As I've heard full testlink LDAP support has appeared in 1.7 version.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

are you using Active directory?
baribal
TestLink user
Posts: 4
Joined: Mon Jun 30, 2008 2:40 pm

Post by baribal »

Yes. DC on windows 2003 server.
baribal
TestLink user
Posts: 4
Joined: Mon Jun 30, 2008 2:40 pm

Post by baribal »

Any feedback? Thanks in advance.
agarg2
Advanced user
Posts: 26
Joined: Thu Aug 02, 2007 3:49 pm

Post by agarg2 »

Below are my settings and it is working for me (TL 1.7.4.):-

$g_ldap_server = '<server name>';
$g_ldap_port = '389';
$g_ldap_root_dn = 'cn=Users,dc=<entry>,dc=<entry>,dc=com';
$g_ldap_organization = '(objectClass=*)';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = '';
$g_ldap_bind_passwd = '';

Regards,
Arun Garg
baribal
TestLink user
Posts: 4
Joined: Mon Jun 30, 2008 2:40 pm

Post by baribal »

agarg2 wrote:Below are my settings and it is working for me (TL 1.7.4.):-

$g_ldap_bind_dn = '';
$g_ldap_bind_passwd = '';
It looks like on your DC you can use anonymous bind. But on mine DC I can't use it. So the only choice is using bind with some user that exists on my DC. But I have problem with it just like i've wrote earlier.
agarg2
Advanced user
Posts: 26
Joined: Thu Aug 02, 2007 3:49 pm

Post by agarg2 »

Even my DC does not allow anonymous bind. I have tweaked TestLink to use the id/password entered by user for bind.

So when some user try to login, the id/password he/she provides is used to bind and if successful, user is allowed to login.

Regards,
Arun Garg
Locked