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..

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,717 questions
{count} votes

6 answers

Sort by: Most helpful
  1. MotoX80 31,561 Reputation points
    2022-06-17T03:07:51.75+00:00

    What are you replacing the "old VBscript page" with? If the ASP page works, just migrate it to the new server.

    https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/general/asp-support-windows

    Forum users can't possibly know what that page is doing. Don't you have any web developers in your organization who could look at the code and make recommendations?

    0 comments No comments

  2. cubangt 1 Reputation point
    2022-06-17T13:08:14.24+00:00

    So the short story is that the old page was some form of work around that apparently worked and was left in place for years and the person or group that supported it is no longer here and the system they set it up on is going away. They have a ASP page yes, BUT that first ASP page sends users (behind the scenes to a "LotusNotes" form, which is where the vbscript is at and gets the users information before sending them to the final ASP that expects the parameters be passed from that page) ....the developer structure here is not typical, and there is no one that works with ASP, so just trying to help point them in the right direction. Plus whomever comes up with the solution is the one that has to support it, so there are no volunteers

    Since we know high level what the lotusnotes form/vbscript is doing, we just looking for a ASP option that would work...the whole purpose is to take the user to a page that is specific to their location by default and without them having to login or have to chose their location..

    Because every user belongs to specific user groups within AD, figured if ASP could look for 1 specific group, then we would know what location they are from and take them to the page already presenting them with their location information.

    And since the script is pointing to the lotusnotes server and using its variables specific to lotus notes, we cant just copy the code over to asp, it woudl still need to be ported over to use AD instead.


  3. MotoX80 31,561 Reputation points
    2022-06-17T13:37:19.937+00:00

    I don't see that there is a lot that we can help you with. You already recognize that you need to convert the Lotus Notes web page to either ASP or ASPX. Since it's VB script, you should be able to copy most of the core logic. You just need to put in into an ASP format that displays the appropriate HTML output. If the code is reading a Notes database, then you need to migrate the data to SQL.

    Someone has to look at the Notes code to see what it is doing. There has to be some reason that the original developers did not just implement this process entirely in ASP.

    https://www.w3schools.com/asp/asp_examples.asp

    If you don't have any volunteers, then walk into your managers office and tell him that he needs to assign the task to someone to do the conversion. If your organization doesn't have anyone who can do that, then hire an outside consulting firm who can do the conversion.

    0 comments No comments

  4. Bruce (SqlWork.com) 55,041 Reputation points
    2022-06-17T15:53:53.777+00:00

    if I understand correctly, the current page uses the users id to lookup their office in active directly. so you want to create an IIS windows authenticated site and use DirectoryServices to lookup the office.

    https://learn.microsoft.com/en-us/dotnet/api/system.directoryservices?view=dotnet-plat-ext-6.0

    0 comments No comments

  5. cubangt 1 Reputation point
    2022-06-23T20:00:54.22+00:00

    So a little update after meeting with our infrastructure team, seems that they have enough information setup for each user and generic accounts within Active Directory that if possible we can get that information to help with this solution.

    The active directory properties that contain what we can use would be the "UserPrincipleName" and "SamAccountName"

    So i guess my question can be simply broken out into a few things..

    1 - How can an ASP page be written to access and retrieve the above 2 properties from Active Directory?

    I think starting with that would be a great first step.so any suggestions or examples would be great. because with that, i can provide a concept on what can be done.214429-asp-page.jpg

    0 comments No comments