I need to add domain headers to the IIS6 metabase (under Windows Server 2003) for a working web application so that IIS serves my app for requests on the new domain (as well as for the original domain).
I've seen examples of this using VBScript from the Windows command line where the user already has admin rights. I've also seen examples of code behind a web form using impersonation to gain elevated security permission (given the necessary id and password). I just can't merge the two without some help, which I will pay for.
I want a component or object I can call from code behind a web page. I'll pass in an admin id and password (so the code can gain the relevant permission), a domain header which is already working in the web application (so the code can get a handle on the web app), and a domain header I want added. I expect to get back some signal confirming that the domain was successfully added (or not).
It would be good to be able to remove a domain header int he same way.
## Deliverables
Complete source code in VB.Net, with comments explaining significant statements. (C# may be accepted if the component can be wrapped ready for use within my VB.Net code behind my web pages.)
All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Windows Server 2003
IIS6
ASP.Net 2.0
VB.Net (Possibly C# subject to agreement)