This section relates to the web services that can be used to configure IISPassword user accounts.
Requirements
The web services require at least ASP.NET version 2.0
Installation
The web service is not installed by default, as it must be installed into IIS as a virtual directory (application).
Configuration
By default the services will not be enabled. You need to setup the remote admin username and password in order to enable them.
Security
When using these web services remotely you should use an https connection to secure your admin username and password. This is not necessary if the web services are only used locally. The other security method is an IP access list, which can be set on the Directory Security tab of the virtual directory's property window.
Usage
You can use the web services by navigating to http(s)://[server-ip]/[alias]/IISPasswordWeb.asmx for instance http://localhost/IISPasswordService/IISPasswordWeb.asmx
After connecting to this, you will see the different actions available. Each require you to enter the server admin username and password.
You can use these web services to update or view a given .htpasswd file. You need to know this in advance before trying to update. It will create a password file on the add user actions, if no file already exists.
You can use these web services from other applications to automate the adding and removal of users for a specific section of your site.
The operations available are AddUser, DeleteUser, ListUsers and UpdateUser.