English 中文(简体)
Configuring security settings in CC.NET 1.5
原标题:

Below is the ccnet.config file I am having, where I am using the new security features of CC.NET 1.5. Can anybody let me know what I am doing wrong. I have two groups in a DOMAIN and I want to let one group to only view and the other group Full Access.

<cruisecontrol>
  <project>
   <name>Introvert</name> 
      <!-- Security Settings -->
      <security type="defaultProjectSecurity" defaultRight="Deny">
          <permissions>
              <!-- Grant permissions to this project -->
              <rolePermission name="ViewOnly" ref="ViewOnly"/>
              <rolePermission name="FullAccess" ref="FullAccess"/>
          </permissions>
      </security>

  </project>


<!-- Security Settings -->
    <internalSecurity>
        <users>
            <simpleUser name="DOMAINGROUP1*" />
            <simpleUser name="DOMAINGROUP2*" />
        </users>
        <permissions>
            !-- Roles -->
            <rolePermission name="FullAccess" forceBuild="Allow" startProject="Allow" >
                <users>
                    <userName name="DOMAINGROUP1"/>
                </users>         
            </rolePermission>
            <rolePermission name="ViewOnly" forceBuild="Deny" startProject="Deny">
                <users>
                    <userName name="DOMAINGROUP2"/>
                </users>
            </rolePermission>
        </permissions>
    </internalSecurity>
</cruisecontrol>
问题回答
<!-- Security Settings --> 
    <internalSecurity> 
        <users> 
            <simpleUser name="DOMAINGROUP1*" /> 
            <simpleUser name="DOMAINGROUP2*" /> 
        </users> 
        <permissions> 
            **!-- Roles -->** <-- mising a "<", bad formatted XML
            <rolePermission name="FullAccess" forceBuild="Allow" startProject="Allow" > 
                <users> 
                    <userName name="DOMAINGROUP1"/>  <-- shouldn t it be DOMAINGROUP1*?
                </users>          
            </rolePermission> 
            <rolePermission name="ViewOnly" forceBuild="Deny" startProject="Deny"> 
                <users> 
                    <userName name="DOMAINGROUP2"/> 
                </users> 
            </rolePermission> 
        </permissions> 
    </internalSecurity> 




相关问题
Fork process with CC .NET

Is there any way to fork a process inside Cruise Control .NET? I want CC .NET to launch a program when everything s done but right now, CC .NET insists on waiting for the program to close before ...

SVN Externals in a different SCM

At a previous workplace we used svn externals to update dependent projects when a shared component was updated. This made it easy to see anything that those changes broke, as well as update dependent ...

Publishing an ASP.NET Website using buildpublisher

I am using the Cruise Control BuildPublisher task to publish a 2005 ASP.NET website. The Website has no warnings and if I run the Publish WebSite from within the IDE it works fine. When I publish ...

how to turn off a unit test in CPPUnit

I (finally) have my app being unit tested with CPPUnit and I have CruiseControl.NET running the tests and displaying the test output. I have several tests that always fail, however, so CruiseControl ...

Does a 64-bit CruiseControl.NET exist?

Does a 64-bit CruiseControl.NET exist or do I need to install the 32-bit version? Our CI server is Server2003 64-bit. Currently I have been testing on WinXP Pro and no problems. If I do need to run ...

CCNET reports build failure with no reason

We use CCNET 1.4.4.83 on Win 2003 SP2. A few days ago CCNET started to report build failures with no specific reason. The project contains a single exec task which runs build.bat. The batch does all ...

热门标签