Re: Adding login page to cruise control dashboard

Antoine Levy-Lambert <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
  you do this by changing the WEB-INF/web.xml which is supplied by the 
application. On top of that I am also using a META-INF/context.xml which 
contains my realm definition. I do not know whether context.xml is 
Tomcat specific or if this is supported by all the java web servers ?

Here  my context.xml

<Context reloadable="true">

<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
        connectionURL="ldap://myactivedirectory:389"
        
connectionName="CN=guestreader,ou=ServiceAccounts,ou=acmesite,dc=acme,dc=com" 

        connectionPassword="secret"
        userBase="ou=acmesite,dc=acme,DC=com"
        userSubtree="true"
        userSearch="(sAMAccountName={0})"
        referrals="follow"
        roleBase="OU=Groups,OU=acmesite,DC=acme,DC=com"
        roleSubtree="true"
        roleName="cn"
        roleSearch="(member={0})"/>
<Parameter name="logDir" value="C:\Program Files\CruiseControl\logs"/>

</Context>


and what I added to the end of the web.xml

<security-constraint>
<web-resource-collection>
<web-resource-name>cruisecontrol</web-resource-name>
<description> accessible by authenticated users of the tomcat 
role</description>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<description>These roles are allowed access</description>
<role-name>deployment</role-name>
<role-name>software logistics</role-name>
<role-name>operations</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>CruiseControl Build Server</realm-name>
</login-config>
<security-role>
<description>These roles are allowed access</description>
<role-name>deployment</role-name>
</security-role>
<security-role>
<description>These roles are allowed access</description>
<role-name>software logistics</role-name>
</security-role>
<security-role>
<description>These roles are allowed access</description>
<role-name>operations</role-name>
</security-role>


With this setup, people who are in the deployment or "software 
logistics" or "operations" groups in Active Directory will be allowed to 
login to CruiseControl.

Hopes this helps,

Regards,

Antoine


On 10/19/2010 1:36 AM, Amit Kabra wrote:
> I guess cruise control don't even provide this functionality of login 
> page for dashboard ...
> I never tried basic-auth protection, how to do that ??
>
>
>
>
> On Mon, Oct 18, 2010 at 8:10 PM, Doug Breaux 
> <[email protected] <mailto:[email protected]>> 
> wrote:
>
>     I haven't done this, but it seems the easiest approach would be to
>     just add HTTP basic-auth protection?
>
>
>     On 10/18/2010 9:28 AM, Amit Kabra wrote:
>>     Hello,
>>
>>                   I have setup cruise control and it is  working in
>>     all  respect except that it don't have login page for dashboard.
>>     How can we set a login page for cruise contol dashboard. I have
>>     search enough and didn't find any solution. Please reply, if
>>     anyone can help.
>>
>>
>>     Regards,
>>     Amit Kabra
>>
>>

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev

_______________________________________________
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.