@Extension public static final class ActiveDirectorySecurityRealm.DescriptorImpl extends Descriptor<SecurityRealm>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
DirContext |
bind(String principalName,
String password,
List<SocketInfo> ldapServers)
Deprecated.
|
DirContext |
bind(String principalName,
String password,
List<SocketInfo> ldapServers,
Hashtable<String,String> props)
Deprecated.
|
DirContext |
bind(String principalName,
String password,
List<SocketInfo> ldapServers,
Hashtable<String,String> props,
hudson.plugins.active_directory.TlsConfiguration tlsConfiguration)
Binds to the server using the specified username/password.
|
boolean |
canDoNativeAuth()
If true, we can do ADSI/COM based look up that's far more reliable.
|
DirContext |
createDNSLookupContext()
Creates
DirContext for accessing DNS. |
ListBoxModel |
doFillGroupLookupStrategyItems() |
ListBoxModel |
doFillSizeItems() |
ListBoxModel |
doFillTtlItems() |
String |
getDisplayName() |
String |
getHelpFile() |
List<SocketInfo> |
obtainLDAPServer(ActiveDirectoryDomain activeDirectoryDomain) |
List<SocketInfo> |
obtainLDAPServer(DirContext ictx,
String domainName,
String site,
String preferredServers)
Use DNS and obtains the LDAP servers that we should try.
|
List<SocketInfo> |
obtainLDAPServer(String domainName,
String site,
String preferredServer)
Deprecated.
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic String getDisplayName()
getDisplayName in class Descriptor<SecurityRealm>public String getHelpFile()
getHelpFile in class Descriptor<SecurityRealm>public boolean canDoNativeAuth()
ActiveDirectoryUnixAuthenticationProviderpublic ListBoxModel doFillSizeItems()
public ListBoxModel doFillTtlItems()
public ListBoxModel doFillGroupLookupStrategyItems()
@Deprecated public DirContext bind(String principalName, String password, List<SocketInfo> ldapServers, Hashtable<String,String> props) throws NamingException
NamingExceptionpublic DirContext bind(String principalName, String password, List<SocketInfo> ldapServers, Hashtable<String,String> props, hudson.plugins.active_directory.TlsConfiguration tlsConfiguration) throws NamingException
In a real deployment, often there are servers that don't respond or otherwise broken, so try all the servers.
NamingException@Deprecated public DirContext bind(String principalName, String password, List<SocketInfo> ldapServers) throws NamingException
In a real deployment, often there are servers that don't respond or otherwise broken, so try all the servers.
NamingExceptionpublic DirContext createDNSLookupContext() throws NamingException
DirContext for accessing DNS.NamingException@Deprecated public List<SocketInfo> obtainLDAPServer(String domainName, String site, String preferredServer) throws NamingException
NamingExceptionpublic List<SocketInfo> obtainLDAPServer(ActiveDirectoryDomain activeDirectoryDomain) throws NamingException
NamingExceptionpublic List<SocketInfo> obtainLDAPServer(DirContext ictx, String domainName, String site, String preferredServers) throws NamingException
preferredServers - If non-null, these servers are reported instead of doing the discovery.
In previous versions, this was simply added on top of the auto-discovered list, but this option
is useful when you have many domain controllers (because a single mistyped password can cause
an authentication attempt with every listed server, which can lock the user out!) This also
puts this feature in alignment with ActiveDirectorySecurityRealm.DOMAIN_CONTROLLERS, which seems to indicate that
there are users who prefer this behaviour.NamingExceptionCopyright © 2016–2021. All rights reserved.