LDAP Authentication - How to bind twice
I need to authenticate users against LDAP server.
The issue is that:
I have two pairs of username/password.
One is a default hard-coded pair for initail binding.
And the other is what the user types in the login screen.
Is there a way to create an initail context with the first pair, and then authenticate the second pair?
I searched for some examplaes but couldn't find a way.
It seems that I need to create a subcontext from the initail context, but how can I send the second password?