[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.2

PHP LDAP

Asked by goware in PHP Scripting Language, PHP and Databases, Lightweight Directory Access Protocol (LDAP)

I am unable unable to connect to an open LDAP Server via PHP's LDAP functionality (or PEAR LDAP2). Code is below. I am receiving the same error "Unable to bind to server: Can't contact LDAP server" whether on W2K3/IIS or Linux/Apache. I have seen references to compiling with OpenLDAP, etc. I have run phpinfo() and have the LDAP section so I know that LDAP functionality is available on both servers (also, the calls to the functions don't throw errors). I have also seen references to ldap.conf file. I believe I am missing some sort of configuration on the server itself. Thanks for any help (been very frustrating).

 error_reporting(E_ALL);
 ini_set("display_errors", 1);

$ldaphost = "ldap://ldap.berkeley.edu";
$ldapport = 389;
      
$ldapconn = ldap_connect($ldaphost);

if ($ldapconn) {
   ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3);
   $r=ldap_bind($ldapconn);

   if(!$r){echo "User did not bind to LDAP Server";}
   else echo "User was bound to LDAP Server";

   ldap_close($ldapconn);
} else {
   echo ldap_error($ldapconn);}

p.s., i am able to connect to ldap.berkeley.edu:389 through a standard LDAP client.
[+][-]11/01/09 01:18 PM, ID: 25715526Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/02/09 06:05 AM, ID: 25719338Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/03/09 05:19 AM, ID: 25728602Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 09:14 AM, ID: 25731154Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 03:47 AM, ID: 25738348Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11/04/09 03:48 AM, ID: 25738350Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11/04/09 03:43 PM, ID: 25745414Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 04:28 AM, ID: 25748703Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 09:31 AM, ID: 25751826Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/09/09 08:12 AM, ID: 25777200Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11/11/09 07:42 AM, ID: 25795914Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: PHP Scripting Language, PHP and Databases, Lightweight Directory Access Protocol (LDAP)
Sign Up Now!
Solution Provided By: goware
Participating Experts: 2
Solution Grade: A
 
[+][-]11/11/09 12:29 PM, ID: 25798681Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625