Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.6: Using iCal Group calendars on Snow Leopard Server OS X Server
Snow Leopard's iCal Server changed the location of the Wiki-based calendars, so that this previous hint no longer works. Intead of using the path of /principals/groups/groupname, the URL for wiki-based calendars has changed to one of the following:
https://ical.domain.com:8443/principals/wikis/groupname/
http://ical.domain.com:8008/principals/wikis/groupname/
When you add this in as a URL for an additional account, you can then access this shared calendar, with your changes reflected on the wiki page. You could alternatively create a specific user in workgroup manager to be used as the 'silent' owner of a group calendar, create your calendars, assign delegation to all the real users. But if done in that way, you don't get to see the calendar in the wiki, online.

Hopefully Apple develops the web-based version further, and allows you to show calendars you have delegate access to in your 'My Page,' in additional to your personal server-based calendars (nice that that is there now, though!).
    •    
  • Currently 2.55 / 5
  You rated: 5 / 5 (20 votes cast)
 
[51,529 views]  

10.6: Using iCal Group calendars on Snow Leopard Server | 15 comments | Create New Account
Click here to return to the '10.6: Using iCal Group calendars on Snow Leopard Server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: e_whizz on Sep 21, '09 04:50:19PM

Not sure how this hint became anonymous, as I originally posted it! I guess the language has been subtly cleaned up a bit to make a little more sense.

The trailing slash in the url is important and won't work without it.

You can also do a similar setup with Address Book, that is create a 'silent' user to be the owner of the address book and add shared contacts to this users' personal server based address book. You can then set this account up on the other machines to have a shared server based address book on all.

Charlie
ewhizz dot net



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: kawakawa on Feb 04, '10 07:57:07PM

Using this setup right now actually and it works well.

BIG problem, though, is that Apple Mail doesn't search the subscribed cardDAV account(s), and neither does the Addressbook Widget.

Any ideas on how to get these cardDAV accounts included in that search? A local copy is stored, as the data is available when the mac isn't able to get to the server, so why isn't it being searched?

It's a puzzle!



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: Alrescha on Dec 05, '09 01:58:23PM

For me to get this to work, I had to do the following:

Go to iCal, Preferences, Accounts, hit the '+' to add a new account.
Choose CalDAV, fill in user and password, click Create.
Change the URL as described in this hint.
Reenter password (it sometimes gets cleared).
Quit iCal (this step is required for me).
Restart iCal.

I'm surprised that Apple doesn't seem to understand the value of a shareable calendar for small business. I've used BusySync, and am quite disappointed with the abilities of Apple's calendar server.

A.



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: dennisketel on Dec 29, '09 06:31:16AM

Thanks for the great hint!
Be sure to add your group calendar first like described above, in case you might want to add your own user calendar as well. I've been trying about for hours, and just by coincidence deleting my own user account found out that adding the group first works like a charm.



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: ALamperti on Feb 25, '10 11:24:40AM

Hi All,

Anyone had any luck signing onto a group calendar using ical 4? I fought with this hint for a while until I noticed that the original hint specified ical 3. Then it worked fine.

Ical 4 gives various reasons why it rejects the URL. For example :

"The account information was not found. The resource specified by "/principals/_uids_/.../" could not be found on the server.

Thoughts?



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: kiwainteractive on Mar 01, '10 01:13:40AM

Yes, I finally have this working after days of messing around. I needed multiple shared calendars with access controlled by groups - basically the whole reason we bought snow leopard server. The Apple documentation actually has NO info on how to set this up.

I tried every combination of the links given above but it was always rejected by the iCal server, if I browsed to these URL's I could see that they existed, as I was served up a nice little html info page that listed my group info and group members.

The only way I could get shared calendars to work was:

1. Using your browser go to the server welcome page, log in using an admin account and make a wiki with the exact name of the group (ie Developer Group or Production Group) you wish to have a shared calendar (You can have multiple calendars added to this group, but you only have one set of access controls for all the calendars). You will note as you enter the name for the wiki the URL shows you the proper address with the short group name (ie developergroup or productiongroup) I suggest you check it against the group short name. Without this step, no mater what address I used, any group calendar URL entered into the iCal client was rejected by the server.

2. Log into the wiki and go to the wiki admin options page, enable the calendar option, set the access to private and add the group/users you want to have access.

3. Follow the instructions in the posts above for client setup - create an account in iCal client with the users name and login, leave the URL blank and the close and relaunch iCal. Then edit the path to be /principals/wikis/groupname/ (where groupname is the shortname from step 1) as others have mentioned... you need that trailing slash. Yes, iCal deletes your password and yes you have to close the iCal client and relaunch after you add each account. Also you may find on some clients that it adds the users direct calendar access account back in, great... just edit this if you need to add another group. Eventually you end up with one account for each group and 1 account which provides the user with access to their personal calendars.

4. Repeat step 3 for other groups as required.

5. You can now control the access to the shared calendars through the wiki admin page. All the features work as advertised, you can use email invites and all the calendars are available on the wiki or in iCal. You can also create new calendars from within the iCal client if you have write privileges.

This is a slow process if you have 20+ clients to configure and more than a few groups, but it seems to work. Why is this so painful and undocumented?



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: aordway on Mar 19, '10 08:14:13AM

I was finally able to subscribe to our group calendar. Basically we have a 10.6 wiki group that has a calendar. You have to authenticate to view the wiki or the calendar. Once you are looking at the calendar via the web, you can move your mouse over the calendar list on the left and an info link (i) will show up. Click on the i and in the dialog there is a link to Subscribe in iCal. The link that was passed to iCal was in the form of:
webcal://www.domain.com:8443/calendars/__uids__/wiki-nameofgroup/calendar
Of course, replace domain with your domain and nameofgroup with the name of your wiki group.
That seemed to do it for us. We are running 10.6.2 client and server.



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: nxnw on Apr 23, '10 04:36:17PM

FYI:

/principals/wiki/groupname/
does not work on the iPhone, but

/principals/__uids__/wiki-groupname/
does work on the iPhone as well as on iCal

Any group member can log in, using their own usename and password, and access the group calendar in accordance with the settings in the group page. Further, any group admin can (in iCal) make additional calendars for the group, that show up in iCal, iPhone calendar, and on the group web calendar.



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: Morse on May 12, '10 07:04:55AM

Great stuff, thanks. Is there any way of using alarms on the wiki calendars?



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: ndutyme on Jun 28, '10 11:41:15AM

After reading through all the comments on this page, we still couldn't access group wiki calendars from a browser or iCal.

When you opened a browser up to view the Wiki page for the group, on the home page of the wiki under the "Upcoming Events" section, it said something like "Unable to access the calendar because an error occurred". When you clicked on "Calendar" in the top navigation bar, it would load the calendar page, but say "getting events from the server..." but never stop showing this.

Until we changed the following setting in Server Administrator>iCal>Settings>General:
On the second half of the page there was nothing in the field to the right of "Wiki Server: ", so I entered the FQDN of our server and checked off the "Use SSL" option.

Then the group wiki calendars started working from a browser and in iCal. Now we use then not as subscribed calendars, but as calendars that iCal can read and write to depending on the group privileges.

Woo Hoo!



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: picoscope on Jul 08, '10 11:31:42PM

Trying to implement this hint, I broke group wiki calendars and never got them working correctly in iCal.

First, in iCal, after following instructions above, the group calendars appear in iCal and I can edit and make changes - -but every time iCal syncs to the server I get the error message that the calendar cannot be found - and I note that the URL specifies the full uid number (large collection of letters and numbers).

I tried setting up iCal to use ssl as suggested elsewhere, and that's what appears to have broken group calendars. Personal calendars still work, but trying to access group calendars via the wiki, the page gets stuck in "getting events from the server".

Log entries from ical server error log indicate:
Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 61: Connection refused.

Help?



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: pjburnhill on Aug 03, '10 06:38:47AM
Finally found a solution to this!

The problem is OS X 10.6.4 update changes the way iCal.app resolves the URL of the wiki group calendar which in turn exposes a bug in the iCal Server on OS X Server. The 'Principal URL' on the server is incorrect and doesn't lead anywhere and when iCal tries to access the URL, it gives an error.

The workaround is to change one of the iCal server configuration files manually, restart iCal server and re-enter the /principals/wikis/groupname/ url to iCal clients affected.

See this Apple Discussion Forum post for full details

Credits to Andre LaBrance1 on Apple Discussion Forums

The 'patch' in brief:

On the OS X server, open /usr/share/caldavd/lib/python/twistedcaldav/directory/principal.py in a text editor, change the line shown, and change its location (moved to below self.record & self.parent).

To clarify, the changed portion (around line 530) of the old / existing version of principal.py would look like:

assert record is not None, "Principal must have a directory record"

url = joinURL(parent.principalCollectionURL(), record.guid) + slash

self.record = record
self.parent = parent
self._url = url


and the 'patched' version would look like:

assert record is not None, "Principal must have a directory record"
self.record = record
self.parent = parent

url = joinURL(parent.principalCollectionURL(), self.principalUID()) + slash
self._url = url


NOTE: PLEASE NOTICE the change in the line url = joinURL... not just the position of it.

NOTE: After changes, remember to restart iCal server and change the URL in iCal application on affected client(s) to the one at the top of this thread.



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: pjburnhill on Aug 03, '10 08:37:00AM
NOTES Continued:

NOTE: When editing principal.py make sure you don't use TAB to indent the code. Python is TAB-sensitive and adding TABs will crash byte compiler (see note below). Use spaces in stead.

NOTE: Before restarting iCal server, rename/delete principal.pyc which is in the same folder. Principal.pyc is the byte compiled version of principals.py and it will get re-compiled (re-created) when iCal server starts.

[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: pagaille on Nov 26, '11 06:47:20AM

The above trick (correcting a bug in the .py file) seems not needed anymore (I'm running 10.6.8).

Additionally, it looks like using the "wiki-groupname" syntax in the path field works as expected, but there is a major drawback : the calendar present on the wiki page *isn't* updating accordingly.

The reason is that when creating a wiki for a group using the web interface, OS/X create a calendar using GUID.
At the contrary, it looks like the first time you use the /principals/wiki-groupname/ syntax, iCal server is creating this new group in the store folder *without* using GUIDS...

You can find out and copy paste the right GUID by looking at iCal's store folder (default is /Library/CalendarServer/Documents/calendars/__uids__/wi/ki/ - don't forget to modify the ACLs to get access) and guessing which GUID is the one used to store the group's events.

The path that will be needed to add to iCal's settings will be something like this : /principals/__uids__/wiki-A6CF1A1D-D576-4E2E-8E84-4B08AA8B562C__wiki_guid/

Don't forget the trailing slash, to rewrite the password and to restart iCal for the new settings be used.



[ Reply to This | # ]
10.6: Using iCal Group calendars on Snow Leopard Server
Authored by: macjoost on May 22, '12 09:19:58AM

Not always using iCal to interact with my 10.6 Calendar Server I searched for a way to add "delegates" to group calendars.

Starting with http://trac.calendarserver.org/ticket/261 I investigated further and found that in 10.6 Server there now is a SQLITE database containing all proxy information, located in /Library/CalendarServer/Data/calendaruserproxy.sqlite

What I did next is:
1. stop iCal server
2. open /Library/CalendarServer/Data/calendaruserproxy.sqlite (I used Lita.app after changing the file permissions)
3. edit the file:
In this file you will find the GROUPS table with the GROUPNAME and MEMBER columns.

If your wiki is named "wiki-groupname" and your own member id is "my-member-uuid-etc" you can add yourself as a read-write proxy by adding a new record in GROUPS with GROUPNAME = "wiki-groupname#calendar-proxy-write" and MEMBER = "my-member-uuid-etc"

If you need readonly access you use "wiki-groupname#calendar-proxy-read" for GROUPNAME.

Now:
4. close the file
5. start iCal server

In your iCal client: go to Preferences -> Accounts. In your regular account to your server you will find "groupname" listed under delegation. When you check the "Show" checkbox the group calendars will be added to your list of calendars under "Delegates".

Hurray!!!



[ Reply to This | # ]