Windows authentication asp page

cubangt 1 Reputation point
2022-06-16T20:21:21.167+00:00

We are working on replacing a old VBscript page that is on a system that is being disabled later this year.. the only purpose this existing page serves is to determine where the user is located and redirect them to another page with some predefined url parameters.

We have an IIS server to host this page, we currently use active directory and all we need is a way to have our intranet point to this page, determine what location the user is from and then populate the url parameters before landing on the 2nd page..

Can anyone offer any suggestions or examples on something that would help us accomplish this?

The users can come from 2 places (main office or store location) if they come from our main office, then the parameters are generic, but if they are from a store location, then the parameters are the 3 digit location number.

mypage.asp?loc=044
or
mypage.asp?loc=main

Since they are already on our network they dont need to login to anything, we use this to present them information specific to their location..

Windows development | Internet Information Services
Windows for business | Windows Server | Devices and deployment | Configure application groups
Developer technologies | .NET | Other
Developer technologies | ASP.NET | Other
{count} votes

6 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 82,146 Reputation points Volunteer Moderator
    2022-06-23T20:21:58.477+00:00

    as I said you use DirectorySevices. see this thread for example of validating password, and lookup of ad entry:

    https://stackoverflow.com/questions/290548/validate-a-username-and-password-against-active-directory

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.