Re: PHP Windows Installer maintainer finally joins the list

From: Date: Fri, 24 Aug 2007 20:29:32 +0000
Subject: Re: PHP Windows Installer maintainer finally joins the list
References: 1 2 3  Groups: php.windows 
Request: Send a blank email to php-windows+get-28404@lists.php.net to get a copy of this message
Hi! I've created a testaccount. and tested this simple code... I get error code: Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid credentials in C:\www\utveckling\ldap.php on line 14 LDAP bind failed... The server uses Active Directory. I'm not sure if I'm typing the username and password correctly. Is it something you have to in Active Directory to activate LDAP-service? <?php // using ldap bind
$ldaprdn  = 'abcd@hmn.se';     // ldap rdn or dn
$ldappass = 'abcd'; // associated password // connect to ldap server $ldapconn = ldap_connect("127.0.0.1") or die("Could not connect to LDAP server."); if ($ldapconn) { // binding to ldap server $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); // verify binding if ($ldapbind) {
       echo "LDAP bind successful...";
} else {
       echo "LDAP bind failed...";
} } ?> I also tested your code with my info, with a testaccount: <?php $ldaprdn = 'abcd@hmn.se'; $ldappass = 'abcd'; $ds = 'hmnr.hmn.se'; $dn = 'dc=hmn,dc=se'; $ldapport = 389; $ldapconn = ldap_connect($ds, $ldapport) or die("Could not connect to LDAP server."); if ($ldapconn) { ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3); ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0); $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); } ?> Then I get this error: Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server in C:\www\utveckling\ldap2.php on line 14 Is there something wrong in my dn ? hmnr is the webbserver Best regards /Gustav Wiberg ----- Original Message ----- From: "John Mertic" <jmertic@gmail.com> To: <php-windows@lists.php.net> Cc: <not@chance.now> Sent: Friday, August 24, 2007 9:51 PM Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the list
On 8/17/07, Niel Archer <not@chance.now> wrote:
My own recommendation is based on the manual, and no reflection of the installer "There are several all-in-one installers over the Internet, but none of those are endorsed by PHP.net, as we believe that the manual installation is the best choice to have your system secure and optimised."
That text has now been changed to: "There are several all-in-one installers over the Internet, but none of those are endorsed by PHP.net, as we believe that using one of the official windows packages from » http://www.php.net/downloads.php is the best choice to have your system secure and optimised." Hopefully that helps adoption out. -- --
John Mertic                                        "Explaining a joke
is like dissecting a frog: you
jmertic@gmail.com                              understand it better,
but the frog dies in the
                                                         process."
                     -Mark Twain


« previous php.windows (#28404) next »