gmvault icon indicating copy to clipboard operation
gmvault copied to clipboard

Add support for Google Apps

Open yo-que-se opened this issue 9 years ago • 16 comments

Hello. I'm using gmvault v1.8.1 beta on Windows XP SP2 machine. I have problems using the two legged oauth with my corporte google apps accounts. I send you the details:

gmvault sync [email protected] --2-legged-oauth -d G:\gmvault-db\db\[email protected]

Use gmvault-db located in G:\gmvault-db\db\[email protected].

Activate Gmvault db cleaning. Authentication performed with Gmail XOAuth token.

Get XOAuth credential from ./.gmvault/[email protected].

Successfully read oauth credentials.

Connect to Gmail server.

Error: Unsupported AUTHENTICATE mechanism. ub8mb14320060wib.

=== Exception traceback === Traceback (most recent call last): File "gmv\gmv_cmd.pyc", line 759, in run File "gmv\gmv_cmd.pyc", line 667, in _sync File "gmv\gmvault.pyc", line 258, in init File "gmv\imap_utils.pyc", line 285, in connect File "gmv\mod_imap.pyc", line 244, in xoauth_login File "imaplib.pyc", line 351, in authenticate error: Unsupported AUTHENTICATE mechanism. ub8mb14320060wib

=== End of Exception traceback ===

I have also tried the new version v1.9, but in the new version doesn't exist the --2-legged-oauth parameter.

Thank's for your help!

yo-que-se avatar May 07 '15 09:05 yo-que-se

2-legged-oauth doesn't exist anymore (as Oauth1 is gone) to allow syncing for an entire googleapps domain. However there is a way to solve the issue with a private key. I need to implement and test it. I hope to have it done and ready within one to two weeks.

gaubert avatar May 07 '15 19:05 gaubert

Glad that this is not just me ;-)

danward79 avatar May 07 '15 22:05 danward79

Is there any workaround for this?

yaroshevych avatar May 12 '15 09:05 yaroshevych

A work around would be useful, did you find one?

danward79 avatar May 26 '15 10:05 danward79

There is no quick work around as I need to implement the access to the business google apps. I am working on it and will try to release something fairly quickly.

Guillaume

On 26 May 2015 at 11:56, Dan [email protected] wrote:

A work around would be useful, did you find one?

— Reply to this email directly or view it on GitHub https://github.com/gaubert/gmvault/issues/201#issuecomment-105487479.

gaubert avatar May 26 '15 11:05 gaubert

One workaround is to use the --passwd option, which works with a Google Apps domain on v1.9. Of course this requires that you have the password for the account, which might not be the case in a corporate deployment.

rbrewer avatar Jul 03 '15 15:07 rbrewer

Would that work, on a normal google account?

How is the fix coming along?

danward79 avatar Jul 03 '15 21:07 danward79

@danward79 Not sure if you are asking me or @gaubert, but the --passwd flag will let gmvault work with any account that you have the password for: consumer Gmail or Google Apps for Work. I just used it for a Gmail->GAfW account transition, and it worked fine.

rbrewer avatar Jul 04 '15 08:07 rbrewer

@gaubert have you been able to get anywhere with the private key authentication method? I need to migrate a few hundred mailboxes from one google apps domain to another and if I could use this that would be perfect.

artooro avatar Jul 08 '15 20:07 artooro

@danward79 @rbrewer @yaroshevych This is the last thing to tackle in gmv1.9.1 before release. I will try to work on it in the following weeks.

gaubert avatar Aug 26 '15 12:08 gaubert

@gaubert have you been able to get anywhere with the private key authentication method?

yo-que-se avatar Nov 09 '15 14:11 yo-que-se

Upgrading to the latest version (1.9) solved this problem for me.

dalin- avatar Nov 26 '15 16:11 dalin-

Is there some documentation on how to use the google apps support for domain wide use? The only thing I see so far is you have to authorize it as each individual user. Was the private key method implemented?

brownrc avatar May 19 '16 16:05 brownrc

Has there been any progress on this? I too am looking for a solution where all accounts of an entire Google Apps domain can be backed up.

I am not a Python programmer, but is there any way I can help in taking this to closure?

shireeshj avatar Dec 01 '16 06:12 shireeshj

@shireeshj @brownrc I suggest opening a new issue, because this one (getting Google Apps to work after the removal of 2-legged-oauth) is solved. What you're describing seems to be a different (backing up an entire domain).

dalin- avatar Dec 01 '16 14:12 dalin-

you are right. It works for a single google apps account without a hitch.

I'll log another issue for the domain wide feature. Thanks

shireeshj avatar Dec 02 '16 02:12 shireeshj