Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008554TestLinkAuthenticationpublic2019-01-31 03:392019-02-09 16:18
Reporteradnanrox7 
Assigned Tofman 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionunable to reproduce 
PlatformOSWindowsOS VersionW10
Product Version 
Fixed in Version 
Summary0008554: Unable to get LDAPs to work in order to login with Domain users
DescriptionWhen 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]







TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
BrowserChrome
PHP Version
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
(0028486)
fman (administrator)
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 (reporter)
2019-02-01 05:24

I have tried using a browser and can connect access the server
(0028496)
fman (administrator)
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 (administrator)
2019-02-09 16:18

Unfortunately, user has not been able to provide more feedback

- Issue History
Date Modified Username Field Change
2019-01-31 03:39 adnanrox7 New Issue
2019-01-31 09:02 fman Note Added: 0028486
2019-01-31 09:02 fman Assigned To => fman
2019-01-31 09:02 fman Status new => feedback
2019-02-01 03:38 adnanrox7 Note Added: 0028489
2019-02-01 03:38 adnanrox7 Status feedback => assigned
2019-02-01 05:22 adnanrox7 Note Deleted: 0028489
2019-02-01 05:24 adnanrox7 Note Added: 0028490
2019-02-01 17:06 fman Note Added: 0028496
2019-02-09 16:18 fman QA Team - Task Workflow Status => TBD
2019-02-09 16:18 fman Note Added: 0028519
2019-02-09 16:18 fman Status assigned => resolved
2019-02-09 16:18 fman Resolution open => unable to reproduce



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker