newInitialDirContext(String userDn, String password) Provides an initial context by binding as a specific user.
Parameters: userDn - the user to authenticate as when obtaining the context. Parameters: password - the user's password.
Returns the root DN of the contexts supplied by this factory.
The names for searches etc. which are performed against contexts
returned by this factory should be relative to the root DN.
The DN of the contexts returned by this factory.
Provides an initial context by binding as a specific user.
Parameters: userDn - the user to authenticate as when obtaining the context. Parameters: password - the user's password. An initial context for the LDAP directory