Connecting Tech Pros Worldwide Forums | Help | Site Map

Content Based On User Logon Informaion.

Member
 
Join Date: Nov 2006
Location: Indiana
Posts: 77
#1: Feb 5 '08
Environment:
Windows 2000 Server
IIS 5.0
Access 2003

IIS is set up for basic authentication. This means I can set rights for logged in users using NTFS file permissions. This all works well for simple protection of a few pages. I have several web pages that allow employees from different departments to enter order statuses, deliveries, schedules, etc. The web pages were developed using Access's data access pages. I've done very little with ASP, but it is installed on the Server. Also security is not a big deal here because this is all done on inside and MaBell handles our firewalls.

My next project is to create an ordering system where employees can put in orders to another manufacturing department. This is all a bit more advanced that what I've done so far.
The new Access DB will have a users table. It will have fields for their name, phone number, and a field that is the same as their login user name.
I need to match the user name they login with to the user name in the table so I can deliver content based on the users needs. Once I get the windows authenticated user name matched to a field in a table I can move quickly from there I think.

Thanks,
James

kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Feb 6 '08

re: Content Based On User Logon Informaion.


This article may help:
How To Configure IIS 5.0 Web Site Authentication in Windows 2000
Member
 
Join Date: Nov 2006
Location: Indiana
Posts: 77
#3: Feb 6 '08

re: Content Based On User Logon Informaion.


I have the IIS basic authentication working. I'm wondering how I can get a web page to realize who just logged on to it.
Say I have a user set up on the server named jdoe. When jdoe goes to a web page on the server that requires authentication he puts in his user name and password and the page comes up. I want the page that comes up to identify the user that just logged in (jdoe) and react accordingly. I'm looking for a script that will create a variable and assign the user name, jdoe, to it when the page loads. I do have logging enabled on the server, maybe the script could go to the end of the IIS log and find the user name that way? But if two or more people logged on at the same instant how would the script know which one is the right user?
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#4: Feb 7 '08

re: Content Based On User Logon Informaion.


May depend on which platform you are using, however IIS is just acting as the gatekeeper here. If you want user membership and roles you will need to use a custom database. Of course, if your users have windows NT domain or active directory accounts you would be able access this account information programmatically. HTH.
Reply