Jump to content

Recommended Posts

I am wanting to try and create a php page to use an address book, this page will query our Active Directory and display the details of members of staff.

 

At this stage I should point out I am no php expert, but am following instructions from

 

http://www.developer.com/lang/php/article.php/3100951

 

and

 

http://uk.php.net/ldap

 

If I put this in:

echo "<h3>LDAP query test</h3>";
echo "Connecting ...";
putenv('LDAPTLS_REQCERT=never') or die('Failed to setup the env');
$ds=ldap_connect("lch-ad.lch.com");  // must be a valid LDAP server!
echo "connect result is " . $ds . "<br />";

 

then I get:

 

LDAP query test

Connecting ...connect result is Resource id #1

 

This is with php5 setup on my machine locally running IIS on Windows XP Pro SP

 

If I change the ldap address it makes no different to the result.

 

Any clues from anyone?

Link to comment
https://forums.phpfreaks.com/topic/85376-php-with-ldap/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.