I'v installed Openldap in Ubuntu 14.04 and i'v also installed phpldapadmin everything looks fine until this step , but when i try to connect my php application with this script i have the same response as a result resource id #2
this is my script :
$ds=ldap_connect("ladp://192.168.1.2",389)or die("Could not connect to $ldaphost");
echo 'Le résultat de connexion est ' . $ds . '<br />';
if ($ds) {
echo 'Liaison ...';
$username = "cn=admin,dc=ldap,dc=com";
$upasswd = "password";
$r=ldap_bind($ds,$username, $upasswd);
echo 'Le résultat de connexion est ' . $r . '<br />';