Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] Automatic/sitewide iCal subscriptions

  1. #1
    Join Date
    Aug 2008
    Posts
    24
    Rep Power
    7

    Question [SOLVED] Automatic/sitewide iCal subscriptions

    Are there ways either to ensure that all users at a site are subscribed to one or more particular iCal calendars, or, barring a site-wide subscription, is there an automated way to subscribe accounts (on import from pre-existing LDAP, or on first login), to one or more particular iCal calendars, or are there other ways to achieve a similar end?
    Jonathan Hayward, christos.jonathan.hayward@gmail.com

    To see an award-winning website with stories, essays, artwork, games, and a four-dimensional maze, why not visit my home page? All of this is waiting for you at JonathansCorner.com.

    Would you like to curl up with one of my hardcover books? You can now get my books from CJSHayward.com.

  2. #2
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    you'll find that once you want to start doing advanced stuff like this that you pretty much have to throw the admin ui out the window. that being said, the command line utils for zimbra are great. For instance our script creates a user, mounts the company calendar and drops a welcome e-mail in their inbox upon creation.

    So to answer your question, yes there are ways to automate this, but you need to get firendly with zimbra from the command line

  3. #3
    Join Date
    Aug 2008
    Posts
    24
    Rep Power
    7

    Default

    I've been starting to poke around the wiki and commands' -h invocations.

    Do you know which command(s) would be used for managing user configuration and assigning things like subscribed calendars and/or talking with a Postfix mail server? I've poked around, and the most obvious way I see is to bypass zm* and manipulate the database. Which I can't rule out, but that would be an "I hope you know what you're doing" solution.

    (Would you be willing to post your script?)
    Last edited by JonathansCornerCom; 08-22-2008 at 09:34 AM.
    Jonathan Hayward, christos.jonathan.hayward@gmail.com

    To see an award-winning website with stories, essays, artwork, games, and a four-dimensional maze, why not visit my home page? All of this is waiting for you at JonathansCorner.com.

    Would you like to curl up with one of my hardcover books? You can now get my books from CJSHayward.com.

  4. #4
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    Say you have a shared calendar which is under the user account "company". You are adding the account jdoe. Heres an example of some code

    Code:
    zmprov ca jdoe givenName 'John' sn 'Doe' displayName 'John Doe'
    zmmailbox -z -m jdoe cm -V appointment "Company Calendar" company /Calendar
    That would make a calendar for him called "Company Calendar" that is linked to eth shared calendar under hte user company.

    there is a pretty good wiki article that shows some of this here Zmmailbox - Zimbra :: Wiki

  5. #5
    Join Date
    Aug 2008
    Posts
    24
    Rep Power
    7

    Default

    Quote Originally Posted by bdial View Post
    Say you have a shared calendar which is under the user account "company". You are adding the account jdoe. Heres an example of some code

    Code:
    zmprov ca jdoe givenName 'John' sn 'Doe' displayName 'John Doe'
    zmmailbox -z -m jdoe cm -V appointment "Company Calendar" company /Calendar
    Thank you; and how do I specify a URL? Do I replace just /Calendar with http://example.com/path/iCalendar.ics, or the last two arguments to zmmailbox, or something else?
    Jonathan Hayward, christos.jonathan.hayward@gmail.com

    To see an award-winning website with stories, essays, artwork, games, and a four-dimensional maze, why not visit my home page? All of this is waiting for you at JonathansCorner.com.

    Would you like to curl up with one of my hardcover books? You can now get my books from CJSHayward.com.

  6. #6
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    actulaly i think for that you'll need to use cf (create foldler).

    do zmmailbox help folder

    you should see all the synax you need there

  7. #7
    Join Date
    Aug 2008
    Posts
    24
    Rep Power
    7

    Default

    Quote Originally Posted by bdial View Post
    actulaly i think for that you'll need to use cf (create foldler).

    do zmmailbox help folder

    you should see all the synax you need there
    I'm getting a usage message when I try different variants on (I've sanitized the URL):

    zmmailbox cf -url http://example.com/path/calendar.ics "/Company"
    zmmailbox cf -url http://example.com/path/calendar.ics "Company"
    ...

    I've looked over the usage string and can't see what I'm doing wrong. Can you see what's wrong with invocations like the above?
    Jonathan Hayward, christos.jonathan.hayward@gmail.com

    To see an award-winning website with stories, essays, artwork, games, and a four-dimensional maze, why not visit my home page? All of this is waiting for you at JonathansCorner.com.

    Would you like to curl up with one of my hardcover books? You can now get my books from CJSHayward.com.

  8. #8
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    i think you might need the -V to specify what type of folder it is like

    -V appointment

    for a calendar

  9. #9
    Join Date
    Aug 2008
    Posts
    24
    Rep Power
    7

    Default

    Quote Originally Posted by bdial View Post
    i think you might need the -V to specify what type of folder it is like

    -V appointment

    for a calendar
    Thank you; after trying a few more times, I corrected a syntax error: I had a (single dash) argument of "-url". I corrected to:

    zmmailbox cf -u http://example.com/path/calendar.ics -V appointment "Company"

    That gave me a different error:

    Code:
    ERROR: zclient.CLIENT_ERROR (no mailbox selected. select one with authenticate/adminAuthenticate/selectMailbox)
    I tried to specify a mailbox via variations such as :

    zmmailbox -m user cf -u http://example.com/path/calendar.ics -V appointment "Company"
    zmmailbox -m user@domain.com cf -u http://example.com/path/calendar.ics -V appointment "Company"
    zmmailbox -m user@zimbra.domain.com cf -u http://example.com/path/calendar.ics -V appointment "Company"
    zmmailbox -z -m user@zimbra.domain.com cf -u http://example.com/path/calendar.ics -V appointment "Company"

    but I still got the "no mailbox selected" error. What should I be giving it for a mailbox--a username, an e-mail address, something else?

    Do you know what it's griping about?
    Jonathan Hayward, christos.jonathan.hayward@gmail.com

    To see an award-winning website with stories, essays, artwork, games, and a four-dimensional maze, why not visit my home page? All of this is waiting for you at JonathansCorner.com.

    Would you like to curl up with one of my hardcover books? You can now get my books from CJSHayward.com.

  10. #10
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    I just tried this command and it worked for me

    Code:
    zmmailbox -z -m user@domain.com cf -V appointment -u http://sports.yahoo.com/nfl/teams/bal/ical.ics /Ravens

Similar Threads

  1. iCal attendee lookup using Zimbra directory
    By Erik T in forum CalDAV / CardDAV / iSync
    Replies: 17
    Last Post: 09-01-2009, 09:15 PM
  2. Windows Mobile Calendar and iCal
    By playnada in forum CalDAV / CardDAV / iSync
    Replies: 2
    Last Post: 07-14-2008, 01:02 PM
  3. Replies: 1
    Last Post: 02-11-2008, 07:41 PM
  4. Connect Zimbra iCal without password ?
    By marinew in forum Administrators
    Replies: 4
    Last Post: 10-22-2007, 09:56 AM
  5. [SOLVED] Zimbra not syncing properly with Address Book and iCal
    By Colin Day in forum CalDAV / CardDAV / iSync
    Replies: 4
    Last Post: 07-13-2007, 09:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •