uogiene
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by uogiene
-
-
Thanks a lot your suggestion outputted:
[QUOTE]
Connection successful!
[/QUOTE]
;D -
Hi,
I'm having a little problem using LDAP over php in any way...
Here's my current server setup:
phpinfo relevant output
[quote]
Apache/1.3.33 (Win32) PHP/4.4.0
ldap
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.130.2.13 2005/05/08 16:06:24 sniper Exp $
Total Links 0/unlimited
API Version 2004
Vendor Name OpenLDAP
Vendor Version 0 [/quote]As required I've uncommented following in php.ini[quote]
extension=php_ldap.dll
[/quote]
I've also copied libeay32.dll and ssleay32.dll to my SYSTEM folder
I'm using following code to query LDAP
[code]
<?php
$ldaphost = "ldaps://10.176.40.10/";
// Connecting to LDAP
$ldapconn = ldap_connect($ldaphost)
or die("Could not connect to {$ldaphost}");
?>
[/code]
I just get a blank page...
If I do some echo'ing in that code I get the echo output...
Any ideas what could be wrong?
It looks as if the LDAP is not enabled properly
Thanks for your help!
LDAP and php problem
in PHP Installation and Configuration
Posted
[code]<?php
$ldaphost = "ldaps://10.176.45.1/";
$connection = ldap_connect($ldaphost);
if (!$connection) {
echo "Not connected!";
} else {
echo "Connection successful!";
}
?>[/code]
gave same output...
10.176.45.1 being ip that does not exsists...
something is not right... ???