public class ActiveDirectoryLdapDnsProvider
extends com.sun.jndi.ldap.spi.LdapDnsProvider
LdapDnsProvider
for Active Directory. This implementation hooks into Sun's/Oracle's LDAP implementation of
JNDI to autodiscover Active Directory servers via the DC locator process.
This provider receives all environment properties via JNDI. It recognizes the following properties:
net.sf.michaelo.activedirectory.readTimeout
: Read timeout for DC locator requests.
Note: This provider will return the input as-is if nothing can be located in the case that a simple host name has been provided.
Modifier and Type | Field and Description |
---|---|
static String |
READ_TIMEOUT_PROPERTY |
Constructor and Description |
---|
ActiveDirectoryLdapDnsProvider() |
Modifier and Type | Method and Description |
---|---|
Optional<com.sun.jndi.ldap.spi.LdapDnsProviderResult> |
lookupEndpoints(String url,
Map<?,?> env) |
public static final String READ_TIMEOUT_PROPERTY
public Optional<com.sun.jndi.ldap.spi.LdapDnsProviderResult> lookupEndpoints(String url, Map<?,?> env) throws NamingException
lookupEndpoints
in class com.sun.jndi.ldap.spi.LdapDnsProvider
NamingException
Copyright © 2016–2025 Michael Osipov. All rights reserved.