ID: 42684
User updated by: djlift at mac dot com
Reported By: djlift at mac dot com
Status: Open
Bug Type: LDAP related
Operating System: hpux 11.11i
PHP Version: 5.2.4
New Comment:
I also tried to bind after connecting (just to see):
<?php
// Connecting to LDAP
$ldapconn = ldap_connect("LDAP://10.10.2.50",389);
$bind = ldap_bind
($ldapconn,"cn=solutionsldapproxy,ou=ldap,ou=services,o=nam","vac64mis
");
if (!$bind) {
echo "failure";
} else {
echo "success";
}
?>
because i read that nothing really happens until you attempt to bind
but it still doesn't work.
Previous Comments:
------------------------------------------------------------------------
[2007-09-17 01:55:04] djlift at mac dot com
Description:
------------
Whenever I try to connect to any ldap server in my network, I can never
connect. I'm using openldap 2.3.38 on hpux 11.11i.
openldap command line binaries work fine.
Let me know what else i can provide.
Thanks,
Mark
Reproduce code:
---------------
<?php
// Connecting to LDAP
$ldapconn = ldap_connect("LDAP://10.10.2.50",389);
if (!$ldapconn) {
echo "failure";
} else {
echo "success";
}
?>
Expected result:
----------------
success
Actual result:
--------------
Warning: ldap_connect() [function.ldap-connect]: Could not create
session handle: Unknown error in /opt/hpws/apache/htdocs/nissanq/
test.php on line 4
failure
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42684&edit=1