Package org.nuxeo.ecm.directory.ldap
Class LDAPServerDescriptor
java.lang.Object
org.nuxeo.ecm.directory.ldap.LDAPServerDescriptor
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
Common internal interface for Ldap entriesprotected class
Server URL implementation ofLDAPServerDescriptor.LdapEntry
protected final class
Domain implementation ofLDAPServerDescriptor.LdapEntry
using DNS SRV record -
Field Summary
Modifier and TypeFieldDescriptionint
protected boolean
protected static final String
protected LinkedHashSet<LDAPServerDescriptor.LdapEntry>
protected static final String
boolean
protected int
int
protected final DNSServiceResolver
protected boolean
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Convert domain from the ldap form dc=nuxeo,dc=org to the DNS domain name form nuxeo.orgdiscoverLdapServers
(String domain, boolean useSsl, String srvPrefix) Retrieve server URLs from DNS SRV recordint
getName()
int
int
protected DNSServiceResolver
boolean
boolean
boolean
void
void
setBindPassword
(String bindPassword) void
setConnectionTimeout
(int connectionTimeout) void
setLdapUrls
(LDAPUrlDescriptor[] ldapUrls) boolean
useSsl()
Whether this server descriptor defines a secure ldap connection
-
Field Details
-
LDAPS_SCHEME
- See Also:
-
LDAP_SCHEME
- See Also:
-
name
-
ldapUrls
-
bindDn
-
connectionTimeout
public int connectionTimeout -
poolingEnabled
public boolean poolingEnabled -
verifyServerCert
public boolean verifyServerCert -
retries
public int retries- Since:
- 5.7
-
poolingTimeout
protected int poolingTimeout- Since:
- 10.2
-
ldapEntries
-
isDynamicServerList
protected boolean isDynamicServerList -
useSsl
protected boolean useSsl -
srvResolver
-
bindPassword
-
-
Constructor Details
-
LDAPServerDescriptor
public LDAPServerDescriptor()
-
-
Method Details
-
isDynamicServerList
public boolean isDynamicServerList() -
getName
-
setBindDn
-
getBindDn
-
setBindPassword
-
getBindPassword
-
getLdapUrls
-
setLdapUrls
-
useSsl
public boolean useSsl()Whether this server descriptor defines a secure ldap connection -
discoverLdapServers
protected List<String> discoverLdapServers(String domain, boolean useSsl, String srvPrefix) throws NamingException Retrieve server URLs from DNS SRV record- Parameters:
domain
- The domain to queryuseSsl
- Whether the connection to this domain should be secure- Returns:
- List of servers or empty list
- Throws:
NamingException
- if DNS lookup fails
-
convertDNtoFQDN
Convert domain from the ldap form dc=nuxeo,dc=org to the DNS domain name form nuxeo.org- Parameters:
dn
- base DN of the domain- Returns:
- the FQDN or null is DN is not matching the expected structure
-
isPoolingEnabled
public boolean isPoolingEnabled() -
isVerifyServerCert
public boolean isVerifyServerCert() -
getConnectionTimeout
public int getConnectionTimeout() -
getPoolingTimeout
public int getPoolingTimeout()- Since:
- 10.2
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout) -
getSRVResolver
-
getRetries
public int getRetries()- Since:
- 5.7
-