LDAP authentication fails wrong login name or password
Posted: Wed Jun 12, 2013 8:41 pm
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!
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!