473,387 Members | 1,504 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,387 software developers and data experts.

Anonymous login and Windows Authentication

G'day -
I'm going insane trying to solve this proble, and would desperately love
some assistance:

My problem:
I am making a web site usable by both internal users and the general public.
Internal users are on a domain, but not necessarily under any known IP
structure. Throughout the web site I want extra buttons/menus enabled if
and only if the user is internal. I want the authentication of internal
users to be done with windows authentication - no logins anywhere...

So, basically, I want Windows Authentication working with the "allow
anonymous users" ticked ON - ie - is there any way of forcing IIS to do a
challenge response and then drop back to anonymous if the windows
authentication fails - at the moment it seems to just default to anonymous,
regardless of whether a user is in the domain?
Nov 17 '05 #1
1 1872
On Wed, 29 Oct 2003 12:03:57 +1100, "Darren Oakey"
<yo*@darrenoakey.info> wrote:
G'day -
I'm going insane trying to solve this proble, and would desperately love
some assistance:

My problem:
I am making a web site usable by both internal users and the general public.
Internal users are on a domain, but not necessarily under any known IP
structure. Throughout the web site I want extra buttons/menus enabled if
and only if the user is internal. I want the authentication of internal
users to be done with windows authentication - no logins anywhere...

So, basically, I want Windows Authentication working with the "allow
anonymous users" ticked ON - ie - is there any way of forcing IIS to do a
challenge response and then drop back to anonymous if the windows
authentication fails - at the moment it seems to just default to anonymous,
regardless of whether a user is in the domain?

I am currently playing around with this (albeit for mac users on an
intranet). My thinking;

The web site is anonymous access.
There is a base page class inherited by every page. This checks for
the existence of a session variable.

if it isn't set then it looks for the operating system (in your case
maybe you can use IP addy to identify external users, I don't see how
your users can not be under some sort of address scheme, the lan
wouldn't work. Either you have private address ranges, which external
users can't have, or you have internet-routable ips, in which case
it's your net block, and external users can't have these.).

If the OS is windows it redirects a page to a windows authentication
only page. The windows user is authenticated against the domain, the
session variable set, and then they are directed back to where they
came from.

If they are a mac user they are redirected to a page (same web site
but NOT inheriting base class). This page accepts a user/password that
I validate against our domain. If correct set the session variable and
redirect back to start.

I know I'm relying on cookies for the session id, browser
type/operating system can be spoofed etc etc, but this is on a
corporate network, so anyone messing around like that is going to get
a email to their manager if caught!

Obviously some holes in an internet situation and not quite your case
but it might inspire you.

PS Have realised a logic flaw - your lan uses internet-routable ip
blocks, that you don't own. Shoot your admins!
Nov 17 '05 #2

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

Similar topics

3
by: Mike Hutton | last post by:
Hi, I have tried to keep things simple. Not simple enough, obviously. I have a set of intranet ASP.NET pages which access a SQL back-end through the normal SQLConnection stuff. I want to use...
0
by: Mike Hutton | last post by:
Hi, I have tried to keep things simple. Not simple enough, obviously. I have a set of intranet ASP.NET pages which access a SQL back-end through the normal SQLConnection stuff. I want to use...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
10
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login...
2
by: Adnan Al-Ghourabi | last post by:
Hi, We have an application running on IIS 6.0, on a windows 2003 box. The back-end database, a SQL Server 2000, runs on anohter server, windows 2000. We have enabled integrated authentication,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.