Authentication without using InitialDirContext

We have a J2EE based web application that authenticates users on Active Directory. It works well for all our clients, but one of our new clients has following requirement for authentication:

1) Bind to Active Directory (AD) using Manager/User Name & Password.

2) Search for user attributes & authenticate the user.

Our existing application authenticates user by using a 搒imple?bind via the InitialDirContext API. But this type of authentication fails in our client抯 environment for some (unknown) reason.

So the question is ?How do I authenticate a user on Active Directory without using an InitialDirContext API?

Any help in this regard will be greatly appreciated. Thanks.

[719 byte] By [achitrea] at [2007-11-15]