To obtain an initial context, the client calls the newInitialDirContext method. There are two signatures - one with no arguments and one which allows binding with a specific username and password.
The no-args version will bind anonymously or if a manager login has been configured using the properties managerDn and managerPassword it will bind as that user.
Connection pooling is enabled by default for anonymous or manager connections, but not when binding as a specific user.
@see The Java tutorial's guide to LDAP connection pooling @author Robert Sanders @author Luke Taylor @version $Id: DefaultInitialDirContextFactory.java,v 1.1 2006/04/01 03:37:46 itnaf Exp $
|
|