Trying to make CruiseControl webapps require authentication

Jason Boehle <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user,gmane.spam.detected
Message-ID <C6323F64.54EB%[email protected]>
I am trying to make the CruiseControl webapps require authentication.  I
first added the following to the Dashboard¹s web.xml:

    <security-constraint>
        <web-resource-collection>
            
<web-resource-name>CCDashboardWebResourceCollection</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>user</role-name>
        </auth-constraint>
    </security-constraint>

Then I edited the UserRealms section in jetty.xml:

    <Set name="UserRealms">
      <Array type="org.mortbay.jetty.security.UserRealm">
        <Item>
          <New class="org.mortbay.jetty.security.HashUserRealm">
            <Set name="name">Auth</Set>
            <Set name="config">/work/cc/realm.properties</Set>
            <Set name="refreshInterval">0</Set>
          </New>
        </Item>
      </Array>
    </Set>

The contents of /work/cc/realm.properties is:

  user: password,user

I also added a <dashboard> element to my CC config.xml file:

    <dashboard url="http://user:password@localhost:8080/dashboard"/>

The Dashboard webapp now requires authentication like I wanted, but the
project updates aren¹t getting pushed to the Dashboard.  Another user ran
into the same problem:
http://www.nabble.com/Re%3A-security-constraint-breaks-Dashboard-tt22680743.
html#a22680743.

Any thoughts on how to get this to work?

Thanks!

Jason Boehle
[email protected]

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.