| java.lang.Object com.sun.jndi.ldap.ServiceLocator
ServiceLocator | class ServiceLocator (Code) | | This class discovers the location of LDAP services by querying DNS.
See http://www.ietf.org/internet-drafts/draft-ietf-ldapext-locate-07.txt
|
Inner Class :static class SrvRecord implements Comparable | |
Method Summary | |
static String[] | getLdapService(String domainName, Hashtable environment) Locates the LDAP service for a given domain.
Queries DNS for a list of LDAP Service Location Records (SRV) for a
given domain name.
Parameters: domainName - A string domain name. Parameters: environment - The possibly null environment of the context. | static String | mapDnToDomainName(String dn) Maps a distinguished name (RFC 2253) to a fully qualified domain name.
Processes a sequence of RDNs having a DC attribute.
The special RDN "DC=." denotes the root of the domain tree. |
getLdapService | static String[] getLdapService(String domainName, Hashtable environment)(Code) | | Locates the LDAP service for a given domain.
Queries DNS for a list of LDAP Service Location Records (SRV) for a
given domain name.
Parameters: domainName - A string domain name. Parameters: environment - The possibly null environment of the context. An ordered list of hostports for the LDAP service or null if the service has not been located. |
mapDnToDomainName | static String mapDnToDomainName(String dn) throws InvalidNameException(Code) | | Maps a distinguished name (RFC 2253) to a fully qualified domain name.
Processes a sequence of RDNs having a DC attribute.
The special RDN "DC=." denotes the root of the domain tree.
Multi-valued RDNs, non-DC attributes, binary-valued attributes and the
RDN "DC=." all reset the domain name and processing continues.
Parameters: dn - A string distinguished name (RFC 2253). A domain name or null if none can be derived. |
|
|