[opencms-dev] (no subject)

Michael Goodwin mgoodwin at amadeus.net
Thu Jul 15 12:31:01 CEST 2004





You need to write a jsp page which does the logging in. See the javadocs
for CmsObject, but something like

CmsUser user = cmso.loginUser(username,password);

This sets the user for the session.


Then to get the redirect you have to find in the properties file, turn off
basic http authentication and specify a login page. The page should also
get passed the paremeter "requestResource" in the event that a user is
redirected to your login page.




From:  "Oliver Pereira" <Oliver.Pereira at dna.co.uk>@opencms.org  on
       15/07/2004 10:49

Please respond to opencms-dev at opencms.org

Sent by:    opencms-dev-admin at opencms.org


                                                                          
 To:    <opencms-dev at opencms.org>                                         
                                                                          
                                                                          
 cc:                                                                      
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          
 Subjec [opencms-dev] (no subject)                                        
 t:                                                                       
                                                                          
                                                                          
                                                                          





Hi,


This may have been asked a couple of times before, but I have not seen any
solution to this.


I would like to use basic forms based authentication for some parts of the
site so that when the user visits that part of the site a login is required
to access that area.


This will not be a exported site but running dynamically in opencms.


Something like:


1) User requests page within a folder in the protected area.
2) User is redirected to login page within opencms site.
3) On Login, the page is displayed to the user.
4) On Failure the user is taken back either to the previous page or to the
home page


I am using: OpenCms 5.3.6x and Tomcat 4.1.24


Regards,


Oliver






More information about the opencms-dev mailing list