Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Commit

Permalink
[SECURITY-1067]
Browse files Browse the repository at this point in the history
  • Loading branch information
martinspielmann authored and daniel-beck committed Sep 13, 2018
1 parent ca1ca53 commit a93d0fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/de/theit/jenkins/crowd/CrowdSecurityRealm.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.verb.POST;
import org.springframework.dao.DataAccessException;
import org.springframework.dao.DataRetrievalFailureException;

Expand Down Expand Up @@ -571,6 +572,7 @@ public FormValidation doCheckSessionValidationInterval(
* @return Indicates the outcome of the validation. This is sent to the
* browser.
*/
@POST
public FormValidation doTestConnection(@QueryParameter String url, @QueryParameter String applicationName,
@QueryParameter String password, @QueryParameter String group, @QueryParameter boolean useSSO,
@QueryParameter String cookieDomain, @QueryParameter int sessionValidationInterval,
Expand All @@ -581,7 +583,7 @@ public FormValidation doTestConnection(@QueryParameter String url, @QueryParamet
{

// Logger log = Logger.getLogger(getClass().getName());

Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER);
CrowdConfigurationService tConfiguration = new CrowdConfigurationService(
url, applicationName, password, sessionValidationInterval,
useSSO, cookieDomain, cookieTokenkey, useProxy, httpProxyHost, httpProxyPort, httpProxyUsername,
Expand Down

0 comments on commit a93d0fa

Please # to comment.