Package org.nuxeo.ecm.directory.ldap
Class LDAPDirectory
java.lang.Object
org.nuxeo.ecm.directory.AbstractDirectory
org.nuxeo.ecm.directory.ldap.LDAPDirectory
- All Implemented Interfaces:
Directory
Implementation of the Directory interface for servers implementing the Lightweight Directory Access Protocol.
- Author:
- ogrisel, Robert Browning
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
SSLSocketFactory implementation that verifies all certificates.Nested classes/interfaces inherited from class org.nuxeo.ecm.directory.AbstractDirectory
AbstractDirectory.CSVLoaderConsumer
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected Properties
static final String
protected final LDAPDirectoryFactory
protected SearchControls
protected SearchControls
protected ContextProvider
Fields inherited from class org.nuxeo.ecm.directory.AbstractDirectory
cache, descriptor, fieldMapper, referenceClass, references, registry, schemaFieldMap, sessionCount, sessionMaxCount, TENANT_ID_FIELD, types
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddBaseFilter
(String filter) protected void
protected Properties
protected SearchControls
protected SearchControls
Search controls that only fetch attributes defined by the schemaprotected DirContext
Get descriptorSearch controls that only fetch the id.getReferences
(String referenceFieldName) Lookup the References by field name.getSearchControls
(boolean fetchAllAttributes) Creates a session for accessing entries in this directory.protected ContextProvider
void
INTERNAL, DO NOT CALL.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) Methods inherited from class org.nuxeo.ecm.directory.AbstractDirectory
addInverseReferences, addReference, addSession, doSanityChecks, fallbackOnDefaultCache, getCache, getDirectoryDeleteConstraints, getFieldMapper, getIdField, getName, getParentDirectory, getPasswordField, getReferences, getSchema, getSchemaFieldMap, getTypes, initializeInverseReferences, initializeReferences, initSchemaFieldMap, invalidateCaches, invalidateDirectoryCache, isMultiTenant, isReadOnly, isReference, loadData, loadDataOnInit, loadFromCSV, makeOrderBy, newReference, orderEntries, removeSession, setReadOnly, shutdown
-
Field Details
-
DN_SPECIAL_ATTRIBUTE_KEY
- See Also:
-
contextProperties
-
idSearchControls
-
searchControls
-
factory
-
baseFilter
-
testServer
-
-
Constructor Details
-
LDAPDirectory
-
-
Method Details
-
getDescriptor
Description copied from interface:Directory
Get descriptor -
addReferences
protected void addReferences()- Overrides:
addReferences
in classAbstractDirectory
-
getReferences
Description copied from interface:Directory
Lookup the References by field name.- Specified by:
getReferences
in interfaceDirectory
- Overrides:
getReferences
in classAbstractDirectory
- Returns:
- the matching references implementation or null
-
initialize
public void initialize()Description copied from interface:Directory
INTERNAL, DO NOT CALL. Initializes the directory when Nuxeo starts. Called without a transaction.- Specified by:
initialize
in interfaceDirectory
- Overrides:
initialize
in classAbstractDirectory
-
computeContextProperties
- Returns:
- connection parameters to use for all LDAP queries
-
setSystemProperty
Sets a System property, except if it's already set, to allow for external configuration. -
getContextProperties
-
computeIdSearchControls
-
computeSearchControls
Search controls that only fetch attributes defined by the schema- Returns:
- common search controls to use for all LDAP search queries
-
getIdSearchControls
Search controls that only fetch the id.- Since:
- 10.3
-
getSearchControls
-
getSearchControls
-
createContext
-
getServer
- Returns:
- ldap server descriptor bound to this directory
- Since:
- 5.7
-
getSession
Description copied from interface:Directory
Creates a session for accessing entries in this directory.- Returns:
- a Session object
-
getBaseFilter
-
addBaseFilter
-
getTestServer
-
setTestServer
-