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.
Testlink 1.7.4 and LDAP authentication
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
$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
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 wrote:Below are my settings and it is working for me (TL 1.7.4.):-
$g_ldap_bind_dn = '';
$g_ldap_bind_passwd = '';