Webusers are gone

From OpenCms Wiki
Revision as of 20:18, 27 June 2007 by Pam (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

According to the mailing list:

The concept of Webusers seems to have gone away. (CmsUser.isWebUser()

> gone )

yes, we got finally rid of it.

> What is it supposed to have been replaced by (if anything)
> or are all "external" users now "Guest" ?

normal users without any role.

You can assign users a system role (kind of hard coded group) that gives the user some privileges. Some roles are, for instance, workplace user, account manager, administrator, etc.

see org.opencms.main.OpenCms#getRoleManager() see org.opencms.security.CmsRole

this was in previous versions hard coded in the Administrators, Projectmanagers and Users groups. Now this groups have no special meaning, and these special permissions (and more) are set via roles.

So, an user assigned to no role has no special permissions so it can not access OpenCms' workplace and just work on the frontend. A webuser.

>>  > What is it supposed to have been replaced by (if anything)
>>  > or are all "external" users now "Guest" ?

user.isWebuser() can now be written as: !CmsRoleManager.hasRole(cms, "username", CmsRole.WORKPLACE_USER)

(any user with at least one role has also the wp user role, to be able to login)

> Will this still work based on groups as before ?

yes, as well as with roles. see the default opencms-workplace.xml configuration file.

> We use the OCEE LDAP module - will this be affected ?

yes, of course. your current version will not work at all. a first version of the ldap module for v7 is almost ready, but with no role or ou support. a version with role and/or ou support is planned.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox