public class LDAPServerDescriptor extends Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
LDAPServerDescriptor.LdapEntry
Common internal interface for Ldap entries
|
protected class |
LDAPServerDescriptor.LdapEntryDescriptor
Server URL implementation of
LDAPServerDescriptor.LdapEntry |
protected class |
LDAPServerDescriptor.LdapEntryDomain
Domain implementation of
LDAPServerDescriptor.LdapEntry using DNS SRV record |
Modifier and Type | Field and Description |
---|---|
String |
bindDn |
String |
bindPassword |
int |
connectionTimeout |
protected boolean |
isDynamicServerList |
protected static String |
LDAP_SCHEME |
protected LinkedHashSet<LDAPServerDescriptor.LdapEntry> |
ldapEntries |
protected static String |
LDAPS_SCHEME |
String |
ldapUrls |
static org.apache.commons.logging.Log |
log |
String |
name |
boolean |
poolingEnabled |
int |
retries |
protected DNSServiceResolver |
srvResolver |
protected boolean |
useSsl |
boolean |
verifyServerCert |
Constructor and Description |
---|
LDAPServerDescriptor() |
Modifier and Type | Method and Description |
---|---|
protected String |
convertDNtoFQDN(String dn)
Convert domain from the ldap form dc=nuxeo,dc=org to the DNS domain name form nuxeo.org
|
protected List<String> |
discoverLdapServers(String domain,
boolean useSsl,
String srvPrefix)
Retrieve server URLs from DNS SRV record
|
String |
getBindDn() |
String |
getBindPassword() |
int |
getConnectionTimeout() |
String |
getLdapUrls() |
String |
getName() |
int |
getRetries() |
protected DNSServiceResolver |
getSRVResolver() |
boolean |
isDynamicServerList() |
boolean |
isPoolingEnabled() |
boolean |
isVerifyServerCert() |
void |
setBindDn(String bindDn) |
void |
setBindPassword(String bindPassword) |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setLdapUrls(LDAPUrlDescriptor[] ldapUrls) |
boolean |
useSsl()
Whether this server descriptor defines a secure ldap connection
|
public static final org.apache.commons.logging.Log log
protected static final String LDAPS_SCHEME
protected static final String LDAP_SCHEME
public int connectionTimeout
public boolean poolingEnabled
public boolean verifyServerCert
public int retries
protected LinkedHashSet<LDAPServerDescriptor.LdapEntry> ldapEntries
protected boolean isDynamicServerList
protected boolean useSsl
protected final DNSServiceResolver srvResolver
public String bindPassword
public LDAPServerDescriptor()
public boolean isDynamicServerList()
public void setBindPassword(String bindPassword)
public String getBindPassword()
public String getLdapUrls()
public void setLdapUrls(LDAPUrlDescriptor[] ldapUrls) throws DirectoryException
DirectoryException
public boolean useSsl()
protected List<String> discoverLdapServers(String domain, boolean useSsl, String srvPrefix) throws NamingException
domain
- The domain to queryuseSsl
- Whether the connection to this domain should be secureNamingException
- if DNS lookup failsprotected String convertDNtoFQDN(String dn) throws DirectoryException
dn
- base DN of the domainDirectoryException
- is the DN is invalidpublic boolean isPoolingEnabled()
public boolean isVerifyServerCert()
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
protected DNSServiceResolver getSRVResolver()
public int getRetries()
Copyright © 2015 Nuxeo SA. All rights reserved.