Encapsulates the information for connecting to an LDAP server and provides an access point for obtaining
DirContext references.
The directory location is configured using by setting the constructor argument
providerUrl. This should be in the form ldap://monkeymachine.co.uk:389/dc=acegisecurity,dc=org.
The Sun JNDI provider also supports lists of space-separated URLs, each of which will be tried in turn until a
connection is obtained.
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 unless a manager login has been configured using the properties
managerDn and managerPassword, in which case it will bind as the manager user.
Connection pooling is enabled by default for anonymous or manager connections, but not when binding as a
specific user.
author: Robert Sanders author: Luke Taylor version: $Id: DefaultInitialDirContextFactory.java 1784 2007-02-24 21:00:24Z luke_t $ See Also: The Java tutorial's guide to LDAP See Also: connection pooling |