Using TestLink v.1.9.7
I enabled LDAP in config.inc.php and here is the configurations:
$tlCfg->authentication['method'] = 'LDAP';
...
/** LDAP authentication credentials */
$tlCfg->authentication['ldap_server'] = '<our_company_domain_name>';
$tlCfg->authentication['ldap_port'] = '389';
$tlCfg->authentication['ldap_version'] = '3'; // could be '2' in some cases
$tlCfg->authentication['ldap_root_dn'] = ',DC=informatica,DC=com';
$tlCfg->authentication['ldap_bind_dn'] = ''; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap_bind_passwd'] = ''; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap_tls'] = false; // true -> use tls
I then went to the TL login page and clicked on "New User?". When I got to the page for adding a new user, it said at the bottom "Password management is external" so I know LDAP was definitely enabled. After I added the user and was directed back to the login page, I tried logging on with the login name I just entered and the correct Windows Domain password, but I got the "Try again! Wrong login name or password!" error.
Something must've happened either during the binding process to the LDAP server or the searching process, it would be great to get some help on how to pinpoint where the problem is.
I see that in the logs there are these error message:
ldap_search() [<a href='function.ldap-search'>function.ldap-search</a>]: Search: Operations error - in C:\Program Files (x86)\EasyPHP-5.3.9\modules\testlink\lib\functions\ldap_api.php - Line 161
ldap_get_entries() expects parameter 2 to be resource, boolean given - in C:\Program Files (x86)\EasyPHP-5.3.9\modules\testlink\lib\functions\ldap_api.php - Line 162
ldap_free_result() expects parameter 1 to be resource, boolean given - in C:\Program Files (x86)\EasyPHP-5.3.9\modules\testlink\lib\functions\ldap_api.php - Line 185
Login for 'agu' from '10.20.18.37' failed
Here are the corresponding lines from the ldap_api.php
161 $t_sr = ldap_search( $t_ds, $t_ldap_root_dn, $t_search_filter, $t_search_attrs );
162 $t_info = ldap_get_entries( $t_ds, $t_sr );
185 ldap_free_result( $t_sr );
Thanks for your help guys!
LDAP authentication fails wrong login name or password
Moderators: Amaradana, TurboPT, TL Developers
-
- TestLink user
- Posts: 14
- Joined: Sat Jun 01, 2013 6:59 am
Re: LDAP authentication fails wrong login name or password
simple questions:
1. have you done some searches here on forum for other LDAP releated posts (i.e. sear for LDAP word)?
may be you can find some useful info or contact other users that are trying to use the same feature. (a very standard practice
search before post to avoid duplicates)
2. do you have real support from your system administration people, i.e. have they checked (read) your configuration ?
My intention is helping you to understand how to find the solution, but doing some simple analisys by yourself.
This will help you in the future with any other kind of issue.
just another advice: in order to make people life easier, do not forget some context info like mentioning that you have alredy opened an issue on mantis.testlink.org and indicating on the mantis issue that you are also trying to get some help from the forum.
1. have you done some searches here on forum for other LDAP releated posts (i.e. sear for LDAP word)?
may be you can find some useful info or contact other users that are trying to use the same feature. (a very standard practice
search before post to avoid duplicates)
2. do you have real support from your system administration people, i.e. have they checked (read) your configuration ?
My intention is helping you to understand how to find the solution, but doing some simple analisys by yourself.
This will help you in the future with any other kind of issue.
just another advice: in order to make people life easier, do not forget some context info like mentioning that you have alredy opened an issue on mantis.testlink.org and indicating on the mantis issue that you are also trying to get some help from the forum.
-
- TestLink user
- Posts: 14
- Joined: Sat Jun 01, 2013 6:59 am
Re: LDAP authentication fails wrong login name or password
1. Yes I have done searches on the forum and Mantis.
2. I'm still waiting to hear back from our sys admin people.
And yes you're right I did raise an issue on Mantis first but I'm hoping someone who may have seen the same type of error messages / is familiar with php or ldap can point me in the right direction.
2. I'm still waiting to hear back from our sys admin people.
And yes you're right I did raise an issue on Mantis first but I'm hoping someone who may have seen the same type of error messages / is familiar with php or ldap can point me in the right direction.
Re: LDAP authentication fails wrong login name or password
any news about this?