Forum

Pb ldap_bind to ser...
 
Notifications
Retirer tout

Pb ldap_bind to server

27 Posts
3 Utilisateurs
0 Reactions
28.1 {numéro}K Vu
(@002514)
Posts: 68
Active Member
Début du sujet
 
[#1545]

Hi

Allow me to put this new topic even if I've already seen an other topic for almost the same problem because I didn't find a solution.

After to have check all parameters, I have the following error :
2014-01-07 11:51:22 ** ERROR ** cause = ldap_bind(): Unable to bind to server: Can't contact LDAP server

Thank you for your help

Yannick


 
Posté : 7 Jan PM 15:011
(@babynus)
Posts: 14952
Membre Admin
 

Message seems clear "Can't contact LDAP server".
So either your definition of LDAP host or LDAP port is wrong, or your server cannot reach this defined server (some firewall may be blocking flows).


 
Posté : 7 Jan PM 16:011
(@002514)
Posts: 68
Active Member
Début du sujet
 

I tried with next command : "telnet domain 389" and the system respond
The firewall is disable
I have activated the extension module in PHP php_ldap
Is-it possible to have more details in log file ?

Thank you
Yannick


 
Posté : 7 Jan PM 19:011
(@babynus)
Posts: 14952
Membre Admin
 

If you have version 4.1.0, you can uncomment all the debugLog commands in /model/User.php, enable debug log (set $logLevel=3 in parameters.php) and try again.


 
Posté : 7 Jan PM 19:011
(@002514)
Posts: 68
Active Member
Début du sujet
 

I modified the paramaters to activate the debug mode.
The result is :

2014-01-22 16:55:13 ----- DEBUG ----- ** trace binding admin **
2014-01-22 16:55:13 ----- DEBUG ----- user='cn=Manager,dc=mydomain,dc=com'
2014-01-22 16:55:13 ----- DEBUG ----- password='secret'
2014-01-22 16:55:14 ** ERROR ** ERROR **
2014-01-22 16:55:14
** ERROR ** on file 'E:wampwwwprojeqtormodelUser.php' at line (746)
2014-01-22 16:55:14
** ERROR ***** cause = ldap_bind(): Unable to bind to server: Can't contact LDAP server

I don't understand why the parameters used by ldap connection don't correspond with the parameter that i put with the global parameter screen.

Thank you


 
Posté : 22 Jan PM 19:011
(@babynus)
Posts: 14952
Membre Admin
 

please check your parameters.php file : if the parameter exists in this file, it preceeds value in the database (as of config screen).


 
Posté : 22 Jan PM 19:011
(@002514)
Posts: 68
Active Member
Début du sujet
 

OK now it's working
I modified some parameters in the parameters.php and now it's OK
So, i think that some parameters are read in the parameters.php file and others directly in the database.

Thank you for your help

A fix to correct this mistake will necessary
Yannick


 
Posté : 22 Jan PM 20:011
 Soji
(@soji)
Posts: 21
Active Member
 

Hello,

Please, can you copy your paramaters.php file because I have still problem with ldap connection.

In my parameters.php file, I have only these entries:
$paramDbType='mysql';
$paramDbHost='localhost';
$paramDbPort='3306';
$paramDbUser='root';
$paramDbPassword='secret';
$paramDbName='projeqtor';
$paramDbPrefix='';
$logFile='../files/logs/projeqtor_${date}.log';
$logLevel='3';

Thanks for your help.


 
Posté : 23 Jan PM 14:011
(@002514)
Posts: 68
Active Member
Début du sujet
 

You must modify the parameters.php file which is in the folder : filesconfig

$paramLdap_base_dn = 'DC=cb,DC=societe,DC=fr';
$paramLdap_host = 'host controleur active Directory';
$paramLdap_port = '389';
$paramLdap_version = '3';
$paramLdap_search_user = 'CN=_ReadOnly Active Directory,CN=Users,DC=cb,DC=canon,DC=fr';
$paramLdap_search_pass = 'password';
$paramLdap_user_filter = 'sAMAccountName=%USERNAME%';

Yannick


 
Posté : 23 Jan PM 15:011
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

1) parameters.php file is by default in {projeqtorroot}/files/config, but it may be moved, and it is highly advised to move it ousite web reach.
Its location is stored in {projeqtorroot}/tool/parametersLocation.php

2) My advise is to comment the $paramLdap_* vars in parameters.php file.
this way, you'll be able to configure LDAP access through "Global Parameters" application screen.


 
Posté : 23 Jan PM 15:011
 Soji
(@soji)
Posts: 21
Active Member
 

002514, can you try to connect with your AD account without entering your password? 😉


 
Posté : 23 Jan PM 19:011
(@002514)
Posts: 68
Active Member
Début du sujet
 

Hi

effectively, I needn't to put password to enter in the web site :angry:

thank you

I'm looking for a solution.... please


 
Posté : 23 Jan PM 20:011
(@babynus)
Posts: 14952
Membre Admin
 

Some issue has already been reported, looking like your own :
http://www.projeqtor.org/index.php/forum/2-submit-issues/5498-problem-ldap-authentication#6598


 
Posté : 23 Jan PM 20:011
(@babynus)
Posts: 14952
Membre Admin
 

Which version are you using ?

This issue should be trapped in V4.1.2...


 
Posté : 23 Jan PM 20:011
(@002514)
Posts: 68
Active Member
Début du sujet
 

I use the 4.1.2 version

I don't understand your last answer because for me i have a specific user used to connect to AD and other parameter like user filter for each user profil.
I defined this parameter like that : sAMAccountName=%USERNAME%

thanks


 
Posté : 23 Jan PM 20:011
Page 1 / 2
Share:
Retour en haut