@Extension
public static final class ActiveDirectorySecurityRealm.DescriptorImpl
extends hudson.model.Descriptor<hudson.security.SecurityRealm>
| 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)
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 accesssing DNS. |
hudson.util.ListBoxModel |
doFillGroupLookupStrategyItems() |
hudson.util.ListBoxModel |
doFillSizeItems() |
hudson.util.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, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.security.SecurityRealm>public String getHelpFile()
getHelpFile in class hudson.model.Descriptor<hudson.security.SecurityRealm>public boolean canDoNativeAuth()
ActiveDirectoryUnixAuthenticationProviderpublic hudson.util.ListBoxModel doFillSizeItems()
public hudson.util.ListBoxModel doFillTtlItems()
public hudson.util.ListBoxModel doFillGroupLookupStrategyItems()
public DirContext bind(String principalName, String password, List<SocketInfo> ldapServers, Hashtable<String,String> props)
In a real deployment, often there are servers that don't respond or otherwise broken, so try all the servers.
@Deprecated public DirContext bind(String principalName, String password, List<SocketInfo> ldapServers)
In a real deployment, often there are servers that don't respond or otherwise broken, so try all the servers.
public DirContext createDNSLookupContext() throws NamingException
DirContext for accesssing 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–2017. All rights reserved.