Debugging/Fixing Sun Calendar Permissions

July 5, 2006

Sun Java Enterprise System Calendar Server ScreenshotAs part of the Luminis Platform, we run the Sun Java Enterprise System Calendar Server, previously called SunOne Calendar Server, previously known as iPlanet Calendar Server. As expected, this calendar server has a fairly robust (read complicated) permission system. Invariably, users make setting changes that cause undesirable behavior with their calendar. A common symptom would be that suddenly no other users can find their calendar when searching for them and in turn can't subscribe to the calendar, even if they have the privileges to do that.

So, over the years I've developed a semi-effective process for debugging the calendar permissions from the backend.

  1. SSH to your calendar server
  2. cd to the calendar server /bin directory (for Luminis this is $CP_ROOT/products/SUNWics5/cal/bin)
  3. use the cscal utility to query the trouble user. ex ./cscal -v list jpseudo
  4. in the out put you get you'll see a line called 'aces' it will look something like:
    CODE:
    1. aces=@@o^c^WDEIC^g;@@o^a^RSF^g;someuser^a^rsf^g;someuser^c^^g;anotheruser^a^rsf^g;anotheruser^c^wd^g;someoneelse^a^rsf^g;someoneelse^c^^g;@^a^^g;@^c^^g;someuser^p^r^g;anotheruser^p^r^g;someoneelse^p^r^g

  5. This is the access control list or ACL, it is obviously very hard to read. I use EditPlus to do a regular expression find (;) and replace (;\n) on the permissions to clean it up a bit.
  6. Now it reads:
    @@o^c^WDEIC^g;
    @@o^a^RSF^g;
    someuser^a^rsf^g;
    someuser^c^^g;
    anotheruser^a^rsf^g;
    anotheruser^c^wd^g;
    someoneelse^a^rsf^g;
    someoneelse^c^^g;
    @^a^^g;
    @^c^^g;
    someuser^p^r^g;
    anotheruser^p^r^g;
    someoneelse^p^r^g
  7. Now for a brief aside explaining these individual permissions called access control entries or ACEs...
    The ACE consists of four distinct elements separated by a caret (^):

    • Who - the user or type of user the permission applies to. Valid entries are:
      • username
      • @@o - all owners
      • @@p - primary owner
      • @@n - not an owner
      • @ - anyone
    • What - the thing being accessed. Valid entries here are:
      • c - calendar component, events or tasks
      • p - calendar properties such as name description owners and so forth
      • a - entire calendar including components and properties
    • How - what actions are permitted. Valid entries are:
      • r - read
      • w - write
      • d - delete
      • s - schedule or invite
      • f - free/busy or availability
      • e - accept or decline invitations
      • i - send invites for events on the calendar
      • c - cancel
    • Grant - this determines whether or not the ACE is a grant (g) or deny (d)

    Now that we have a clue what these ACEs actually represent, how do we go about finding a problem?

  8. If the issue is about a single user experiencing trouble with the jpseudo's calendar, then extract only the ACEs that apply to that user or apply globally. If instead it is a generalized issue, eliminate all user specific ACEs and only look at global ones. Either way you should be able to drastically reduce the number of rules you are looking at.
  9. If this issue is the example originally given where the user's calendar cannot be seen by any users, then we are looking for a permission like @^p^r^g; or something similar. If the problem is not readily apparent, it is often useful to compare another user who you know works against this problem user.
  10. Now it is time to modify the permissions. More specific entries should be ordered first, this allows them to override entries that come later.
  11. Once you have the entries ordered properly, the command you need to execute will look something like this:
    CODE:
    1. ./cscal -a "@@o^c^WDEIC^g;@@o^a^RSF^g;someuser^a^rsf^g;someuser^c^^g;anotheruser^a^rsf^g;anotheruser^c^wd^g;someoneelse^a^rsf^g;someoneelse^c^^g;@^a^^g;@^c^^g;someuser^p^r^g;anotheruser^p^r^g;someoneelse^p^r^g;@^p^r^g" modify jpseudo

  12. Hopefully the change you made succeeds and life is good, if not, rinse and repeat!

ACE, aces, ACL, acls, application administration, calendar, iPlanet Calendar Server, Java, luminis, luminis platform, Sun, Sun Java Enterprise System Calendar Server, sungard, sungard higher education, SunOne Calendar Server, system administration

Tags: , , , , , , , , , , , , , , ,

Related:


Comments

2 Responses to “Debugging/Fixing Sun Calendar Permissions”

  1. Cliff on July 11th, 2006 12:27 am

    Hi, I am Cliff from EditGrid. I would like to invite you to try our online spreadsheet product EditGrid beta 7. We allows user to post their spreadsheet on blog, hope you would like it.

  2. Bramer on December 7th, 2006 9:24 am

    More:

    Change Owner of calendar:
    ./cscal -o new_owner modify calid

    Remove ‘other owners’:
    ./cscal -y “” modify calid

Got something to say?





User contributed tags: www.tube.porno (827) - porno tube (321) - www.you porn (310) - www.you tube.it (288) - WWW.PORNO TUBE.COM (272) - www.you tube.com (235) - www.porno.tube.com (230) - www.you tube (210) - www.you porno.com (196) - sun porno (175) - www.you porn,com (165) - porno tube.com (158) - porn tube (157) - porno tube beta (155) - www.sun porno.com (152) - www.porno (134) - 216592 (128) - porno tuble (95) - wwwporno.com (83) - www.you tuble (76) - www.porno-tube (63) - porne tube (62) - you tube.com (59) - www.you porno .com (59) - porn tube.com (56) - www.you tubes.com (55) - free porne.com (55) - you porn beta (51) - you porne (51) - www.tube.com (51) - YOU PORNO (49) - porntube beta (49) - www.you porne.com (44) - you porn.com (44) - "porn tube" beta (44) - www.porne.com (42) - www.you.porn.com (41) - Poro Tube (40) - sun porne (38) - porn tubes (37) - porne.com (36) - you tuble (36) - porno tubes (36) - www.tube porno (36) - sun, porno,com (35) - you tube porne (35) - WWW.porno tube.it (32) - www.you tuble.com (31) - www.You Porn. com. (29) - you porne.com (28) - porno beta tube (27) - you porno beta (27) - you.porn.com (27) - porne (27) - porno calendar (27) - you tube porno (27) - your porn tube (26) - you porn tube (26) - www.porno tube com. (26) - Porno Tube.it (26) - tube porno (25) - www.sun porn.com (25) - www.you.tube.com (24) - w.w.you tube.com (24) - you tupe (24) - www.sun.porno (24) - wwwporno com (23) - www.sun.porno.com (21) - www.sun porno (21) - www.porno.you (21) - mss (19) - you-porn.com.beta (18) - www.porno.tube (18) - beta porno tube (17) - porno beta (17) - www.you tube .com (17) - www.you.tube (17) - you tube porn (16) - "sun porn" (16) - "porn beta" (15) - calendar porno (15) - calendar (14) - porno.tube.it (13) - all (13) - you tube vidios (13) - WWW Porno Tube.Com (11) - free porne (11) - youtube porn beta (11) - sun porn.com (11) - your porno tube (11) - www porne com (11) - www.porno tubes.com (10) - 269253 (10) - www.porne (10) - you poro (10) - porn calendars (10) - www Porno tube.it (10) - www.you.porno (10) - porn o tube (10) - google search blog... (9) - www.you.porn.com.de (9) - www.tube.it (9) - porn tuble (9) - www.tube porno.com (8) - www.you.porno.com (8) - you porno tube (8) - porno tupe (8) - www sun porno .com (8) - porno tube .it (8) - www.you.tube.it (8) - sun.porno (8) - you tube-porn.Beta (8) - www.sun.porn (8) - sun pornos (8) - www.you porn.com.de (8) - www.sun porn (8) - sun.porn.com (7) - www.you.tuble (7) - porno calendars (7) - www.youtube.porn (7) - youtube porn (7) - Sun Calendar Server (7) - you porn.beta (7) - youtubevidios (7) - porno.tube.com (7) - You porn.com.de (7) - porno.tube (7) - YOU TUBE VIDEOS PORNOS (7) - www.you tube porn (6) - porno tubes.com (6) - WWW.SUN.PORN.COM (6) - www porno. com (6) - www.porno you tube (6) - ww.you porn.com. (6) - porno you tube (6) - www.sun porno .com (6) - www.you.porn com. (6) - beta porn tube (6) - youtube porne (6) - www,you tube porn.com (6) - you porn.com beta (6) - www.porno you tube.com. (6) - porno tube com (5) - you porn (5) - www.you porno (5) - porno.tuble (5) - tube beta (5) - www.porno.tube.it (5) - porno tube video (5) - www you porn com de (5) -