[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Trying to connection php with ldap
- To: Abhishek koserwal <abhishek.koserwal@gmail.com>
- Subject: Re: Trying to connection php with ldap
- From: Aaron Richton <richton@nbcs.rutgers.edu>
- Date: Thu, 12 Feb 2015 10:32:19 -0500 (EST)
- Cc: openldap-technical@openldap.org
- In-reply-to: <CAE0WzRoUcWwRC0hXgSiBJjcE=g7010nv9vMDS2ddjQKV3Xgp6g@mail.gmail.com>
- References: <CAE0WzRoUcWwRC0hXgSiBJjcE=g7010nv9vMDS2ddjQKV3Xgp6g@mail.gmail.com>
- User-agent: Alpine 2.02 (SOC 1266 2009-07-14)
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.