Package org.nuxeo.ecm.directory.ldap.dns
Interface DNSServiceResolver
-
- All Known Implementing Classes:
DNSServiceResolverImpl
public interface DNSServiceResolver
Utility to fetch SRV records from a DNS server to get the list of available ldap servers from the DN representation of the domain.See: http://en.wikipedia.org/wiki/SRV_record
- Author:
- Robert Browning
-
-
Field Summary
Fields Modifier and Type Field Description static String
DNS_CACHE_EXPIRY
DNS Cache Expiry propertystatic String
LDAP_SERVICE_PREFIX
Prefix to locate LDAP service on DNS Server.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<DNSServiceEntry>
resolveLDAPDomainServers(String domain)
Returns a list of LDAP servers for the specified domain by performing an SRV DNS lookup on _ldap._tcp.${domain}.List<DNSServiceEntry>
resolveLDAPDomainServers(String domain, String prefix)
Returns a list of LDAP servers for the specified domain by performing an SRV DNS lookup using a custom DNS service prefix.
-
-
-
Field Detail
-
DNS_CACHE_EXPIRY
static final String DNS_CACHE_EXPIRY
DNS Cache Expiry property- See Also:
- Constant Field Values
-
LDAP_SERVICE_PREFIX
static final String LDAP_SERVICE_PREFIX
Prefix to locate LDAP service on DNS Server.service: _ldap
protocol: _tcp
- See Also:
- Constant Field Values
-
-
Method Detail
-
resolveLDAPDomainServers
List<DNSServiceEntry> resolveLDAPDomainServers(String domain) throws NamingException
Returns a list of LDAP servers for the specified domain by performing an SRV DNS lookup on _ldap._tcp.${domain}.- Returns:
- the list of SRV dns entries
- Throws:
NamingException
-
resolveLDAPDomainServers
List<DNSServiceEntry> resolveLDAPDomainServers(String domain, String prefix) throws NamingException
Returns a list of LDAP servers for the specified domain by performing an SRV DNS lookup using a custom DNS service prefix.- Parameters:
prefix
- custom SRV prefix such as "_gc._tcp"- Returns:
- the list of SRV dns entries
- Throws:
NamingException
-
-