In Exchange Medium, Exchange It includes OWA The client can directly Http: // servername/exchange/Username . The following describes how to integrate the user name and password to log on directly to OWA , Instead Windows Pop-up "Enter network password "Dialog box.
- configured on the server SSL secure channels to enable secure channels; how to configure SSL secure channels, see http://support.microsoft.com/default.aspx? SCID = KB; en-US; 218445
- OWA Windows integrated authentication ", do not set it to form-based authentication. ( usage exchange System Manager);
- UseXMLHTTPObject To send access requests, scriptsCodeAs follows:
// Jeseeqing 2004.10.28
// Exchangeurl: for example https://VirtualAD.ExchangeTest.Com/Exchange/jeseeqing
// Username:User Name
// Password: User Password
Function redirectexchangeurl (exchangeurl, username, password)
{
VaRXmlrequest= New activexobject ("msxml2.xmlhttp ");;
Xmlrequest. Open ("get", exchangeurl, false, username, password );
Auth. Send ();
Switch (Auth. Status)
{
Case 200:
Window. Location. href = exchangeurl;
Break;
Case 401:
Alert ("invalid user or password. ");
Break;
Default:
Alert ("sorry, Exchange Server is busy, please try later! ");
}
}
- Add oneAspxPage, inPage_loadThe script is registered in the event, and the specified parameters are passed in, the script will automatically jump to the specifiedExchangePage.
However, the above Code is a bit secure. If you directly pass the user name and password into the client script, you can viewSource codeYou can obtain the plaintext user name or password, which can be protected by encrypting the user name and password on the server.
Possible problems:
- If the page requested by the client is not added to the trusted site"Permission denied"Error
Solution: add the accessed page to the trusted site
- If the security certificate is not configured, the"Security alert"Dialog box, you must click"Yes"To enter
Solution: refer to my previous articleArticle Http://cnblogs.com/jeseeqing/archive/2004/11/08/61530.html
- " invalid syntax error "
Solution fromMicrosoftDownloadXMLSeeMicrosoft supportArticle:Http://support.microsoft.com/default.aspx? Kbid = 832414
At the time of development, I encountered all the above three problems, most of which were security-related issues.