2010-07-07 32 views
3

我相信我只是做了這個錯誤,但對於我的生活,我無法讓事情發揮得很好。我剛剛開始在WS2008 X64 VM上安裝和配置CruiseControl.net。安裝似乎有點有趣,因爲它沒有爲儀表板創建一個IIS站點,我最終只是做了我自己,並指出它:ccnet webdashboard身份驗證表單模式如何設置它的安全

C:\ Program Files文件(x86)\ CruiseControl.NET \ webdashboard

(必須添加iis_iusrs的權限來處理配置文件,不知道實際上有多好)。

無論如何,所以我現在可以查看網絡儀表板並進入管理部分等。最終,我希望此網站可以在線訪問,以方便團隊使用,因此需要鎖定和保護。所以爲此我把下面的章節上的Web.config:

<authentication mode="Forms"> 
     <forms name="appNameAuth" path="/" loginUrl="server/local/SimpleUserLogin.aspx" protection="All" timeout="30"> 
      <credentials passwordFormat="Clear"> 
       <user name="jon" password="test" /> 
       <user name="mike" password="test" /> 
      </credentials> 
     </forms> 
    </authentication> 

如果我把下面的章節中,我可以去登錄屏幕,但即使是在我登錄,可以將永遠被送回它從來沒有看到任何其他網頁:

<authorization>   
     <deny users="?" /> 
    </authorization> 

我也有這個system.web節之外:

<location path="server/local/SimpleUserLogin.aspx"> 
    <system.web> 
     <authorization> 
      <allow users ="*" /> 
     </authorization> 
    </system.web> 
</location> 

我的目標是將所有非登錄用戶的登錄頁面,沒有別的地方,一旦登錄他們可以查看任何頁面。我在這裏是一個保險人嗎?

謝謝

回答

3

好吧,所以發現我對這一切都是錯誤的。由於我使用的1.5有安全的一個新功能:

http://confluence.public.thoughtworks.org/display/CCNET/Configuring+the+Server

上面的鏈接顯示所有與一些例子CONFIGS的設置。基本上我放在的ccnet.config如下:

<internalSecurity> 
<users> 
    <!-- Authenticated users --> 
    <passwordUser name="bob" display="Bob (Team Lead)" password="bob1"/> 
    <passwordUser name="jane" display="Jane (BA)" password="jane2"/> 
    <passwordUser name="john" display="John (QA)" password="john3"/> 
    <passwordUser name="joe" display="Joe (QA)" password="joe4"/> 
    <!-- Generic role --> 
    <simpleUser name="*"/> 
</users> 
<permissions> 
    <!-- Roles --> 
    <rolePermission name="Testers" forceBuild="Allow" defaultRight="Deny"> 
    <users> 
     <userName name="john"/> 
     <userName name="joe"/> 
    </users> 
    </rolePermission> 
    <rolePermission name="Releasers" forceBuild="Allow" defaultRight="Deny"> 
    <users> 
     <userName name="bob"/> 
     <userName name="jane"/> 
    </users> 
    </rolePermission> 
</permissions> 

這個工作非常有位tweeking的。希望它可以幫助別人。

相關問題