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 678878 - Authentication fails when using CLI
Authentication fails when using CLI
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pan-maint
pan-maint
Depends on:
Blocks:
 
 
Reported: 2012-06-26 13:34 UTC by Chris
Modified: 2012-07-04 17:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris 2012-06-26 13:34:03 UTC
I'm running pan 0.136 under Ubuntu 12.04.  I recently got a Supernews account which requires username/password authentication.  Everything seems to work if I run pan in GUI mode directly on the console of the machine that pan is installed on.  However, it fails because of what I believe are authentication problems under the following circumstances:

1.  running from the command line with the --no-gui option.  I use this to update my headers at night.
2.  running from a remote machine by logging in and setting the DISPLAY variable
3.  running through a vnc session to the remote machine.

In the case of running from the command line, no errors are output but nothing seems to happen either.  It just seems to hang.  Strace showed what looked like authentication problems.  I expect that these all may be related to the recent gnome-keyring authentication changes.  Can someone verify?
Comment 1 Robert K Halloran 2012-06-28 13:25:19 UTC
starting pan 0.136 (Kubuntu 12.04 bundled version) from the command line, I get:

$ pan
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name news.pan.NZB was not provided by any .service files
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files

Trying to fetch headers from the GUI I get : more authentication needed.  I'm able to telnet to the news server at 119 and authenticate with my existing ID and password, but servers.xml doesn't seem to want to save the password value:

$ cat .pan2/servers.xml
<?xml version="1.0" encoding="utf-8" ?>
<server-properties>
  <server id="1">
    <host>news20.forteinc.com</host>
    <port>119</port>
    <username>MY-USER-ID</username>
    <password></password>
    <expire-articles-n-days-old>93</expire-articles-n-days-old>
    <connection-limit>4</connection-limit>
    <newsrc>newsrc-1</newsrc>
    <rank>1</rank>
    <use-ssl>0</use-ssl>
    <trust>0</trust>
    <cert></cert>
  </server>
</server-properties>

This was working propertly prior to the 12.04 upgrade.  ????
Comment 2 Chris 2012-06-28 13:42:25 UTC
I can't say whether it worked prior to the 12.04 upgrade.  I had an ISP-provided Supernews account which did not require authentication until a few days ago when I changed my ISP and decided to take out a full Supernews account.  I never had a need to use the authentication stuff until I was already on Ubuntu 12.04.

I did notice that the password is not being stored in servers.xml.  I was a little confused at first but then read that this was because of the gnome-keyring change.  I wish this was optional.  I don't use gnome-keyring and would prefer to just have everything in the xml file.
Comment 3 Heinrich Müller 2012-06-29 14:25:34 UTC
You can disable the use of gkr via preferences if your version is new enough. Did you try that already?
Comment 4 Chris 2012-06-29 19:57:02 UTC
I could not find that option in 0.136.  Any idea what version I need in order to have that?
Comment 5 Heinrich Müller 2012-06-29 22:28:56 UTC
A newer version should be up soon, use that.
Comment 6 Heinrich Müller 2012-06-29 22:29:29 UTC
Alternatively : https://launchpad.net/~klaus-vormweg/+archive/pan
Comment 7 Chris 2012-07-02 18:08:57 UTC
It appears that 0.139 solves my problems.  I found the Preferences option that you mentioned and disabled the gnome-keyring functionality.  It's possible I was looking in the wrong place for it in the 0.136 release but I'm happy with 0.139 and will stay with that for now.  Thanks for the help.  As far as I'm concerned, you can close the ticket now.