Re: LDAP
| From: | Colin Guthrie | Date: | Tue, 21 Aug 2007 08:21:10 +0000 |
| Subject: | Re: LDAP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261072@lists.php.net to get a copy of this message | ||
Alain Roger wrote:
> Hi,
>
> I have a stupid issue with ldap_connect.
>
> i've reinstalled PHP, postgreSQL and restore my data (web files) after
> reinstalling my PC.
> now, when i try : $ds = ldap_connect($ldaphost, $ldapport) or die("Could not
> connect to $ldaphost");
>
> nothing works.
> i wrote before error_reporting(E_ALL); in order to check which error message
> i get, but nothing is return as error.
>
> what could be the problem ?
Silly question but is the PHP you installed exactly the same as the
previous one or did you select a different package? Perhaps PHP is
compiled without ldap support or perhaps you've not installed the
subpackage needed to enable ldap support. For me I have to install
php-ldap subpackage.
I would expect to see a fatal error saying no such function etc. so this
is perhaps not the problem, but worth a look.
Col