Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7865207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:01:02+00:00 2026-06-03T00:01:02+00:00

INFO: I am trying to authenticate and adLDAP PROBLEM: adLDAP telling me User authentication

  • 0

INFO: I am trying to authenticate and adLDAP

PROBLEM: adLDAP telling me “User authentication unsuccessful”

QUESTION: How do I find out what I need to do when there are no errors telling me what handle this.

SEARCHED/TRIED:

  1. http://adldap.sourceforge.net/faq.php
  2. stackoverflow.com/questions/2465260/using-adldap-php-class-but-getting-error-when-looking-for-group-user-belongs-to
  3. adldap.sourceforge.net/wiki/doku.php?id=documentation_examples#authenticating_a_user
  4. http://phreek.org/blog/2011/12/enable-php-ldap-module-in-xampp

CODE:

require_once(dirname(__FILE__) . '/adLDAP.php');
$adldap = new adLDAP();

$username = "user";
// $username = "domain\user"; // I have also tried
$password = "pass";

$authUser = $adldap->authenticate($username, $password);
if ($authUser == true) {
  echo "User authenticated successfully";
}
else {
  echo "User authentication unsuccessful";
}

echo('<hr />');

$result=$adldap->user_info("jboyle");
print_r($result);

HTML OUTPUT:

User authentication unsuccessful

Fatal error: Call to undefined method adLDAP::user_info() in C:\xampp\htdocs\adLDAP\compare.php on line 18
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:01:03+00:00Added an answer on June 3, 2026 at 12:01 am

    Replace:

    echo "User authentication unsuccessful";
    

    with

    echo "Username '{$username}' login failed: ".$adldap->getLastError();
    

    Result:

    Username 'user' login failed: Can't contact LDAP server
    

    Info/sources:

    https://sourceforge.net/projects/adldap/forums/forum/358759/topic/1719128?message=4368835
    http://adldap.sourceforge.net/wiki/doku.php?id=ldap_over_ssl#tell_apache_how_to_use_ldaps

    Do a phpinfo() and check where the HOME variable points to in the Apache environment. Create a symbolic link or copy ldap.conf to this location.

    If you get a connect error may be because your local OpenSSL installation doesn’t recognise the certificate (or its authority) provided by the server. This can be circumvented by adding the following line to ldap.conf on your server or similar:

    Change TLS_REQCERT allow to TLS_REQCERT never

    Apache must be able to read ldap.conf, you cannot skip this step.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm trying to get more info in the nimbuzz protocol, and possibly find any
I'm currently trying to figure out how to perform manual windows authentication in our
i got a problem once again :D a little info first: im trying to
My question is in regards to normalizing data. INFO I'm trying to tabulate test
I'm trying to set up Devise 1.2 to allow user authentication via GitGub. As
Similar to this question , I am trying to perform simple authentication to a
Just trying to pull off some SMART info from connected Hard Drives on any
I am trying to load some info from the database asynchronously. I have a
I am trying to pull registry info from many servers and put them all
I'm trying to pullout some info from an external site using jQuery and Adobe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.