Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4273


Ignore:
Timestamp:
08/21/10 01:34:36 (14 years ago)
Author:
swagner
Message:

Reviewed and adapted configuration of deployment service (#1165)

Location:
trunk/sources/HeuristicLab.Services.Deployment/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.Deployment/3.3/Admin.cs

    r3612 r4273  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Runtime.Serialization;
    26 using System.ServiceModel;
    27 using System.Text;
    28 using HeuristicLab.Services.Deployment.DataAccess;
    2922using System.Security.Permissions;
    3023
     
    3225  public class Admin : IAdmin {
    3326    #region IAdmin Members
    34     [PrincipalPermission(SecurityAction.Demand, Role = "Managers")]
     27    [PrincipalPermission(SecurityAction.Demand, Role = "Deployment Administrator")]
    3528    public void DeployProduct(ProductDescription product) {
    3629      var store = new PluginStore();
    3730      store.Persist(product);
    3831    }
    39     [PrincipalPermission(SecurityAction.Demand, Role = "Managers")]
     32    [PrincipalPermission(SecurityAction.Demand, Role = "Deployment Administrator")]
    4033    public void DeleteProduct(ProductDescription product) {
    4134      var store = new PluginStore();
    4235      store.Delete(product);
    4336    }
    44     [PrincipalPermission(SecurityAction.Demand, Role = "Managers")]
     37    [PrincipalPermission(SecurityAction.Demand, Role = "Deployment Administrator")]
    4538    public void DeployPlugin(PluginDescription plugin, byte[] zipFile) {
    4639      var store = new PluginStore();
  • trunk/sources/HeuristicLab.Services.Deployment/3.3/App.config

    r4256 r4273  
    2929    </sources>
    3030    <sharedListeners>
    31       <add initializeData="C:\inetpub\wwwroot\Deployment-3.3\web_messages.svclog"
     31      <add initializeData="C:\inetpub\wwwroot\services.heuristiclab.com\Deployment-3.3\web_messages.svclog"
    3232        type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    3333        name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
    3434        <filter type="" />
    3535      </add>
    36       <add initializeData="C:\inetpub\wwwroot\Deployment-3.3\web_tracelog.svclog"
     36      <add initializeData="C:\inetpub\wwwroot\services.heuristiclab.com\Deployment-3.3\web_tracelog.svclog"
    3737        type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    3838        name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
     
    4444    <remove name="LocalSqlServer" />
    4545    <add connectionString="Server=SERVICES;Database=HeuristicLab.Deployment;Integrated Security=SSPI" name="HeuristicLab.Services.Deployment.DataAccess.Properties.Settings.HeuristicLab_PluginStoreConnectionString" />
    46     <add name="MyLocalSQLServer" connectionString="Initial Catalog=aspnetdb;data source=localhost;Integrated Security=SSPI;" />
     46    <add name="HeuristicLab.Authentication" connectionString="Initial Catalog=HeuristicLab.Authentication;data source=localhost;Integrated Security=SSPI;" />
    4747  </connectionStrings>
    4848  <system.webServer>
     
    5656    <compilation debug="false" />
    5757    <httpRuntime maxRequestLength="2097151" />
    58     <membership defaultProvider="MySqlMembershipProvider">
     58    <membership defaultProvider="AspNetSqlMembershipProvider">
    5959      <providers>
    6060        <clear />
    61         <add name="MySqlMemberShipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="MyLocalSqlServer" enablePasswordReset="false" enablePasswordRetrieval="false" passwordFormat="Hashed" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"  minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="8" />
     61        <add name="AspNetSqlMemberShipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="HeuristicLab.Authentication" applicationName="HeuristicLab.Authentication" enablePasswordReset="false" enablePasswordRetrieval="false" passwordFormat="Hashed" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"  minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="8" />
    6262      </providers>
    6363    </membership>
    6464    <authentication mode="Windows" />
    65     <roleManager enabled="true" defaultProvider="MySqlRoleProvider">
     65    <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
    6666      <providers>
    6767        <clear />
    68         <add name="MySqlRoleProvider" connectionStringName="MyLocalSQLServer" applicationName="HeuristicLab.Deployment" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
     68        <add name="AspNetSqlRoleProvider" connectionStringName="HeuristicLab.Authentication" applicationName="HeuristicLab.Authentication" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    6969      </providers>
    7070    </roleManager>
     
    122122             storeName="My" x509FindType="FindBySubjectName" />
    123123            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
    124              membershipProviderName="MySqlMembershipProvider" />
     124             membershipProviderName="AspNetSqlMembershipProvider" />
    125125          </serviceCredentials>
    126126          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
    127            roleProviderName="MySqlRoleProvider" />
     127           roleProviderName="AspNetSqlRoleProvider" />
    128128        </behavior>
    129129        <behavior name="HeuristicLab.Services.Deployment.AdminBehavior">
     
    134134             storeName="My" x509FindType="FindBySubjectName" />
    135135            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
    136              membershipProviderName="MySqlMembershipProvider" />
     136             membershipProviderName="AspNetSqlMembershipProvider" />
    137137          </serviceCredentials>
    138138          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
    139            roleProviderName="MySqlRoleProvider" />
     139           roleProviderName="AspNetSqlRoleProvider" />
    140140        </behavior>
    141141      </serviceBehaviors>
Note: See TracChangeset for help on using the changeset viewer.