詹金斯 - j_acegi_security_check [英] Jenkins - j_acegi_security_check

查看:21
本文介绍了詹金斯 - j_acegi_security_check的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置 jenkins,但无法使身份验证正常工作.我在 CentOS 6.2 上的 Tomcat6 上运行 jenkins.我启用登录,一切正常,直到我尝试登录.在提供我的凭据并按下登录后,tomcat 给我一个错误:

HTTP 状态 404 - 请求的资源 () 不可用."关于

I am trying to setup jenkins, but I cant get the authentication to work. I am running jenkins on Tomcat6 on CentOS 6.2. I enable logging in, and everything goes fine until I try to log in. After giving my credential and pressing login, tomcat gives me a error:

"HTTP Status 404 - The requested resource () is not available." on http://myserver:8080/jenkins/j_acegi_security_check

By googling I can find this: https://issues.jenkins-ci.org/browse/JENKINS-3761

Two suggested fixes I have found:

  • Run jenkins on tomcat instead of running the standalone version - I am already doing so.
  • Edit a file: WEB-INF/security/SecurityFilters.groovy - I tried to edit, but I can't get it to change anything

Is there something I could do to make this work?

解决方案

Spent ages wrestling with this one, make sure a Security Realm is set when you are choosing your Authorization method in Jenkins.

That is, in Manage Jenkins → Configure Global Security select an option in the Security Realm list.

For example:

这篇关于詹金斯 - j_acegi_security_check的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆