Sync Your Gmail and Zimbra Calendars ?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
maciunio2
Posts: 2
Joined: Fri Nov 16, 2018 11:30 am

Sync Your Gmail and Zimbra Calendars ?

Post by maciunio2 »

Hi
after reading this post https://blog.zimbra.com/2018/09/zimbra- ... in-zimbra/ some people came to the same error I have :

Code: Select all

ERROR: account.INVALID_ATTR_NAME (invalid attr name: invalid attr name - unable to modify attributes: ldap host=xxx: zimbraOAuthConsumerAPIScope: attribute type undefined)
The same situation is for other attributes shown it that article. The users were asked by author (Gayle Billat ) to post this problem here for quick help. I did not find any posts regadring this case, so here it is - the first one.
Please help to solve this - we need to integrate with google calendar using OAuth2.
richey_xm
Posts: 1
Joined: Mon Nov 19, 2018 5:22 pm

Re: Sync Your Gmail and Zimbra Calendars ?

Post by richey_xm »

bump.

The attribute doesn't exist either on 8.8.8_P10. Is the blog innacurate?
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Sync Your Gmail and Zimbra Calendars ?

Post by phoenix »

richey_xm wrote:The attribute doesn't exist either on 8.8.8_P10. Is the blog innacurate?
You can see from the blog post that the response from Zimbra to user comments that '....this did not work' was to point people to these forums for a "quick answer". Unfortunately there appears to be nobody here that knows the answer either and that attribute does not exist in the current ZCS 8.8.10 Open Source so I wouldn't expect any response from Zimbra on this matter. If you are an NE customer you could always raise a support case as nobody from Zimbra ever answer questions about blog posts in the forums nor do they have any interest in these forums. :(
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
onur
Posts: 9
Joined: Sun Feb 10, 2019 10:51 am

Re: Sync Your Gmail and Zimbra Calendars ?

Post by onur »

I got all the steps, however when I try

**** “Authorize Google to visit the following URL, specifying your hostname: https://mail.xxxx.xxxx/service/extensio ... ype=caldav”*****

I got this URL
https://mail.xxxx.xxxx/?error=unhandled_error#2

My Zimbra server version: 8.8.12_GA_3794.FOSS
User avatar
fs.schmidt
Outstanding Member
Outstanding Member
Posts: 278
Joined: Sat Sep 13, 2014 3:37 am
Location: Brazil
Contact:

Re: Sync Your Gmail and Zimbra Calendars ?

Post by fs.schmidt »

Hello guys,

We have customers using this feature since 8.8.10 without any issue and we use it on our environment.

These are my configurations. (I`ve hidden the doman, client_id, and secret):

Code: Select all

[zimbra@mail ~]$ zmprov gd mydomain.com zimbraOAuthConsumerAPIScope
# name mydomain.com
zimbraOAuthConsumerAPIScope: https://www.googleapis.com/auth/calendar:google_caldav

[zimbra@mail ~]$ zmprov gd mydomain.com zimbraOAuthConsumerCredentials
# name mydomain.com
zimbraOAuthConsumerCredentials: XXXXXXXXXXXXXX.apps.googleusercontent.com:XXXXXXXXXXXXXX:google

[zimbra@mail ~]$ zmprov gd mydomain.com zimbraOAuthConsumerRedirectUri
# name mydomain.com
zimbraOAuthConsumerRedirectUri: https://mail.mydomain.com/service/extension/oauth2/authenticate/google:google
onur
Posts: 9
Joined: Sun Feb 10, 2019 10:51 am

Re: Sync Your Gmail and Zimbra Calendars ?

Post by onur »

Thank you for the feedback. I checked the settings with zmprov gd command. The Apostrophe (’) became

Code: Select all

���https://mail.domain.com/service/extension/oauth2/authenticate/google:google���
so I corrected it without using Apostrophe (’) .
zmprov gd command now gives correct format

Code: Select all

# name domain.com
zimbraOAuthConsumerRedirectUri: https://mail.domain.com/service/extension/oauth2/authenticate/google:google
But

when I visit (after zimbra webmail login)

Code: Select all

https://mail.domain.com/service/extension/oauth2/authorize/google?type=caldav
still I got

Code: Select all

https://mail.domain.com/?error=unhandled_error#1
fs.schmidt wrote:Hello guys,

We have customers using this feature since 8.8.10 without any issue and we use it on our environment.

These are my configurations. (I`ve hidden the doman, client_id, and secret):

Code: Select all

[zimbra@mail ~]$ zmprov gd mydomain.com zimbraOAuthConsumerAPIScope
# name mydomain.com
zimbraOAuthConsumerAPIScope: https://www.googleapis.com/auth/calendar:google_caldav

[zimbra@mail ~]$ zmprov gd mydomain.com zimbraOAuthConsumerCredentials
# name mydomain.com
zimbraOAuthConsumerCredentials: XXXXXXXXXXXXXX.apps.googleusercontent.com:XXXXXXXXXXXXXX:google

[zimbra@mail ~]$ zmprov gd mydomain.com zimbraOAuthConsumerRedirectUri
# name mydomain.com
zimbraOAuthConsumerRedirectUri: https://mail.mydomain.com/service/extension/oauth2/authenticate/google:google
User avatar
thniels
Posts: 1
Joined: Sun Nov 03, 2019 8:57 am

Re: Sync Your Gmail and Zimbra Calendars ?

Post by thniels »

Did you ever get this working? I am having the exact same problem. No errors during config but it fails accessing the calendar. Could it be a G-Suite issue?

/Thomas Nielsen
apodosenin
Posts: 1
Joined: Thu Jun 25, 2020 10:32 am

Re: Sync Your Gmail and Zimbra Calendars ?

Post by apodosenin »

Hi!

Does it work with G Suite account only or any gmail account?

Regards, Alex.
User avatar
fs.schmidt
Outstanding Member
Outstanding Member
Posts: 278
Joined: Sat Sep 13, 2014 3:37 am
Location: Brazil
Contact:

Re: Sync Your Gmail and Zimbra Calendars ?

Post by fs.schmidt »

apodosenin wrote:Hi!

Does it work with G Suite account only or any gmail account?

Regards, Alex.
Hello,

It does work with G suite accounts indeed. We have customer using with gmail and g suite accounts.
Best regards.
Fabio S. Schmidt
http://www.bktech.com.br
Brasília - Brazil
cdemanet
Posts: 1
Joined: Wed Jul 08, 2020 9:23 am

Re: Sync Your Gmail and Zimbra Calendars ?

Post by cdemanet »

Hi everybody,

I have follow the same tweak for syncing Google Calendar with Zimbra, and i am in the same situation than onur.

All the steps goes well and when i'll try to add the Google Calendar in zimbra i have

Code: Select all

Erreur d'autorisation
Erreur 400 : redirect_uri_mismatch
The redirect URI in the request, https://webmail.chauray.fr/service/extension/oauth2/authenticate/google, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/xxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com?project=xxxxxxxxxxxxxxxxxx
Thank you.
Post Reply