MantisBT - TestLink
View Issue Details
0008554TestLinkAuthenticationpublic2019-01-31 03:392019-02-09 16:18
adnanrox7 
fman 
highmajoralways
resolvedunable to reproduce 
WindowsW10
 
 
MySQL
Chrome
TBD
0008554: Unable to get LDAPs to work in order to login with Domain users
When trying to configure LDAPs in testlink-1.9.17 I face some errors

Scenario1 with TLS


$tlCfg->authentication['ldap'] = array();
$tlCfg->authentication['ldap'][1]['ldap_server'] = 'xxx.xxx.se';
$tlCfg->authentication['ldap'][1]['ldap_port'] = '636';
$tlCfg->authentication['ldap'][1]['ldap_version'] = '2'; // could be '2' in some cases
$tlCfg->authentication['ldap'][1]['ldap_root_dn'] = 'OU=xxx,DC=xxx,DC=se';
$tlCfg->authentication['ldap'][1]['ldap_bind_dn'] = 'CN=xxx xxx,OU=xxx,OU=xxxxz,OU=xxx,DC=xxx,DC=se'; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap'][1]['ldap_bind_passwd'] = 'xxxx'; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap'][1]['ldap_tls'] = true; // true -> use tls


[>>][5c526d072b988956384645][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:35:35]
[<<][5c526d072b988956384645][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:35:35][19/Jan/31 03:35:35][took 0.051005 secs]
[>>][5c526d07380c5548776853][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:35:35]
    [19/Jan/31 03:35:35][WARNING][<nosession>][GUI]
        config option not available: OAuthServers
    [19/Jan/31 03:35:35][WARNING][<nosession>][GUI]
        E_WARNING
Invalid argument supplied for foreach() - in E:\xampp\htdocs\testlink-1.9.17.3\login.php - Line 206
    [19/Jan/31 03:35:35][WARNING][<nosession>][GUI]
        E_NOTICE
Trying to get property of non-object - in E:\xampp\htdocs\testlink-1.9.17.3\lib\functions\doAuthorize.php - Line 45
    [19/Jan/31 03:35:35][WARNING][<nosession>][GUI]
        E_WARNING
ldap_start_tls(): Unable to start TLS: Can't contact LDAP server - in E:\xampp\htdocs\testlink-1.9.17.3\lib\functions\ldap_api.php - Line 65
    [19/Jan/31 03:35:35][AUDIT][<nosession>][GUI]
        Login for 'xxxx' from '172.20.60.198' failed
[<<][5c526d07380c5548776853][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:35:35][19/Jan/31 03:35:35][took 0.021002 secs]


Scenario2 with false

$tlCfg->authentication['ldap'] = array();
$tlCfg->authentication['ldap'][1]['ldap_server'] = 'xxx.xxx.se';
$tlCfg->authentication['ldap'][1]['ldap_port'] = '636';
$tlCfg->authentication['ldap'][1]['ldap_version'] = '2'; // could be '2' in some cases
$tlCfg->authentication['ldap'][1]['ldap_root_dn'] = 'OU=xxx,DC=xxx,DC=se';
$tlCfg->authentication['ldap'][1]['ldap_bind_dn'] = 'CN=xxx xxx,OU=xxx,OU=xxxxz,OU=xxx,DC=xxx,DC=se'; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap'][1]['ldap_bind_passwd'] = 'xxxx'; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap'][1]['ldap_tls'] = false; // true -> use tls


[>>][5c526d8b0efb1380585468][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:37:47]
[<<][5c526d8b0efb1380585468][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:37:47][19/Jan/31 03:37:47][took 0.048005 secs]
[>>][5c526d8b1ab36126091323][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:37:47]
    [19/Jan/31 03:37:47][WARNING][<nosession>][GUI]
        config option not available: OAuthServers
    [19/Jan/31 03:37:47][WARNING][<nosession>][GUI]
        E_WARNING
Invalid argument supplied for foreach() - in E:\xampp\htdocs\testlink-1.9.17.3\login.php - Line 206
[<<][5c526d8b1ab36126091323][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:37:47][19/Jan/31 03:37:47][took 0.007001 secs]
[>>][5c526d91d696b268136555][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:37:53]
[<<][5c526d91d696b268136555][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:37:53][19/Jan/31 03:37:53][took 0.034004 secs]
[>>][5c526d91dee3f487756579][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:37:53]
    [19/Jan/31 03:37:53][WARNING][<nosession>][GUI]
        config option not available: OAuthServers
    [19/Jan/31 03:37:53][WARNING][<nosession>][GUI]
        E_WARNING
Invalid argument supplied for foreach() - in E:\xampp\htdocs\testlink-1.9.17.3\login.php - Line 206
    [19/Jan/31 03:37:53][WARNING][<nosession>][GUI]
        E_NOTICE
Trying to get property of non-object - in E:\xampp\htdocs\testlink-1.9.17.3\lib\functions\doAuthorize.php - Line 45
    [19/Jan/31 03:37:53][WARNING][<nosession>][GUI]
        E_WARNING
ldap_bind(): Unable to bind to server: Can't contact LDAP server - in E:\xampp\htdocs\testlink-1.9.17.3\lib\functions\ldap_api.php - Line 90
    [19/Jan/31 03:37:53][AUDIT][<nosession>][GUI]
        Login for 'adnan.adamally' from '172.20.60.198' failed
[<<][5c526d91dee3f487756579][DEFAULT][/testlink-1.9.17.3/login.php][19/Jan/31 03:37:53][19/Jan/31 03:37:53][took 0.022002 secs]







No tags attached.
Issue History
2019-01-31 03:39adnanrox7New Issue
2019-01-31 09:02fmanNote Added: 0028486
2019-01-31 09:02fmanAssigned To => fman
2019-01-31 09:02fmanStatusnew => feedback
2019-02-01 03:38adnanrox7Note Added: 0028489
2019-02-01 03:38adnanrox7Statusfeedback => assigned
2019-02-01 05:22adnanrox7Note Deleted: 0028489
2019-02-01 05:24adnanrox7Note Added: 0028490
2019-02-01 17:06fmanNote Added: 0028496
2019-02-09 16:18fmanQA Team - Task Workflow Status => TBD
2019-02-09 16:18fmanNote Added: 0028519
2019-02-09 16:18fmanStatusassigned => resolved
2019-02-09 16:18fmanResolutionopen => unable to reproduce

Notes
(0028486)
fman   
2019-01-31 09:02   
If you read carefully the error msg you will find a can't connect to ldap server string.
Then first thing to do is test that using an ldap browser installed in the same host where testlink is installed and using same credentials you can access to the ldap/ad server
(0028490)
adnanrox7   
2019-02-01 05:24   
I have tried using a browser and can connect access the server
(0028496)
fman   
2019-02-01 17:06   
One thing that can be done is to test with a Pubic Available LDAP server, in the way we both can know we are using same server with same credentials.

Another is to use a simple php example to run it from the server where TestLink is installed to be sure is not a network issue
(0028519)
fman   
2019-02-09 16:18   
Unfortunately, user has not been able to provide more feedback