I have FBA (form_based_authentication) on my SP site, so thi first login site is login.aspx. Now there is following problem: users are coming from another site on the sharepoint. Herefor they using some kind of private key. The Public key is on the sharepoint webserver.
What I´m trying to do now is to modify the login.aspx with following example code I get from the creator of this mechanism, but I dont really know where to paste ist:
"<% String ct = Request.Params["ct"];
String sp = Request.Params["sp"];
ctf.TicketEvaluator e = new ctf.TicketEvaluator(Server.MapPath("keys"), 0);
String payload = e.evaluateClassicTicketAsString(ct,sp,300000000,"lohn");
%>
This was your payload: <%= payload %>
"
As a standalone .NET project it works fine, but I don´t have any idea how to put it into login.aspx.
Thanks a lot, fiuman007
Create your own Login.aspx and then configure the web.config to use that page as the default login page for FBA. Never change out of the box Sharepoint files in the sharepoint 12-hive on the harddrive.
ALWAYS create your own custom version and point sharepoint to your customized page. this goes pretty much applies any time you think about modifying sharepoint 12-hive files.
Don't take the easy way out, you will end up in maintenance hell.