473,406 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Windows and Forms Authentication at the same time ???

Hi,

I am trying to create a site that will be used by both employees AND external users, so both types of users are trying to access the same pages.

In the case of an employee on the intranet,
authentication needs to occur via Windows integrated authentication.
If the user is NOT on the intranet (external user), the user needs to be sent to a Forms login page.

How does one implement this ?

thanks
Chris
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 17 '05 #1
2 1701
What you can do is enable Forms authentication for the intranet and the
extranet users. You can then use the LogonUser() method of the advapi32.dll
in the load of your login page. With an If-statement you can check wether
LogonUser() returns true and redirect the user to the page he/she came from.
When the LogonUser() returns false you do nothing so he/she stays on the
login page and needs to authenticate before continuing.

Gabriel Lozano-Morán

"Chris C" <cm****@yahoo.com> wrote in message
news:ei**************@TK2MSFTNGP12.phx.gbl...
Hi,

I am trying to create a site that will be used by both employees AND
external users, so both types of users are trying to access the same
pages.

In the case of an employee on the intranet,
authentication needs to occur via Windows integrated authentication.
If the user is NOT on the intranet (external user), the user needs to be
sent to a Forms login page.

How does one implement this ?

thanks
Chris
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...

Nov 17 '05 #2
This two Articles should help u out:-

http://msdn.microsoft.com/library/de.../en-us/dnaspp/
html/mixedsecurity.asp

or

http://aspalliance.com/553
Hope it helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #3

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

Similar topics

5
by: Mark | last post by:
Hi, I want to run in my .Net Windows Form this statement System.Diagnostics.Process.Start(strURLCommand) to open the browser and navigate to the specified URL. The URL is an ASP.Net Web...
3
by: Nick | last post by:
I am working a new application...well actually a series of applications for my company. They want internal users to be able to go to a site and everything regarding security is transparent,...
0
by: Chris Mohan | last post by:
Hi, I've configured a web app to use windows authentication and also set up two separate subdirectories to use forms authentication. It appears to work fine but I have never seen a sample that...
4
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
1
by: kazazic | last post by:
Hi, I am building a web-application which should be available for intern and extern users. For intern I would like to use windows authentication and for extern I have to use forms...
3
by: serge calderara | last post by:
Dear all, I clearly underdand the advantage of both type of authentification but is it allowed or possible to set the Authentication mode to Windows and then handle a login form for defined...
1
by: charles | last post by:
Hi all, I have an ASP.Net application that has worked swell on both my development environment and production for some time now. Development is running on a WinXP Pro box, Production is running...
5
by: Jared | last post by:
Hi I am trying to get the Windows username and PC name from the client PC in VB or c#. I am using 'forms' authentication and 'anonymous access' in IIS. Is it possible to get the client PC's...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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,...

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.