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 void |
initLDAPConfig()
Lazy init method for ldap config
|
void |
setTestServer(ContextProvider testServer) |
addInverseReferences, addReference, addReferences, addReferences, addSession, doSanityChecks, getCache, getDirectoryDeleteConstraints, getFieldMapper, getIdField, getName, getParentDirectory, getPasswordField, getReference, getReferences, getSchema, getSchemaFieldMap, getTypes, invalidateCaches, invalidateDirectoryCache, isMultiTenant, isReadOnly, isReference, orderEntries, removeSession, setReadOnly, shutdown
public static final String DN_SPECIAL_ATTRIBUTE_KEY
protected Properties contextProperties
protected 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 initLDAPConfig()
protected Properties computeContextProperties() throws DirectoryException
DirectoryException
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()
public void setTestServer(ContextProvider testServer)
Copyright © 2017 Nuxeo. All rights reserved.