The unique web site name that was established when the site was
created or the IIS metabase path.
<preferredDomainController>
Yes
<sendCrednetials>
Yes
Boolean value to include credentials in the MPS request.
<properties>
No
Collection of the customer's root web properties. Any valid
property setting supported by the IIS provider can be passed
through here. Typical properties would include:
AuthFlags: (optional) Integer. See IIS documentation for legal
values.
AppFriendlyName: (optional) string. Defaults to "Default
Application".
//Get user name and password.
string userName = this.Request.ServerVariables.Get("AUTH_USER");
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD");
//Set credentials.
whWS.PreAuthenticate = true;
whWS.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = whWS.DeleteBusinessUser(orgLdapPath,preferredDomainController);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
this.lblDone.InnerText = successMsg;