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
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).
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
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.
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
please check your parameters.php file : if the parameter exists in this file, it preceeds value in the database (as of config screen).
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
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.
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
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.
002514, can you try to connect with your AD account without entering your password? 😉
Hi
effectively, I needn't to put password to enter in the web site :angry:
thank you
I'm looking for a solution.... please
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
Which version are you using ?
This issue should be trapped in V4.1.2...
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
