Hello,
Thank you for your question and for reaching out with your question today.
HTTP Error 401 indicates that the request requires user authentication. In your case, when accessing the Web enrollment URL with the DNS name, it prompts for authentication, and even after providing domain admin credentials, it throws the error.
Here are a few steps you can take to troubleshoot and resolve this issue:
- Verify DNS resolution: Ensure that the DNS name you are using is correctly resolving to the IP address of the server hosting the web enrollment site. You can do this by running a ping or nslookup command from the machine where you are accessing the URL.
- Check IIS authentication settings: Open the Internet Information Services (IIS) Manager on the Windows Server 2012 R2 machine. Navigate to the website hosting the web enrollment URL and check the authentication settings. Make sure that "Anonymous Authentication" is enabled and other authentication methods (such as Windows Authentication) are disabled for the virtual directory or application.
- Verify permissions: Ensure that the user account used for anonymous authentication (usually the IUSR account) has appropriate permissions to access the necessary files and folders for the web enrollment site.
- Restart IIS: Try restarting the IIS service on the server. Sometimes, a simple restart can resolve temporary authentication issues.
- Check event logs: Examine the Event Viewer logs on the Windows Server 2012 R2 machine for any related errors or warnings. Look for entries in the Security or Application logs that might provide more details about the authentication failure.
- Verify SSL certificate bindings: Confirm that the SSL certificate used by the web enrollment site is properly bound to the DNS name you are using to access it. Ensure that the certificate is trusted and valid.
- Test from a different machine: Try accessing the web enrollment URL with the DNS name from a different machine to determine if the issue is specific to the client machine or if it persists across multiple systems.
By following these steps, you should be able to diagnose and resolve the HTTP Error 401 you are encountering when accessing the Web enrollment URL with the DNS name.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
If the reply was helpful, please don’t forget to upvote or accept as answer.