@Extension
public static final class ActiveDirectorySecurityRealm.DesciprotrImpl
extends hudson.model.Descriptor<hudson.security.SecurityRealm>
| Constructor and Description |
|---|
ActiveDirectorySecurityRealm.DesciprotrImpl() |
| Modifier and Type | Method and Description |
|---|---|
DirContext |
bind(String principalName,
String password,
List<SocketInfo> ldapServers)
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.FormValidation |
doValidate(String domain,
String site,
String bindName,
String bindPassword,
String server) |
String |
getDisplayName() |
String |
getHelpFile() |
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) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPlugin, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMappublic ActiveDirectorySecurityRealm.DesciprotrImpl()
public 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.FormValidation doValidate(@QueryParameter(fixEmpty=true)
String domain,
@QueryParameter(fixEmpty=true)
String site,
@QueryParameter(fixEmpty=true)
String bindName,
@QueryParameter(fixEmpty=true)
String bindPassword,
@QueryParameter(fixEmpty=true)
String server)
throws IOException,
javax.servlet.ServletException,
NamingException
IOExceptionjavax.servlet.ServletExceptionNamingExceptionpublic 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.NamingExceptionpublic List<SocketInfo> obtainLDAPServer(String domainName, String site, String preferredServer) 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 © 2004-2014 Hudson. All Rights Reserved.