The following is a script for a virtual directory following configuration in IIS
Enable anonymous access is disabled (unchecked).
Integrated Windows authentication is disabled (unchecked)
Basic authentication is enabled (checked)
In the web.config web application (for the same virtual directory above), the setting is as follows:
When I browse the aspx page of the above web application, it asks for a username and password.
The user enters a username and password (in a dialog box that appears as part of Windows authentication).
I can get the username that the user entered if the login was successful.
Is there a way to get the username (this user has logged in), even if the login failed.
Regards, test_win
source
share