Win Authentication + Xiaoming access + mode Verification

Source: Internet
Author: User

In the group last night, I saw someone asking me how to perform the login on the Big Brother 11. They felt amazing. I was very busy and didn't have time to help solve the problem. Some time ago, when I saw that the login on November 11 was really good, I thought it was using SSO. At that time, I asked him 11, but he said no. I felt that the login was successful, all the moss website developers needed it. At that time, I really didn't quite understand it. After a lot of effort and high-tech guidance (Huahua X and ppx help), I finally got it done, hope you don't understand it. It's actually very easy to see the demo below ..
This is the coreCodeClick the login code:
Function button1_onclick (){

VaR strname = Document. All ['strname']. value;
VaR strpwd = Document. All ['strpwd']. value;
VaR location = 'HTTP: // LH-vmpc: 4444/classes/lists/studentlist/newform. aspx '; // the page that must be verified in this region. The page is good and requires the permission to pop up the Login Dialog Box.
VaR auth = new activexobject ('msxml2. xmlhttp'); // create 'msxml2. xmlhttp' object
Auth. Open ('post', location, false, strname, strpwd );
Auth. Send ();
Switch (Auth. Status)
{Case 200: window. Location. href = 'HTTP: // LH-vmpc: 4444/home/default. aspx '; // login page
Break;
Case 401: Alert ('commandid or commandid secret ');
Break;
Default: Alert ('Sorry, please try again ');
}

}
Check whether it is very simple. The principle is that you need a verification page to verify it in advance, and then do not need to verify the pull when entering the page ..

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.