public class LDAPDirectory extends AbstractDirectory
Modifier and Type | Class and Description |
---|---|
static class |
LDAPDirectory.TrustingSSLSocketFactory
SSLSocketFactory implementation that verifies all certificates.
|
Modifier and Type | Field and Description |
---|---|
protected String |
baseFilter |
protected Properties |
contextProperties |
static String |
DN_SPECIAL_ATTRIBUTE_KEY |
protected LDAPDirectoryFactory |
factory |
protected SearchControls |
searchControls |
protected ContextProvider |
testServer |
cache, descriptor, fieldMapper, referenceClass, references, registry, schemaFieldMap, sessionCount, sessionMaxCount, types
Constructor and Description |
---|
LDAPDirectory(LDAPDirectoryDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
protected Properties |
computeContextProperties() |
protected SearchControls |
computeSearchControls()
Search controls that only fetch attributes defined by the schema
|
protected DirContext |
createContext() |
String |
getBaseFilter() |
Properties |
getContextProperties() |
LDAPDirectoryDescriptor |
getDescriptor()
Get descriptor
|
List<Reference> |
getReferences(String referenceFieldName)
Lookup the References by field name.
|
SearchControls |
getSearchControls() |
SearchControls |
getSearchControls(boolean fetchAllAttributes) |
LDAPServerDescriptor |
getServer() |
Session |
getSession()
Creates a session for accessing entries in this directory.
|
protected ContextProvider |
getTestServer() |
protected void |
initLDAPConfig() |
protected void |
initLDAPConfigIfNeeded() |
protected void |
setSystemProperty(String key,
String value)
Sets a System property, except if it's already set, to allow for external configuration.
|
void |
setTestServer(ContextProvider testServer) |
addInverseReferences, addReference, addReferences, addReferences, addSession, doSanityChecks, fallbackOnDefaultCache, getCache, getDirectoryDeleteConstraints, getFieldMapper, getIdField, getName, getParentDirectory, getPasswordField, getReference, getReferences, getSchema, getSchemaFieldMap, getTypes, initSchemaFieldMap, invalidateCaches, invalidateDirectoryCache, isMultiTenant, isReadOnly, isReference, orderEntries, removeSession, setReadOnly, shutdown
public static final String DN_SPECIAL_ATTRIBUTE_KEY
protected Properties contextProperties
protected volatile SearchControls searchControls
protected final LDAPDirectoryFactory factory
protected String baseFilter
protected ContextProvider testServer
public LDAPDirectory(LDAPDirectoryDescriptor descriptor)
public LDAPDirectoryDescriptor getDescriptor()
Directory
public List<Reference> getReferences(String referenceFieldName)
Directory
getReferences
in interface Directory
getReferences
in class AbstractDirectory
protected void initLDAPConfigIfNeeded()
protected void initLDAPConfig()
protected Properties computeContextProperties() throws DirectoryException
DirectoryException
protected void setSystemProperty(String key, String value)
public Properties getContextProperties()
protected SearchControls computeSearchControls() throws DirectoryException
DirectoryException
public SearchControls getSearchControls()
public SearchControls getSearchControls(boolean fetchAllAttributes)
protected DirContext createContext() throws DirectoryException
DirectoryException
public LDAPServerDescriptor getServer()
public Session getSession() throws DirectoryException
Directory
DirectoryException
- if a session cannot be createdpublic String getBaseFilter()
protected ContextProvider getTestServer()
public void setTestServer(ContextProvider testServer)
Copyright © 2018 Nuxeo. All rights reserved.