By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,617 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,617 IT Pros & Developers. It's quick & easy.

Windows and Forms Authentication at the same time ???

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.