dmccabe Posted January 10, 2008 Share Posted January 10, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/85376-php-with-ldap/ Share on other sites More sharing options...
DyslexicDog Posted January 10, 2008 Share Posted January 10, 2008 Well I get the same echo from a mysql result. Have you read anything about the ldap object? or anything else about ldap other than connecting? You might want to try accessing the address book for the directory to get some more details. Maybe it's just working? Quote Link to comment https://forums.phpfreaks.com/topic/85376-php-with-ldap/#findComment-435594 Share on other sites More sharing options...
dmccabe Posted January 10, 2008 Author Share Posted January 10, 2008 Thanks for the reply, but it definitely isn't working, if I change the name of the LDAP server to anything else such as "blahblahblah", then I get the same response. Which would indicate it just isnt talking to the server. Quote Link to comment https://forums.phpfreaks.com/topic/85376-php-with-ldap/#findComment-435602 Share on other sites More sharing options...
dcparham Posted January 18, 2008 Share Posted January 18, 2008 i noticed this too; however when changing userID and password it does matter. i can rePost, but i will watch this thread for someone who may shed some light on it... thx!! Quote Link to comment https://forums.phpfreaks.com/topic/85376-php-with-ldap/#findComment-442768 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.