You are right. In test code, I used root level user and password and I
thought if root level binding works, regular user login wouldn't be a
problem.
I found following from Internet.
*********
Any LDAP authentication -routine typically contain *two* binds, not just
one. The first bind
should be as a service account (probably better not to use the directory
Manager account) which does the search for the user's DN.
The second bind actually binds as the user with the password given, so you
don't need to compare anything. The directory simply returns authentication
success or failure.
************
So, I used attached code tested user "gchoi" and I got [LDAP: error code 49
- Invalid Credentials]. I even changed password for user "gchoi" and tried
with other user credentials, but it is still the same. So, I have to fix
this issue first. This must be something to do with OpenLDAP installation.
On Wed, Jun 27, 2012 at 5:19 AM, Colm O hEigeartaigh <[email protected]>wrote:

>
> You don't appear to be using the username "gchoi" in the java test code?
> Are you sure this username/password is correct?
>
> Colm.

Reply via email to