[opencms-dev] Password protected areas of the website.

M Butcher mbutcher at grcomputing.net
Wed Aug 13 05:23:01 CEST 2003


Use WebUsers (not to be confused with the WebUser table which is for
storing additional info).

Take a look at the Javadocs for the com.opencms.file.CmsObject
(readWebUser, createWebUser, etc.) and com.opencms.file.CmsUser

In short, a webuser is stored in the same table as regular users, but 1)
does not have permissions to use the CMS and 2) does not have much of
the permissions that regular users have. We use webusers for exactly the
purpose you are talking about.

Now, there are also other ways of achieving the same results with
standard HTTP auth and some tweaks to your code. If webuser won't work,
you may want to look at building an external mechanism.

Hope that helps,

Matt

On Tue, 2003-08-12 at 20:26, Ben Rometsch wrote:
> Hi There,
> 
> My company just won a CMS project with one of our clients, with OpenCMS
> winning the package selection process, so you can expect some traffic on
> this list from our direction for the next few weeks!
> 
> One of the requirements of the website we are building is a "client area".
> This will allow users to be provided with a username and password, enabling
> them to access certain privileged resources on the site. I have had a look
> on opencms.org and the mailing list archives, but have not found anything
> concrete. There was mention of a WebUser table in the mailing list, but the
> search functionality of the mail archive is broken at the moment, so I
> cannot dig any deeper. 
> 
> What would be the best way to approach this? I don't want these clients to
> be able to access the CMS Workplace, I just want them to be able to see
> certain sections of the website that are not available to the general
> public. This may rule out using the User management functionality built into
> OpenCMS, I'm not sure. 
> 
> Thanks,
> Ben Rometsch
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
-- 
M Butcher <mbutcher at grcomputing.net>



More information about the opencms-dev mailing list