Solved

Forms based authentication login with webpart instead of a page?

Posted on 2011-02-11
9
312 Views
Last Modified: 2012-05-11
I read somewhere that to setup forms based authentication, sharepoint would redirect users to a login page, but I want the login box to be visible on the frontpage, if user is logged in, then it should show just something like

You are logged in as: user,


Please guide me in the right direction.
0
Comment
Question by:LuisEstebanValencia
  • 5
  • 4
9 Comments
 
LVL 14

Expert Comment

by:GeorgeGergues
Comment Utility
For this to work ,
You will need to use a login page
[1] Either hosted on a public document library on your public site (then you can use a webpart)
[2] Or hosted on your _Layouts folder under the 12 hive , and that would also work but you cannot use a webpart but you can use standard , ASP logon control.


See the CKS Forms based project on codeplex for more help.


Best of luck.
0
 

Author Comment

by:LuisEstebanValencia
Comment Utility
I am using sharepint 2010 not 2007
0
 
LVL 14

Expert Comment

by:GeorgeGergues
Comment Utility
the same for 2010

instead of the 12 hive , use the 14 hive .

best of luck.
0
 

Author Comment

by:LuisEstebanValencia
Comment Utility
I dont understand this
\
[1] Either hosted on a public document library on your public site (then you can use a webpart


You mean, I first create an application page? then a webpart to show that page on a small box?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 14

Expert Comment

by:GeorgeGergues
Comment Utility
You can start with a site collection of type (Publishing web site )

and that comes with a logon page already.

You will need to enable anonymous access to that site ( SO be carefull ).
0
 

Author Comment

by:LuisEstebanValencia
Comment Utility
You didnt answer me yet, and how can I create  a small login box to put on the homepage? I dont want a separately login page, the customer dont want that

Thanks
0
 
LVL 14

Expert Comment

by:GeorgeGergues
Comment Utility
Here is a sample .

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/login/login.aspx

after you build your custom page.

You will need to configure the Web.config after you create your new page ,under the Authentication section  
point to the new page.

best of luck


0
 

Author Comment

by:LuisEstebanValencia
Comment Utility
Still you havent answered.
I dont want a LOGIN page, I want a login box on the homepage, just as expertsexchange login is on the top right, not on a totally separate page.

I already know how to use the login control since years ago, I just need to know how to make a login box that is not in a completely separate page. it must be on the homepage and when logged in  it must show Welcome User! logged out it must show the user and password textboxes
0
 
LVL 14

Accepted Solution

by:
GeorgeGergues earned 500 total points
Comment Utility
You can read more here
http://www.sharepointfba.com/


But the components you might use (without customization ) is the CKS FBA user controls / webparts

here

http://cks.codeplex.com/

use the FBA code .


Best of luck.

0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now