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 |
protected int |
poolingTimeout |
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 |
getPoolingTimeout() |
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 int poolingTimeout
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)
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)
dn
- base DN of the domainpublic boolean isPoolingEnabled()
public boolean isVerifyServerCert()
public int getConnectionTimeout()
public int getPoolingTimeout()
public void setConnectionTimeout(int connectionTimeout)
protected DNSServiceResolver getSRVResolver()
public int getRetries()
Copyright © 2018 Nuxeo. All rights reserved.