On Thu, 12 Feb 2015, Abhishek koserwal wrote:
<?php $ldaphost = "localhost";
[...]
$ldapbind = ldap_bind($ldapconn,$ldaprdn,$ldappassw);
[...]
Fail to bind, $ldapbind return bool(false). I have configured phpldapadmin, which is working fine.
0. http://php.net/manual/en/function.ldap-errno.php
1. Since $ldaphost is "localhost" perhaps you have sufficent access to run slapd with debugging enabled (e.g. start slapd with the -d argument). This can be quite illustrative. For example, perhaps you could compare debugging logs generated from the working phpldapadmin vs. your non-working snippet.