Domain User Restricted to Specific Computer Unable to Access Webpage

Federico Maggio 0 Reputation points
2024-11-20T19:09:30.8266667+00:00

A test is being conducted where multiple users are restricted to use specific computers, starting with a test user and test computer. There is a webpage accessible to all domain users that utilizes a script to validate usernames and passwords against Active Directory (AD). The issue arises when the user, initially able to access and log into the webpage, is restricted to a specific computer. After this restriction, the script fails—returning a false result instead of validating the credentials, thus preventing the user from logging in. How can this issue be resolved to allow users to validate on the page while still being restricted to specific computers?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,678 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 34,516 Reputation points
    2024-11-20T22:39:59.09+00:00

    Add the name of the server that hosts the web site to list of computers that the user is allowed to log on to.

    If you don't want to do that then you will likely need to modify how the web page (script?) validates the user. The logon event cannot occur on the web server (you should see a logon failure in the security event log), it needs to occur on the domain controller.

    Here is a good discussion with programming examples about how to validate the users' credentials against Active Directory.

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

    0 comments No comments

  2. Yanhong Liu 12,735 Reputation points Microsoft Vendor
    2024-11-21T08:25:42.81+00:00

    Hello

    Thank you for posting in Q&A forum.

    As your describe,After restricted to a specific computer, the script fails—returning a false.

    So now it's our question. GPO restricted user log through some computer.

    But script need it .

    If we want to fixed it , we can only find out which computer did user or script need to login. and add right. or we can try to change the script to login without throught that computer.

    Best regards

    Yanhong

    =====================================

    If the answer is helpful, please click "Accept answer" and upvote it

    0 comments No comments

Your answer

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