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 LDAPDirectoryDescriptor |
config |
protected Properties |
contextProperties |
static String |
DN_SPECIAL_ATTRIBUTE_KEY |
protected LDAPDirectoryFactory |
factory |
protected Map<String,Field> |
schemaFieldMap |
protected SearchControls |
searchControls |
protected ContextProvider |
testServer |
cache, fieldMapper, name, references, registry, sessionCount, sessionMaxCount
Constructor and Description |
---|
LDAPDirectory(LDAPDirectoryDescriptor config) |
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() |
LDAPDirectoryDescriptor |
getConfig() |
Properties |
getContextProperties() |
String |
getIdField()
Gets the id field of the schema for this directory.
|
String |
getName()
Gets the unique name of the directory, used for registering.
|
String |
getParentDirectory()
Gets the name of the parent directory.
|
String |
getPasswordField()
Gets the password field of the schema for this directory.
|
String |
getPasswordHashAlgorithmField()
Get the value of the field passwordHashAlgorithm
|
List<Reference> |
getReferences(String referenceFieldName)
Lookup the References by field name.
|
String |
getSchema()
Gets the schema name used by this directory.
|
Map<String,Field> |
getSchemaFieldMap() |
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) |
addReference, addReferences, addSession, getCache, getFieldMapper, getReference, getReferences, invalidateCaches, invalidateDirectoryCache, isMultiTenant, isReference, orderEntries, removeSession, shutdown
public static final String DN_SPECIAL_ATTRIBUTE_KEY
protected final LDAPDirectoryDescriptor config
protected Properties contextProperties
protected SearchControls searchControls
protected Map<String,Field> schemaFieldMap
protected final LDAPDirectoryFactory factory
protected String baseFilter
protected ContextProvider testServer
public LDAPDirectory(LDAPDirectoryDescriptor config)
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 String getName()
Directory
public String getSchema()
Directory
public String getParentDirectory()
Directory
public String getIdField()
Directory
public String getPasswordField()
Directory
public LDAPServerDescriptor getServer()
public Session getSession() throws DirectoryException
Directory
DirectoryException
- if a session cannot be createdpublic String getBaseFilter()
public LDAPDirectoryDescriptor getConfig()
public Map<String,Field> getSchemaFieldMap()
public String getPasswordHashAlgorithmField()
public void setTestServer(ContextProvider testServer)
Copyright © 2015 Nuxeo SA. All rights reserved.