Revision: 136
http://svn.sourceforge.net/nmailserver/?rev=136&view=rev
Author: tmyroadctfig
Date: 2007-02-05 03:27:37 -0800 (Mon, 05 Feb 2007)
Log Message:
-----------
Updated web.config to allow images and themes to unauthenticated users. Updated to use web.config remoting URL.
Modified Paths:
--------------
NMail/trunk/NMail.Administration.Web/Login.aspx.cs
NMail/trunk/NMail.Administration.Web/web.config
Modified: NMail/trunk/NMail.Administration.Web/Login.aspx.cs
===================================================================
--- NMail/trunk/NMail.Administration.Web/Login.aspx.cs 2007-02-05 11:25:48 UTC (rev 135)
+++ NMail/trunk/NMail.Administration.Web/Login.aspx.cs 2007-02-05 11:27:37 UTC (rev 136)
@@ -29,8 +29,8 @@
protected void Login_Authenticate(object sender, AuthenticateEventArgs e)
{
System.Web.UI.WebControls.Login login = (System.Web.UI.WebControls.Login)this.LoginView.FindControl("Login");
-
- RemoteAdministration ra = (RemoteAdministration)Activator.GetObject(typeof(RemoteAdministration), "tcp://localhost:7877/RemoteAdministration.rem");
+
+ RemoteAdministration ra = new RemoteAdministration();
IAuthenticationToken authToken = ra.NMailServer.AuthenticationProvider.Authenticate(login.UserName, login.Password);
if (authToken != null)
Modified: NMail/trunk/NMail.Administration.Web/web.config
===================================================================
--- NMail/trunk/NMail.Administration.Web/web.config 2007-02-05 11:25:48 UTC (rev 135)
+++ NMail/trunk/NMail.Administration.Web/web.config 2007-02-05 11:27:37 UTC (rev 136)
@@ -52,8 +52,24 @@
</customErrors>
-->
</system.web>
+ <!-- Allow access to the themes without authentication so the login page is nice. -->
+ <location path="App_Themes">
+ <system.web>
+ <authorization>
+ <allow users="*"/>
+ </authorization>
+ </system.web>
+ </location>
+ <!-- Allow access to the images without authentication so the login page is nice. -->
+ <location path="Images">
+ <system.web>
+ <authorization>
+ <allow users="*"/>
+ </authorization>
+ </system.web>
+ </location>
- <!--<system.runtime.remoting>
+ <system.runtime.remoting>
<application>
<client>
<wellknown
@@ -62,5 +78,5 @@
/>
</client>
</application>
- </system.runtime.remoting>-->
+ </system.runtime.remoting>
</configuration>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|