Class LdapService

java.lang.Object
com.netscape.jndi.ldap.LdapService

class LdapService extends Object
Ldap Service encapsulates a Ldap connection and Ldap operations over the connection. The connection is established in a lazy manner, first time a Ldap operation is initiated. A Ldap Service object is shared by multiple contexts. The object maintains a reference counter which is incremented when a context is cloned, and decremeneted when a context is closed. The associated Ldap Connection is relased when the reference counter reaches zero. LDAPsearchConstraints are always read from a context, because ldap service is a shared object and each context may request different search constraints.