PHP LDAP Search Root of Active Directory

9 Responses to “PHP LDAP Search Root of Active Directory”

  1. Developer

    Thank you man, you saved me a day of reading ldap documentation, I think!

    Reply
  2. Lance

    Thank you. I had found and tried the first line, but it was the second line I needed to set me free.

    Reply
  3. Paul

    Thanks for this – well spotted! I read elsewhere that the first line tells the LDAP client library not to follow referrals.

    I think the same issue arises when protecting directories using Apache’s mod_authnz_ldap module to authenticate users against AD. In that case, a solution is to edit the ldap config file (e.g. in /etc/ldap/ldap.conf for Debian) by adding the line:
    referrals off

    Reply

Leave a Reply to Matt Augustine

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">