473,722 Members | 2,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Two different loginURLs in <authentication >

Hajo,
I know that I can not have two
different <authenicatio n> sections in ONE application. But I need to
define two different login pages for two different subdirectories.
Is it any workaround that allows me to do it using Forms authenication?

thanks in advance

Gawel
Nov 18 '05 #1
4 1958
My impression of web.config files is that properties can be overridden
in subdirectories. I have taken advantage of this feature for certain
situations. For example, with an Intranet that I developed users see a
boilerplate Intranet error page when an error occurs. Some content
writers need to prepare .aspx pages from time to time, referencing user
controls etc. If all they saw was the boilerplate error message if their
include paths were off for their <%@ Register tags, they would not get
as far as fast developing their content. So for their staging area there
is a web.config that shows them full error messages.

Just for the sake of it try adding a web.config in your subdirectory and
alter the forms authentication path to see what happens.
Gawel wrote:
Hajo,
I know that I can not have two
different <authenicatio n> sections in ONE application. But I need to
define two different login pages for two different subdirectories.
Is it any workaround that allows me to do it using Forms authenication?

thanks in advance

Gawel


Nov 18 '05 #2
Just for the sake of it try adding a web.config in your subdirectory and
alter the forms authentication path to see what happens.


hajo,
thanks for resposne, can you explain what does
it mean "he forms authentication path"?

Gawel

Nov 18 '05 #3
In your subdirectory web.config, try changing this:

<authenticati on mode="Forms">
<forms ... loginUrl="YOUR NEW URL HERE" protection="All "
timeout="600000 00"
requireSSL="fal se">
</forms>
</authentication>

Shan

Gawel wrote:
Just for the sake of it try adding a web.config in your subdirectory
and alter the forms authentication path to see what happens.

hajo,
thanks for resposne, can you explain what does
it mean "he forms authentication path"?

Gawel


Nov 18 '05 #4
Shan Plourde wrote:
In your subdirectory web.config, try changing this:

<authenticati on mode="Forms">
<forms ... loginUrl="YOUR NEW URL HERE" protection="All "
timeout="600000 00"
requireSSL="fal se">
</forms>
</authentication>


Hajo,
I can not have such a section in web.config that is in
subdirectory. This section can be declared only in application
level :(. That's way I asked about workaround

gawel
Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5869
by: Pete Mahoney | last post by:
I am trying to 'POST' values from a form in a ASP file that has anonymous access permissions. I can retrieve the form values when I redirect to this page from another page which has also has anonymous access permissions. However, if I change the page from which I'm redirecting to use NT authentication, then I cannot retrieve the values of the form fields using POST method. Specifically, if the following file (MyStart.asp) has anonymous
5
2390
by: Matthew Louden | last post by:
I wrote ASP.NET application that access SQL Server database. When I run the application, it yields "Login failed for user '<COMPUTER_NAME>\ASPNET'" error message. I then did the following, but still didn't work. Any ideas?? 1. In IIS console, right click the virtual directory 2. click directory security tab 3. click edit button on anonymous access 4. click browse button
1
1814
by: Anton ml. Vaheie | last post by:
How do I convince (what I have to set in asp.net server) that my program that is using <authentication mode="Forms" /> can write to, copy, etc. files in directories on local disk? I have given full permisions to local directory (IUSR_Machinename user), but I still get: "System.UnauthorizedAccessException: Access to the path "D:\Inetpub\wwwroot\". Any idea how to change it?
3
2567
by: T. Regan | last post by:
I have a test app where I have Forms Authentication set up. When I build and run the app as http://localhost/testapp/login.aspx, it runs correctly. I get the login prompt and the proper redirection to the secured page. When I run the app as http://<RealMachineName>/testapp/login.aspx, I get the login page, but after logging in, I stay on the login page. The URL address shows...
2
2415
by: cmrchs | last post by:
Hi, I'm having problems with the interpretation of roles in the <authentication> entries in web.config Scenario : I'm logging on as 'Administrator' and try to access a site for which the IIS-authentication method is set to 'Integrated Windows' only Following are the web.config-entries of the site : <authentication mode="Windows" /> <identity impersonate="true" /> <authorization>
7
1624
by: RC | last post by:
Dear Dudes, I post this in multiple groups for opening brain storm. Sometime I need to query the data from database server then display them into user's browser in HTML <table>. But if the <table> is very LARGE, let's say 20 columns, hundreds rows. Usually you have header <th> tags on 1st (top) row and 1st (most left) column. For a such LARGE <table>. you really want:
2
1408
by: gndzkdr | last post by:
hi all, i m new on Sql and i have a project related to C# and Sql. i have to do a project which must work on LAN, and there must be only one database file on main computer(Server Computer) and other computers(client computers) must connect database on main computer. i m preparing my project on my personal computer(it is called MYCOMP) and doing connection with wizard. then it doesnt work on other
1
28058
by: reeferz | last post by:
hi all, i created the most basic webservice the one that vs 2005 creates for u with the hello world method, and decided to post it onto my website.... however i keep getting this error : <authentication mode="Windows" /> more detail: Server Error in '/' Application.
1
4156
by: inungh | last post by:
I tried to place a grid view on my design view and connect to new data source to local SQL Express server Northwind database. I got error message on line 80 <authentication mode="Windows"/> The full error message is following: D:\websites\begaspnet2db\web.config(80): Build (web): It is an error to use a section registered as allowDefinition='MachineToApplication'
0
9384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9238
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9157
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4502
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.