|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-09-17 01:55 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 20:00:01 2025 UTC |
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.