After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645133 - Set 'extra-identities' for Google Talk accounts
Set 'extra-identities' for Google Talk accounts
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on: 645119
Blocks:
 
 
Reported: 2011-03-18 13:39 UTC by Stef Walter
Modified: 2013-03-29 10:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implementation (1.21 KB, patch)
2011-03-18 14:05 UTC, Stef Walter
none Details | Review
Check that extra-identities is supported by gabble. (2.19 KB, patch)
2011-03-21 10:36 UTC, Stef Walter
none Details | Review
Updated implementation (2.20 KB, patch)
2011-03-21 11:25 UTC, Stef Walter
none Details | Review

Description Stef Walter 2011-03-18 13:39:57 UTC
When creating google talk accounts, allow 'talk.google.com' as an extra identity for server certificate validation.

See https://bugs.freedesktop.org/show_bug.cgi?id=35415 for the gabble implementation. This has the result of adding it to the list of reference identities used by empathy-auth-client to check the server certificate host name.
Comment 2 Stef Walter 2011-03-18 14:05:23 UTC
Code actually depend on bug #645119, but resulting functiontality does.
Comment 3 Stef Walter 2011-03-18 14:05:55 UTC
Created attachment 183721 [details] [review]
Implementation
Comment 4 Guillaume Desmottes 2011-03-18 14:31:07 UTC
Looks good. Are you still able to connect if the CM doesn't implement this property?

Also, it would be great if you could do a similar branch based on top of 2.34. You'll have to modify src/empathy-account-assistant.c and src/empathy-accounts-dialog.c and the factor out of this code is not in 2.34.
Comment 5 Stef Walter 2011-03-18 14:32:42 UTC
No, can't connect if the connection manager doesn't have this property. How would I make that work?
Comment 6 Guillaume Desmottes 2011-03-21 09:36:19 UTC
As discussed on IRC, we should only set this param if we know that the CM supports it.
Comment 7 Stef Walter 2011-03-21 10:02:50 UTC
Done. Check if 'extra-identities' is supported by the CM:

http://git.collabora.co.uk/?p=user/stefw/empathy.git;a=commit;h=8cd67a0111d6b6273ca37bba0bd0afe3f7142fe2
Comment 8 Guillaume Desmottes 2011-03-21 10:31:47 UTC
Can you please record the add empathy_account_settings_have_tp_param() change as a separated patch?

Except that looks good. Can you please provide an equivalent branch for 2.34?
Comment 9 Stef Walter 2011-03-21 10:36:55 UTC
Created attachment 183921 [details] [review]
Check that extra-identities is supported by gabble.
Comment 10 Stef Walter 2011-03-21 11:25:01 UTC
Created attachment 183925 [details] [review]
Updated implementation

Changed 'extra-identities' to 'extra-certificate-identities' to match commit in gabble.
Comment 11 Guillaume Desmottes 2011-03-22 14:01:54 UTC
Could you please record one patch adding the empathy_account_settings_have_tp_param() function and another one the 'extra-certificate-identities' change.

That would make backport to 2.34 easier. :)
Comment 12 Stef Walter 2011-03-22 14:44:36 UTC
Merged into master. Will attach gnome-2-34 relevant patches.
Comment 13 Kai Engert 2013-03-28 23:44:38 UTC
I found this bug based on string param-extra-certificate-identities
because I was researching bug 
https://bugzilla.redhat.com/show_bug.cgi?id=928913

It appears the extra identity name isn't being used by empathy 3.8.0 on fedora 19, instead empathy uses "gmail.com" as the name to verify against, and fails. The above fedora bug has more information.
Comment 14 Stef Walter 2013-03-29 10:31:58 UTC
Kai, the issue on Fedora 19 was a bug in p11-kit which is now fixed.