Re: SSL ldap bind

From: Date: Thu, 16 Jun 2005 16:53:44 +0000
Subject: Re: SSL ldap bind
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-217083@lists.php.net to get a copy of this message
$ldapserver="ldapserver"; //this works $ldapserver="ldaps://ldapserver"; //this fails $ldapserver="ldapserver:636"; //this fails if (!($ldap = ldap_connect($ldapserver))) { die ("Could not connect to LDAP Server: $server\n"); } else { print "Connected\n"; } if (!(ldap_bind($ldap, $bindUser,$bindPass))) { die ("Unable to Bind"); } else { print "Bound\n"; }
Oh yeah, My connects don't fail. It fails on the bind, even if it is anomynous.

« previous php.general (#217083) next »