Jump to content

PHP - LDAP


Awilum

Recommended Posts

I wrote wrong LDAP server for test but my script dont die! why ?

in php.ini I wrote extension=php_ldap.dll and I have this lib in php/ext/

 

error_reporting(1);

$ldaphost = 'my.office.company.com';

// Connecting to LDAP	
$ip = gethostbyname($ldaphost);
$ldapconn = ldap_connect($ip) or die("Could not connect to $ldaphost");
echo 'done';

Link to comment
https://forums.phpfreaks.com/topic/220550-php-ldap/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.