Re: Adding login page to cruise control dashboard
Amit Kabra <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Thanks for the reply, but I tried this basic authentication
in 3 ways today.
1) Using jetty that comes with cruise control, but if we
do that, all builds projects becomes inactive. Later I found it is a bug
http://jira.public.thoughtworks.org/browse/CC-919
2) Using apache basic authentication and then connecting
apache and jetty, but it is a tedious method.
3) Nginx level authentication and running cruse control
behind nginx.
Currently, I am using 3rd method , i,e nginx authentication. But
all the above 3 method don't provide functionality of logout once you are
logged in. What you have provided as solution is jettly level authentication
, which will not have logout button, I guess.
So is your method below provide logout functionality or do cruise control
have any such functionality by any chance ( since I didn't find any ) ??
Please reply.
Amit.
On Wed, Oct 20, 2010 at 12:09 AM, Antoine Levy-Lambert <[email protected]>wrote:
> 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]
> > 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
>
>
------------------------------------------------------------------------------
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