Changeset 4273 for trunk/sources/HeuristicLab.Services.Deployment
- Timestamp:
- 08/21/10 01:34:36 (14 years ago)
- 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 20 20 #endregion 21 21 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;29 22 using System.Security.Permissions; 30 23 … … 32 25 public class Admin : IAdmin { 33 26 #region IAdmin Members 34 [PrincipalPermission(SecurityAction.Demand, Role = " Managers")]27 [PrincipalPermission(SecurityAction.Demand, Role = "Deployment Administrator")] 35 28 public void DeployProduct(ProductDescription product) { 36 29 var store = new PluginStore(); 37 30 store.Persist(product); 38 31 } 39 [PrincipalPermission(SecurityAction.Demand, Role = " Managers")]32 [PrincipalPermission(SecurityAction.Demand, Role = "Deployment Administrator")] 40 33 public void DeleteProduct(ProductDescription product) { 41 34 var store = new PluginStore(); 42 35 store.Delete(product); 43 36 } 44 [PrincipalPermission(SecurityAction.Demand, Role = " Managers")]37 [PrincipalPermission(SecurityAction.Demand, Role = "Deployment Administrator")] 45 38 public void DeployPlugin(PluginDescription plugin, byte[] zipFile) { 46 39 var store = new PluginStore(); -
trunk/sources/HeuristicLab.Services.Deployment/3.3/App.config
r4256 r4273 29 29 </sources> 30 30 <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" 32 32 type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 33 33 name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp"> 34 34 <filter type="" /> 35 35 </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" 37 37 type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 38 38 name="ServiceModelTraceListener" traceOutputOptions="Timestamp"> … … 44 44 <remove name="LocalSqlServer" /> 45 45 <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;" /> 47 47 </connectionStrings> 48 48 <system.webServer> … … 56 56 <compilation debug="false" /> 57 57 <httpRuntime maxRequestLength="2097151" /> 58 <membership defaultProvider=" MySqlMembershipProvider">58 <membership defaultProvider="AspNetSqlMembershipProvider"> 59 59 <providers> 60 60 <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" /> 62 62 </providers> 63 63 </membership> 64 64 <authentication mode="Windows" /> 65 <roleManager enabled="true" defaultProvider=" MySqlRoleProvider">65 <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider"> 66 66 <providers> 67 67 <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" /> 69 69 </providers> 70 70 </roleManager> … … 122 122 storeName="My" x509FindType="FindBySubjectName" /> 123 123 <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" 124 membershipProviderName=" MySqlMembershipProvider" />124 membershipProviderName="AspNetSqlMembershipProvider" /> 125 125 </serviceCredentials> 126 126 <serviceAuthorization principalPermissionMode="UseAspNetRoles" 127 roleProviderName=" MySqlRoleProvider" />127 roleProviderName="AspNetSqlRoleProvider" /> 128 128 </behavior> 129 129 <behavior name="HeuristicLab.Services.Deployment.AdminBehavior"> … … 134 134 storeName="My" x509FindType="FindBySubjectName" /> 135 135 <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" 136 membershipProviderName=" MySqlMembershipProvider" />136 membershipProviderName="AspNetSqlMembershipProvider" /> 137 137 </serviceCredentials> 138 138 <serviceAuthorization principalPermissionMode="UseAspNetRoles" 139 roleProviderName=" MySqlRoleProvider" />139 roleProviderName="AspNetSqlRoleProvider" /> 140 140 </behavior> 141 141 </serviceBehaviors>
Note: See TracChangeset
for help on using the changeset viewer.