RDBMSRealm, everyone group, guest user

Hi folks, I'm having some fun with the rdbms realm lately and have a few
questions.
We're using the RDBMSRealm example with form based auth under WLS 5.1 SP 9 and
have the following in web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>All Pages</web-resource-name>
     <description>These pages are only accessible by all authorised xyz users.</description>
<url-pattern>*</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>These are the roles that have access</description>
<role-name>
xyz
</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<description>All application users</description>
<role-name>
xyz
</role-name>
</security-role>
which basically says that every page in the web-app requires a user to be in the
xyz role and does seem to work fine.
Now, what I'd like to do is to allow everyone to access one particular page
within the application (that is, this page does not require the xyz role). So
something like the following would be great.
<security-constraint>
<web-resource-collection>
<web-resource-name>Some Particular Page</web-resource-name>
     <description>This page is accessible to everyeone.</description>
<url-pattern>/particular/page.jsp</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>everyone can get at this page.</description>
<role-name>everyone</role-name>
</auth-constraint>
</security-constraint>
However, this doesn't seem to work, I get redirected to the form based login
page and once I've logged in can get to the page that I'm hoping shouldn't
require a logged in user.
So I'm wondering about the xml syntax and semantics.
- What are the rules around specific and general mappings, like will a
more specific mapping be used before falling back to the general mapping?
- Are the mappings applied in order (first to last) and the first match
taken?
- Are the rules according to section 10 of the servlet spec applicable here?
Now my problem might also be the RDBMSRealm its self -- I'm also having some
problems with the everyone group and the guest user. If I remove the first
constraint above and only include the /particular/page.jsp constraint to the
everyone group things still don't seem to work right.
I can see the realm call getGroup("everyone") and getUser("guest) but both
calls return null, since these principals are not in our database
tables. However, if I hit http://localhost:7001/AdminRealm I do see a list of
all groups that our RDBMSRealm knows about and I also see the everyone group
which contains system and guest users and so I have more questions.
- Does CachingRealm fall back to the standard properties realm if it gets nulls
from the RDBMSDelegate?
- Does the everyone group include unauthenticated users (i.e. guest) as I'm
hoping?
I've tried adding an instance of weblogic.security.acl.Everyone to my
RDBMSDelegate class and checking if the call to getGroup is looking for
"everyone" in which case I return this instance but this doesn't seem to do
anything either. I also tried adding this everyone group to the list returned
by getGroups but that didn't help and I carried the idea through to getUser and
getUsers with a guest user but again no luck. I'm always forced to authenticate
before I can get to the page that should allow anyone (everyone) to see it.
Any help, ideas, advice, beer, etc. would be much appreciated!
Thanks,
Derek

THorner <[email protected]> writes:
RDBMSRealm, everyone group, guest user
Update-I've got it working.
AS well as the isMember change mentioned below I altered getPrincipal
for both the RDBMSRealm class
if(name.equals("guest")){return createUser("guest","guest");}
if(name.equals("everyone")){return new Everyone(this);}
and RDBMSDelegate
if(name.equals("guest")){return realm.createUser("guest","guest");}
if(name.equals("everyone")){return new
weblogic.security.acl.Everyone(realm);}
did something to RDBMSUser so that guest always authenticates
(alternatively you could put the guest user on the database, surely?)I did see various examples of the guest and everyone additions to the realm
code, but I also read some stuff that indicated that if the rdbms realm returns
null for these requests then the caching realm should fall back to the standard
properties realm which does have the guest user and everyone group defined.
With the debugging turned on this does seem to be what it does and the
guest/everyone code doesn't seem to be needed. I also checked the
http://localhost:7001/AdminRealm servlet and did see the everyone group with
system and guest users as part of it.
>
Allow guest access to the file servlet (otherwise they can't be sent any
HTML pages - my best guess would be that this is your problem).This was probably part of the problem, judging by the messages from the realm
debugging.
Also I altered weblogicURL.policy to allow 'everyone' access to the page
that was to be unrestricted - so I guess you should set
I hope this helps, if not (and you haven't already) turn on RDBMSRealm
debugging - eventually I found the information useful (in that it tends
to tell you what it has last been looking for, and the methods used)In the end, I found that specifying that the everyone group is required for a
particular resource didn't seem to work. Instead I protected the majority of my
application with a set of rules and left all other pages without any matching
rules and the guest user then seems to work ok.
The servlet 2.3 spec has an addition to the <role-name> tag which allows a * to
indicate all roles but this isn't in the 2.2 spec.
Thanks for the help!
Cheers,
Derek
>
terry
-----Original Message-----
From: THorner
I am working on something similar (although not in a war),
which isn't working yet, but I can tell you a couple of
things that I have come across.
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Derek
Scherger
Posted At: Mon 04 June 2001 22:13
Posted To: weblogic.developer.interest.security
Conversation: RDBMSRealm, everyone group, guest user
Subject: RDBMSRealm, everyone group, guest user
Hi folks, I'm having some fun with the rdbms realm lately and
have a few
questions.
We're using the RDBMSRealm example with form based auth under
WLS 5.1 SP 9 and
have the following in web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>All Pages</web-resource-name>
     <description>These pages are only accessible by all
authorised xyz users.</description>
<url-pattern>*</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>These are the roles that have
access</description>
<role-name>
xyz
</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<description>All application users</description>
<role-name>
xyz
</role-name>
</security-role>
which basically says that every page in the web-app requires
a user to be in the
xyz role and does seem to work fine.
Now, what I'd like to do is to allow everyone to access one
particular page
within the application (that is, this page does not require
the xyz role). So
something like the following would be great.
<security-constraint>
<web-resource-collection>
<web-resource-name>Some Particular Page</web-resource-name>
     <description>This page is accessible to
everyeone.</description>
<url-pattern>/particular/page.jsp</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>everyone can get at this page.</description>
<role-name>everyone</role-name>
</auth-constraint>
</security-constraint>
However, this doesn't seem to work, I get redirected to the
form based login
page and once I've logged in can get to the page that I'm
hoping shouldn't
require a logged in user.
So I'm wondering about the xml syntax and semantics.
- What are the rules around specific and general mappings, like will a
more specific mapping be used before falling back to the
general mapping?
- Are the mappings applied in order (first to last) and the
first match
taken?
- Are the rules according to section 10 of the servlet spec
applicable here?
Now my problem might also be the RDBMSRealm its self -- I'm
also having some
problems with the everyone group and the guest user. If I
remove the first
constraint above and only include the /particular/page.jsp
constraint to the
everyone group things still don't seem to work right.
I can see the realm call getGroup("everyone") and
getUser("guest) but both
calls return null, since these principals are not in our database
tables. However, if I hit http://localhost:7001/AdminRealm I
do see a list of
all groups that our RDBMSRealm knows about and I also see the
everyone group
which contains system and guest users and so I have more questions.
- Does CachingRealm fall back to the standard properties
realm if it gets nulls
from the RDBMSDelegate?
- Does the everyone group include unauthenticated users (i.e.
guest) as I'm
hoping?
I've tried adding an instance of weblogic.security.acl.Everyone to my
RDBMSDelegate class and checking if the call to getGroup is
looking for
"everyone" in which case I return this instance but this
doesn't seem to do
anything either. I also tried adding this everyone group to
the list returned
by getGroups but that didn't help and I carried the idea
through to getUser and
getUsers with a guest user but again no luck. I'm always
forced to authenticate
before I can get to the page that should allow anyone
(everyone) to see it.
Any help, ideas, advice, beer, etc. would be much appreciated!
Thanks,
Derek

Similar Messages

  • Changing permission on "Everyone" group on "Users" folder to "No Access"

    Hello Everyone,
    I need help on changing permission on "Everyone" group on "Users" folder to "No Access" using a Terminal command line.
    What i'm trying to do is assign "Everyone" group to "No Access" on "User" folder to restrict other users from going to users home folder on the computer.
    Right  now, when a user login he/she has the ability to view files that are not located in the documents folder
    PS
    Network is configured for OD/AD, home folder is located on Dell Server
    Appreciate the help, Thanks very much

    You are running Oracle Linux and want to use a network volume provided by Windows 2008 to install Oracle Database.
    Your problem is that you cannot set appropriate privileges on the mounted volume to perform the installation.
    Is this correct?
    If yes, then as far as I know, Windows file sharing is not support, even if you fix the permission issues. Your problem is the file system, which won't be Linux ext3. NFS might be supported, but I think it is not the best idea. Have you looked into iSCSI? It will allow you to mount remote disks using SCSI protocol. You could do pretty much everything with such a mounted disk that you can do with a locally attached drive, including initializing, but instead of using the local bus, it will use the TCP/IP network.
    How to setup iSCSI on Windows Server 2008 (storage server)
    http://technet.microsoft.com/en-us/edge/Video/ff710316
    CentOS / Red Hat Linux: Install and manage iSCSI Volume
    http://www.cyberciti.biz/tips/rhel-centos-fedora-linux-iscsi-howto.html
    Edited by: Dude on Jun 23, 2011 12:08 PM

  • How to disable guest user account on iMAC

    I upgraded to Lion and now I have a guest user account on the log in screen. I want to disable this account. How do I get rid of it?

    System Preferences > Users & Groups > Guest User (you may need to authenticate) and uncheck "Allow guests to log in to this computer".

  • Difference between Domain\Domain Users and Everyone Group in SharePoint

    Hi,
    In SharePoint 2013, is Everyone Group an AD group ? Please help with details.
    Thanks
    srabon

    Hi All,
    Domain Users, Authenticated Users, or Everyone
    Domain Users
    The Domain Users is the only real group of the 3 listed above.  By that I mean you can add and remove members from this group.  Domain Users is a Global Group in the domain, and it can only contain users that are members of same domain the Domain
    Users group resides in.  By default all users created in the domain are automatically members of this group.  However, the  default Guest account in the domain is NOT a member of Domain Users, instead it is placed in the Domain Guest group.
    Because Domain Users is generally considered the most secure group of the three listed above.
    Authenticated Users
    Authenticated Users was first introduced in Windows NT 4.0 SP3.  This is a built-in group and cannot be modified.  The Authenticated Users group contains users who have authenticated to the domain or a domain that is trusted by the computer domain. 
    Authenticated Users contains all manually created user accounts in all trusted domains regardless of whether they are a member of the Domain Users group or not.  Authenticated Users specifically does not contain the built-in Guest account, but will contain
    other users created and added to Domain Guests.The Authenticated Users group also includes the local computer account (computername$) and the built-in SYSTEM account. 
    Everyone group
    The Everyone group includes all members of the Domain Users, Authenticated Users group as well as the built-in Guest account, and several other Built-in security identifiers like SERVICE, LOCAL_SERVICE, NETWORK_SERVICE, etc.  NULL session connections (aka
    anonymous logon) used to be included in this group but were removed in Windows 2003.  This is a built-in group that cannot be modified.Because the Everyone group contains the Guest account, and several other Built-in security identifiers like SERVICE,
    LOCAL_SERVICE, NETWORK_SERVICE, etc. is generally considered the least secure of the three groups.
    Short Answer is there isn't much to worry about unless folks are logging I with a guest account or you have removed a bunch of folks from the domain users group
    -Ivan

  • Users added to Profile Manager not showing up in everyone group

    So profile manager was working quite well until I made a change to the workgroup group.
    I removed the password policy from the workgroup group and added a new group for the password policy so we could essentially still manage non user assigned iOS devices.
    Now when I add a new user to the workgroup group on the server I have them login to the mydevices site so we can enroll the device and they can login but are immediately presented with:
    "You do not have permission to access the page you were looking for. Contact your system administrator."
    In troubleshooting the issue I noticed that new users being added are not showing up the in the everyone group which is preventing the users from having proper access. Prior to all this I could add a user and they would show up in everyone as intended.
    Any thoughts?

    I'm not sure if this is the same issue, but I have a user in Server.app that is not showing up in Users group. She is listed in her sub-group, but I cannot add devices to her account. When I click on the arrow next to her name in the sub-group, it takes me to the Users list to the top user.
    Any thoughts?

  • Not inheriting group membership / users not showing in workgroup "Everyone"

    Hi,
    In the new OS X Lion Server Profile Manager, there is a default group called Everyone, that should contain all users.
    However, it only shows the first user I created (UID 1025).
    Users created after that are not automatically added to the group Everyone
    I can assign these newer users to a Workgroup I created myself, but since they are absent in the Everyone group, I cannot assign devices to these users, and thus not properly manage these users and their devices.
    Using Workgroup Manager to check on the membership of the users with UID>1025 I see that the inherited workgroup membership of Users (GID 403) is missing.
    How can fix a problem with the inherited group membership of users?
    Thanks in advance.
      Patrick

    did you configure the people picker
    http://technet.microsoft.com/en-us/library/gg602075(d=lightweight,v=office.14).aspx#section4
    http://jaredmatfess.wordpress.com/2013/02/26/sharepoint-2010-people-picker-is-having-a-hard-time-finding-people/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog
    No need to configure the People Picker in a full trust between domains of the same forest.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • OS X 10.9.2 Guest User Account keeps showing up even though it is listed as 'off' in Users & Groups

    Hi all,
    This problem just happened these last 2 days, and I believe it started after the itunes 11.2 and camera raw 11.2 update on 16 May 2014.
    The "guest user" login keeps appearing in the Login screen, i've checked the status of it in my 'System Preference / User & Groups' in 2 Admin accounts, both lists it as 'off'.
    I've tried enabling it, restarting, disabling it and restarting my macbook pro, but the guest user account just stays on the login screen.
    Could someone please help me out on this? thank you for your kind advice and help!

    Hi Esquared,
    Nope, Find My Mac is not activated under my iCloud settings. Checked both Admin accounts, both are unchecked.
    I did see this article before, but some of the steps, specifically the one in System Preferences / Security & Privcy / General is not applicable for OS Mavericks.
    Thank you for the tip, but sadly the guest user account somehow is still active.

  • Deleting user from Everyone group

    Hi,
    Has anyone done this?
    We have a business need to delete a user from the "Portal Everyone" group and am not able to do it.
    I have tried to pull up the everyone group to list the users in the said group and the "Group" iview times out and also the number of users maxes out the cache.
    Further the users in this could roughly total to 40,000+.
    Thoughts I have range from the following:
    Is there any tweak i can do the server's cache settings to handle that high a volume of users? What/where would I be doing some like that?
    Should I be doing this programatically perhaps?
    Any light on the matter would be grealty appreciated.
    Lastly is there a easier solution I am missing?
    thanx,
    ray

    Hi Ray,
    > Should I be doing this programatically perhaps?
    This maybe would be the fastest solution. Should be something about a five-liner. Use https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/user management engine - version 4.0/com/sap/security/api/igroup.html#removeusermember(java.lang.String) and save/commit.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Groups Authenticated users & Everyone difference

    Hi Everyone,
    There are builtin groups Authenticated users & Everyone.  when i check for some iviews, folders, their permissions are set to Everyone with enduser as checked and for some objects, the permissions are given as Authenticated users group with enduser as checked. 
    What is the difference between these two.  All the ESS/MSS objects has given the permission as Authenticated users group with Enduser checked. 
    anyone clarify this doubt.
    Regards,
    EP.

    Hi,
    There are two kinds of Properties for an Portal Content Object,
    1. Administrator Permission- create/modify/read/ permissions etc privilatges on the object. These are Design Time Permissions
    2. EndUser- When a user is assigned a end User Permission, he can view the content at runtime i.e. If the iView is assigned to the User (via iView assigned to a role, and role has an entry point and assigned to the user) and he has only the end user Permission, then he can login and view the runtime content only. A kind of end user privilage.
    Now,
    1. Authenticated Users: the Users who have entered their logon info/ used a certificate to Login to the Portal/ to say users who have authenticated themselves to Portal  are the Authenticated Users. The User Group is named so.
    2. Everyone- All the Users- Authenticated or not fall in this group. Sometimes Content can be accessed directly with a URL without any Logon.
    Based on who can access the End user Content, the End User permission is provided in Permission settings, i.e.in the ACL of that Object.
    Hope this answers your question. Reward points for Helpful answers.
    Thanks,
    Vamshi

  • Everyone Group vs. Authenticated Users Group

    Two questions.....
    1.) What is the difference between the "Everyone" group and the "Authenticated Users" group.
    2) We are starting to use some new BI content (NW04s) in our federated portal and have found that we have to grant permissions to "Authenticated Users" instead of the "Everyone" group. Any ideas why?
    Regards,
    Diane

    Diane,
    The following asnwer is not a SAP answer but I did a quick check on our system and:
    1. the difference between the group Everyone and Authenticated users is exactly 1 user assignment.. I looked further and see that it has to do with the J2EE_GUEST user. this user is member of the group Everyone but NOT of the group Authenticated users.
    2. Can not give you a sure anser on this question but maybe it has to do with security that this is needed?!?!\
    Hopfully another SDN community member can fill me in here...
    Good luck and Kind Regards,
    Benjamin Houttuin

  • How do you delete a guest user account from the users&groups pane?

    could anyone help with giving a tip on how to  delete a guest user account from the users&groups pane in os-x 10.7 ? when I unlock account the delete or minus button is inactive. Thankyou

    aha, by disabling the find my mac checkbox in icloud seems to work. tusen takk previous threaders!!!!!!!!!!

  • Files to download without any permissions for guest user.

    Hello, i have created a KM Navi Iview, with path to /documents/.../...
    When i go to
    http://portal/irj/portal/anonymous i see a list of files, but i can copy,delete and rename files (permissions for guest are: read), how can i solve this, if i need only download permissions for guest?

    Hello Artem,
    Please do not remove the Guest User from its groups.
    The Guest User is an integral part of the "Anonymous Users" group which ultmately falls under "Everyone" Group. How did you remove Guest User as only Config tool allows you to do that.
    What I suggest is make a Portal Group of Users and add all your regular users to it. Give Read/Write permission to this group. Then add only Read permissions for Anonymous Users Group.
    Hope this helped.

  • Guest User permission for Federated portal setup

    Hello SDNers,
    I am trying to setup Federation between two portals. Both the portals are in the same domain and use the same LDAP user data source.
    Both the portals are on NW 7.0 EHP1 SP 05.
    I am following the online help and few other links. I have followed all the steps explained.
    SSO and trust between portals is properly setup and is validated.
    The point where I am stuck at is with the permissions on the producer portal for the "Guest" user.
    If I assign Super Admin role to the Guest user in the producer portal, every thing works fine. I can see the roles in Consumer portal for Remote Role Assignment and also I am able to do Remote Delta Links.
    However, this is not anticipated. (We cannot assign super admin to Guest user)
    If I remove the Super Admin role to the Guest user in the producer portal, every thing breaks - I cannot see the remote roles from Consumer portal, I cannot see any content under Netweaver Content Producers for the given producer.
    I have given "Everyone" group - read access to everything below "Portal Content" folder both on producer and consumer portals.
    PCD_Service user is assigned the actions Remote_Producer_Write_Access and Remote_Producer_Read_Access in both portals.
    Log says:
    Call failed
    EXCEPTION
    SOAP Fault Exception (Actor SAPEPP) com.sapportals.portal.prt.service.soap.exception.SoapFaultHandler] : The User Authentification is not correct to access to the Portal Service com.sap.portal.prt.soap.Bridge or the service was not found.
    My Questions are:
    1. What does Guest user have to do in the whole process - Where it is exactly used ?
    2. How can I give Guest user the required permissions (especially to portal service com.sap.portal.prt.soap.Bridge) ?
    Please suggest.
    Thank You ,
    Raj Kumar

    No cross posting.
    Read the "Rules of Engagement"
    Regards
    Juan

  • Self registering of Guest user

    Hi,
       I want to enable the self register option for the guest user.I can't see self-registration link on the Welcome screen.I have done the following steps.
    1.Ticked self-registration for guest at UME.
    2.Seted ume.logon.selfreg=TRUE in VA.
    3.Assign the action "ume.selfregister_user" to the    role "Everyone"
    4.and finally restarted.
    but still I am unable to see the link for "Self Registering".
    Am I missing something?
    Regards
    Indranil

    Hi Indranil,
    You have missed the following two steps after server restart:
    1)  Configure the Standard User Role (eu_role):
    a. Navigate to Content Administration --> Portal Content
    b. Navigate to Portal Content --> Portal Users --> Standars Portal Users -->Standard User Role.
    c. Open the Standard User Role
    d. select in the "property Catagory" combo box in the property Editor frame  the "User Management  Permissions" option.
    e. Change the following fields:
    i. Manage_My_Profile --> yes
    ii. Manage_My_Password --> yes
    iii. Read_My_Profile -->yes
    iv. Selfregister_User --> yes
    f. Save the changes in the save button in the left size of the screen.
    And then,
    2)  Assign eu_role to everyone group
    - Anagha

  • RDMBS - Creates two rows in table and adds to "everyone" group

    I have got the RDBMSRealm (using the example code) working from a JSP and a new
    user is persisted to my Oracle 8i users table. From the WLS console I can also
    see this new user under my Group "Candidates". However it has also added this
    user to the "everyone" group and I have two identical rows in my table. I can't
    see where it picks up this "everyone" group. Any pointers would be appreciated.
    Thanks.
    I'm using WLS 6.1 sp2 under Windows 2K Prof.

    "Roger Lee" <[email protected]> wrote:
    >
    I have got the RDBMSRealm (using the example code) working from a JSP
    and a new
    user is persisted to my Oracle 8i users table. From the WLS console I
    can also
    see this new user under my Group "Candidates". However it has also added
    this
    user to the "everyone" group and I have two identical rows in my table.
    I can't
    see where it picks up this "everyone" group. Any pointers would be appreciated.
    Thanks.
    I'm using WLS 6.1 sp2 under Windows 2K Prof.

Maybe you are looking for