[SOLVED] - LDAP Config removes login boxes from main screen

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
hogmoss
TestLink user
Posts: 2
Joined: Wed Aug 11, 2010 12:33 am

[SOLVED] - LDAP Config removes login boxes from main screen

Post by hogmoss »

When I configure LDAP in the custom_config.inc the log in boxes on the main screen disappear making it impossible to log in to the site? Here are my parameters:

$tlCfg->authentication['method'] = 'LDAP';

/** LDAP authentication credentials*/
$tlCfg->authentication['ldap_server'] = 'ldap://mycomp.pnl.gov';
$tlCfg->authentication['ldap_port'] = '389';
$tlCfg->authentication['ldap_version'] = '3'; // could be '2' in some cases
$tlCfg->authentication['ldap_root_dn'] = 'OU=Test,OU=User,DC=pnl,DC=gov';
$tlCfg->authentication['ldap_organization'] = '(objectClass=person)'; // e.g. '(organizationname=*Traffic)'
$tlCfg->authentication['ldap_uid_field'] = 'sAMAccountName'; // Use 'sAMAccountName' for Active Directory
$tlCfg->authentication['ldap_bind_dn'] = 'user@pnl.gov'; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap_bind_passwd'] = 'password'; // Left empty for anonymous LDAP binding

Is there something else that needs configured?
hogmoss
TestLink user
Posts: 2
Joined: Wed Aug 11, 2010 12:33 am

Re: LDAP Configuration removes login boxes from main screen

Post by hogmoss »

Sorry, version 1.8.5
kam2012
Advanced user
Posts: 27
Joined: Mon Feb 13, 2012 9:55 pm

Re: LDAP Configuration removes login boxes from main screen

Post by kam2012 »

I am also facing similar problem on Testlink version 1.9.

Please let me know if you have any solution to this problem.

Thanks in advance.


Regards,
Kamlesh
kam2012
Advanced user
Posts: 27
Joined: Mon Feb 13, 2012 9:55 pm

Re: LDAP Configuration removes login boxes from main screen

Post by kam2012 »

I got the solution of this problem, LDAP module for php was not installed on the server.
1. Set php path in env variable
2. Uncomment following line in php.ini
extension=php_ldap.dll
3. Restart the server
kam2012
Advanced user
Posts: 27
Joined: Mon Feb 13, 2012 9:55 pm

Re: [SOLVED] - LDAP Config removes login boxes from main scr

Post by kam2012 »

I am doing LDAP setting on Linux box and facing similar problem ie Login boxes removed from login screen.

I suspect this issue is because of LDAP PHP module is not enabled on Linux but I don't know how to do it.

Can anyone help me resolve this issue?

Thanks in advance.

Regards,
Kamlesh
GunnarD

Re: [SOLVED] - LDAP Config removes login boxes from main scr

Post by GunnarD »

Which distribution of Linux are you using?
kam2012
Advanced user
Posts: 27
Joined: Mon Feb 13, 2012 9:55 pm

Re: [SOLVED] - LDAP Config removes login boxes from main scr

Post by kam2012 »

I am using Red Hat Linux 5.3
GunnarD

Re: [SOLVED] - LDAP Config removes login boxes from main scr

Post by GunnarD »

Then use yum to install php-ldap and restart your webserver

As root:

yum install php-ldap
/etc/init.d/httpd restart
Post Reply