davil Posted January 19, 2006 Report Share Posted January 19, 2006 anyone have any ideas about rebuilding PHP with LDAP support. I've just very quickly glanced at the following site about integrating active directory and PHP: http://www.developer.com/lang/php/article.php/3100951 and I would like to give it a go but am unsure how to rebuild PHP. just a quick basic tutorial will do fine. Is it as simple as running the exe with the correct parameters? if so I am sorted. Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted January 19, 2006 Report Share Posted January 19, 2006 I think all you need to do is load the extension if there is. I will look into it. <_> Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
davil Posted January 20, 2006 Author Report Share Posted January 20, 2006 Thanks ola Quote Link to comment Share on other sites More sharing options...
davil Posted January 20, 2006 Author Report Share Posted January 20, 2006 I just checked the PHP manual on http://www.php.net/manual/en/install.windows.extensions.php and found you are correct. I will see how I get on and if there are any further problems I will post them up here. Quote Link to comment Share on other sites More sharing options...
davil Posted January 20, 2006 Author Report Share Posted January 20, 2006 just found out that I need to download the correct Dll version because I have two PHP folders unfortunately and the php_ldap.dll from my non - uniformserver doesn't work so I'll have to download the correct one I presume but this is no big deal. Quote Link to comment Share on other sites More sharing options...
davil Posted January 20, 2006 Author Report Share Posted January 20, 2006 OK I cannot get the proper php_ldap.dll I can get the one for PHP version 5.1.2 from PHP website but not for 5.1.1 (in version 3.3 of uniformserver) does anyone have a copy of PHP 5.1.1 that I could download? PLEASE PLEASE this would help my work so much..... Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted January 20, 2006 Report Share Posted January 20, 2006 Here are the old versions: http://www.php.net/releases.php Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
davil Posted January 25, 2006 Author Report Share Posted January 25, 2006 Thanks again for all your help. I'll keep you guys posted on my results. Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted January 25, 2006 Report Share Posted January 25, 2006 Ok. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
davil Posted January 31, 2006 Author Report Share Posted January 31, 2006 ok I'm getting further in my project but still stumped by this LDAP . now I'm a bit of a n00b in this area so bear with me. Now, I have the way my Domain is setup below: For obvious reasons, I've renamed the domain and removed some of the containers or whatever they're called. Anyway, here's my code <?php $dn = "OU=Users,DN=blah,DN=yah,DN=yakety,DN=ie"; $attributes = array("displayname", "l"); $filter = "(cn=*)"; $ad = ldap_connect("ldap://mydomaincontroller") or die("Couldn't connect to AD!"); ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3); $bd = ldap_bind($ad,"myusername@blah.yah.yakety.ie","mypassword") or die("Couldn't bind to AD!"); $result = ldap_search($ad, $dn, $filter, $attributes); $entries = ldap_get_entries($ad, $result); for ($i=0; $i<$entries["count"]; $i++) { echo $entries[$i]["displayname"] [0]."(".$entries[$i]["l"][0].")<br />"; } ldap_unbind($ad); ?> and all I get is:Warning: ldap_search() [function.ldap-search]: Search: Operations error in W:\www\ad3.php on line 17 Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in W:\www\ad3.php on line 19 Can anybody please help me? I just need a basic example to show me how to interface with my AD - I'm nearly there I can almost taste it! I've also tried $dn = "OU=Users,DN=blah,DN=yah,DN=yakety,DN=ie";$dn = "cn=Users,DN=blah,DN=yah,DN=yakety,DN=ie";$dn = "DN=blah,DN=yah,DN=yakety,DN=ie";$dn = "OU=Users,DC=blah,DC=yah,DC=yakety,DC=ie"; and none of these seem to work!!! What am I doing wrong? I'm sure that it's connecting to the server because when I tried with the wrong password it said incorrect credentials or something. PLEASE HELP!!!!! P.S. I know this is no longer a uniform server issue but I just hope somebody here can help me... Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted February 2, 2006 Report Share Posted February 2, 2006 Here is where i say i do not do LDAP.. will find someone who does for you Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
davil Posted February 17, 2006 Author Report Share Posted February 17, 2006 Thanks again ola Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted February 17, 2006 Report Share Posted February 17, 2006 Ever try connecting to the ##php channel on the Freenode IRC Server? Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
davil Posted March 21, 2006 Author Report Share Posted March 21, 2006 Ever try connecting to the ##php channel on the Freenode IRC Server?2566[/snapback]nope. what's the server address? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 24, 2006 Report Share Posted March 24, 2006 Address: irc.freenode.netChannel: ##php They could probably help you further cause i really never used LDAP before. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
davil Posted May 12, 2006 Author Report Share Posted May 12, 2006 It's strange, I never really use IRC (even though I'm a computer technician and live on my PC) - I must give it a go. Thanks Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 16, 2006 Report Share Posted May 16, 2006 No problem. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment 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.