Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2005, 09:03 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default Authentication Error??

Greetings everyone,

  I hope that someone can point me in the right direction to solve this problem that I am having. I am currently developing a very extensive Intranet for the company that I work for and one of the functional requirements is that everytime any user access's any part of the Intranet from any workstation, the Users ID#, resource they requested, IP Address, and the machine they used to access the resource must be logged to a SQL Database.



Here is the problem that I have come across. While on the companies internal network this works flawlessly, however, I took a day away from the office to work at home; I connected to the internal network via VPN and tried accessing the intranet. And I was presented with this error:



System.Net.Sockets.SocketException: The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for

This error is thrown from this line of code:

strHost = System.Net.Dns.GetHostByAddress(Request.ServerVari ables("Remote_Host"))

Normally this might not be a big deal, however, we have about a dozen employees that connect to our network remotely. While I could place this statement in a TRY CATCH block and then use a generic name for the host name when the exception is raised, is there another way to do this? Any help would be greatly appreciated.


"The one language all programmers understand is profanity."
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
 
Old December 20th, 2005, 08:41 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Quote:
quote:Originally posted by dparsons
 ...the Users ID#, resource they requested, IP Address, and the machine they used to access the resource ...

Isn't just about all of this available in the IIS logs?

-Peter
 
Old December 20th, 2005, 09:14 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Quite true, however, for each resource there is also an administrative Access Log page assoicated with it that can be called up to see who has accessed X resource. While the IIS Log will contain the information that I need I have no way to relate the data if I were to parse the file. Let me explain. I utilize a "Tree Style" menu system for the Intranet Navigation, this menu is built dynmaically from a database table that can be edited via an Administration tool. Each page has an associated Page ID so when a user requests X page, when I write to the Access Log I pull the page description from the Menu table.

The IIS log can tell me the pages that are requested but if I wanted to parse the IIS Log into the Access Log I would have to still make a call back to the menu table, compare the page that was called to the all of the pages in menu table to get the approprivate Page description.

If you are from the State's you have at least heard about the HIPPA Regulation, and because I work for a healthcare provider, we have to be very particular in the data that we gather because we must know who is accessing what client information and why.

If it come's down to it, yes I can parse the IIS logs, however would like to use this only
as a last resort.


"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication stu9820 ASP.NET 1.0 and 1.1 Professional 4 December 7th, 2009 05:31 AM
Form-based Authentication Error lionstudio JSP Basics 2 August 4th, 2006 09:05 AM
Authentication speedyH Beginning PHP 1 September 25th, 2004 11:34 AM
Authentication Blueman137 ASP.NET 1.0 and 1.1 Basics 2 March 25th, 2004 08:27 PM
Authentication dbradley ASP.NET 1.0 and 1.1 Basics 2 August 13th, 2003 10:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.