unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: John Steele Scott <toojays@toojays.net>
To: help-gnu-emacs@gnu.org
Subject: How to store SMTP credentials via Secret Service API?
Date: Thu, 13 Jun 2013 09:17:09 +0930	[thread overview]
Message-ID: <kpb1ac$n5u$1@ger.gmane.org> (raw)

I'd like to store my SMTP authentication details using the Secret Service API, rather than keep them in the authinfo file. However, I'm having trouble creating the credential in the first place.

If I eval something like:

(secrets-create-item "Default" "toojays.net smtp" "my-secret-password"
 :host "my-mail-host" 
 :port "587"
 :user "toojays@toojays.net")

it errors like:

Secret Service session: /org/freedesktop/secrets/session/s287
byte-code: D-Bus error: "Method \"CreateItem\" with signature \"a{sv}(oayay)b\" on interface \"org.freedesktop.Secret.Collection\" doesn't exist

I found a similar error in a bug report for a different application <https://bugs.launchpad.net/ubuntu/+source/python-launchpadlib/+bug/745540> where it seems like a compatibility issue due to a different version of gnome-keyring. My system is running Ubuntu 12.04 and has gnome-keyring 3.2.2-2ubuntu4.1, and also mate-keyring 1.6.0-1+precise.

Is there a workaround for this?

For instance, if I could create the key some other way (e.g. via seahorse), will Emacs be able to retrieve it?

Have I even used the correct syntax to create the key?

Thanks,

John




             reply	other threads:[~2013-06-12 23:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-12 23:47 John Steele Scott [this message]
2013-06-13 10:39 ` How to store SMTP credentials via Secret Service API? Michael Albinus
2013-06-17  3:53   ` John Steele Scott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='kpb1ac$n5u$1@ger.gmane.org' \
    --to=toojays@toojays.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).