New Login Stragety in SharePoint 2010

       In recent SharePoint 2010, I got a task from my boss that I should enable form based authentication for the SharePoint site. I remember in SP2007, I need to extend a new site from an existing web application on another port and copy a block of code in serveral place. BUT THAT HAS BEEN HISTORY. You can configure in GUI of IIS 8.0 and complete the whole process in several minutes. In this topic, I don't want to talk about how to configure, since personally, I was benefitted from many internet resource of this topic.

 

      After you complete as the the steps on Internet and confirm you can log on by FBA successfully. Well, please try to find an FBA user in Window Authenticated Mode ONLY. You cannot. Ok, that is not a big problem. You can check both Windows Auth and FBA Auth in Security Provider of Admin site. In this way, really, you can pick the users from both authentications. The new problem is you have to face a embrassing login screen that let you choose the auth way! Well, instead of explaing this screen to our stupid users, you can do as following to cope with this.

 

      In my case, on Port 80, windows authentification would be used while on another port 8080, the user must to pick the authentication way.

 

1. In security provider setting, by default, should switch the login page to the custom page.

2. Create a custom page in /_layouts

 

In the aspx file, you just need to point out the assembly your page refer to. Then in the back site,

/_windows/default.aspx is the page which deals with Win Auth, created by Microsoft. Relatively, there is another page which applies FBA Auth... I cannot remember its name, because I cannot get the environment at home......

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值