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
Nested ClassesModifier and TypeClassDescriptionstatic classSSLSocketFactory implementation that verifies all certificates.Nested classes/interfaces inherited from class org.nuxeo.ecm.directory.AbstractDirectory
AbstractDirectory.CSVLoaderConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Propertiesstatic final Stringprotected final LDAPDirectoryFactoryprotected SearchControlsprotected SearchControlsprotected ContextProviderFields inherited from class org.nuxeo.ecm.directory.AbstractDirectory
cache, descriptor, fieldMapper, referenceClass, references, registry, schemaFieldMap, sessionCount, sessionMaxCount, TENANT_ID_FIELD, types -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBaseFilter(String filter) protected voidprotected Propertiesprotected SearchControlsprotected SearchControlsSearch controls that only fetch attributes defined by the schemaprotected DirContextGet 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 ContextProvidervoidINTERNAL, DO NOT CALL.protected voidsetSystemProperty(String key, String value) Sets a System property, except if it's already set, to allow for external configuration.voidsetTestServer(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, shutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.directory.Directory
createBareDocumentModel, createBareDocumentModel
-
Field Details
-
DN_SPECIAL_ATTRIBUTE_KEY
- See Also:
-
contextProperties
-
idSearchControls
-
searchControls
-
factory
-
baseFilter
-
testServer
-
-
Constructor Details
-
LDAPDirectory
-
-
Method Details
-
getDescriptor
Description copied from interface:DirectoryGet descriptor -
addReferences
protected void addReferences()- Overrides:
addReferencesin classAbstractDirectory
-
getReferences
Description copied from interface:DirectoryLookup the References by field name.- Specified by:
getReferencesin interfaceDirectory- Overrides:
getReferencesin classAbstractDirectory- Returns:
- the matching references implementation or null
-
initialize
public void initialize()Description copied from interface:DirectoryINTERNAL, DO NOT CALL. Initializes the directory when Nuxeo starts. Called without a transaction.- Specified by:
initializein interfaceDirectory- Overrides:
initializein 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:DirectoryCreates a session for accessing entries in this directory.- Returns:
- a Session object
-
getBaseFilter
-
addBaseFilter
-
getTestServer
-
setTestServer
-