Re: SSL ldap bind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





$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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux