We want a wireframe IIS ASP web form that has a single button labelled Get Password and a textbox.
The whole website is configured via web config for basic authentication (only) with no anonymous access.
The button on the form is initially disabled.
On form load the code will check that the username that has already just been authenticated has a non-null AD ExtendedAttribute1.
If the ExtendedAttribute1 is NULL then display in the text box "You are not yet enabled" and leave the Get Password button disabled.
If the ExtendedAttribute1 == "Ext_e" then enable the Get Password button.
When the Get Password is enabled and pressed then the form calls a powershell script called GetPassword.
The GetPassword script accepts the username that was authenticated as a parameter and returns to the form a string (the password).
The returned string is then displayed in the textbox.
I need the ASP code and the Shell Script.