← Back to team overview

phpdevshell team mailing list archive

[Question #204887]: Call to undefined function ldap_connect()

 

New question #204887 on PHPDevShell:
https://answers.launchpad.net/phpdevshell/+question/204887

I'm trying to implement the sample code in the The LDAP (a.k.a active directory) plugin. Every seem to be working right up until the point when I make the ldap_connect() call in the AUTH_ldap.class.php. Then I get the following:
The message of the error is as follow:

Call to undefined function ldap_connect()

The error occurred in file C:\Dev\xampp\htdocs\phpdev\plugins\PluggableAuth\includes\AUTH_ldap.class.php at line 26

20           $server = parse_url($sourceConfig['url']); 
21            
22           if (empty($server['host'])) { 
23               return false; // oops 
24           } 
25            
26           $connect = ldap_connect($server['host'], empty($server['port']) ? 389 : $server['port']); 
27           ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3); 
28           ldap_set_option($connect, LDAP_OPT_REFERRALS, 0); 
29   
30           //$connect=ldap_connect($server['host']); 
31           $this->log('Connected'); 
32           if (!$connect) throw new PHPDS_exception('Unable to connect to the LDAP server'); 

Is there some other additional softwar that I need to install in order to get this example to work.

-- 
You received this question notification because you are a member of
PHPDevShell, which is an answer contact for PHPDevShell.