Bug#889773: no clear how to use the programm. Does nothing?

2018-02-06 Thread Thorsten Glaser
Hi Tomas,

> Oh, I see. My problem in understanding how to use kwalletcli stems
> from the ambiguity of the word "folder". It can also mean a
> directory, as in directory in the filesystem.

No, only on Windows® really, and even there it’s wrong terminology
people got used to over years of misuse (like using + to concatenate
keys depressed simultaneously; I’ve got early Microsoft® manuals
getting both things right).

A folder is the thing in IMAP where you store eMails in, and
the thing you put in a shelf, into which you put archived
invoices and stuff like that. Well, in general IT terminology.

In KDE Wallet terminology, a “folder” is like the DN of an
LDAP entry, and an “entry” is like an attribute.

> So what I was doing is:
>
>   kwalletcli -e entry -f $PATH_TO_THE_WALLET

The “PATH_TO_THE_WALLET” is called a Wallet in KDE Wallet
terminology. kwalletcli only supports using the default
wallet; KDE 5 ships another CLI which supports using ar‐
bitrary wallets, but requires the user to specify the one
to use, so it does something different from kwalletcli.

> May I suggest this patch to the man page to disambiguate the meaning
> of folder or respectively to make it's context more clear, and to add
> a simple example:

I’ll think about it. I might not use the exact patch, but
thanks for correcting my assumption that shipping four
example scripts was enough.

> +echo MYPASSWORD | kwalletcli -e Stackoverflow -f Websites -P

「\*(Ba」, not a raw 「|」; also, “echo” would add a newline,
which breaks other users of the wallet data, as the newline
would be interpreted as being part of the password (hence the
“printf '%s' "$password"” in my example).

bye,
//mirabilos
-- 
„Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund,
mksh auf jedem System zu installieren.“
-- XTaran auf der OpenRheinRuhr, ganz begeistert
(EN: “[…]uhr.gz is a reason to install mksh on every system.”)



Bug#889773: no clear how to use the programm. Does nothing?

2018-02-06 Thread Tomas Pospisek

Hi Thorsten,

On Tue, 6 Feb 2018, Thorsten Glaser wrote:


Tomas Pospisek dixit:


How is this programm supposed to be used? Can you give an example
in the man page?


This is fully documented in the manpage:

-P   Read the password to write from standard input.  Currently

… and:

Default mode of operation, that is, unless -P or -p are used, is to read
the password from the Wallet and print it to standard output as-is, with‐
out any trailing newline.

So, you can do something like:

printf '%s' "$password" | kwalletcli -e foo -f bar -P

password=$(kwalletcli -e foo -f bar)


Oh, I see. My problem in understanding how to use kwalletcli stems from 
the ambiguity of the word "folder". It can also mean a directory, as in 
directory in the filesystem. So what I was doing is:


   kwalletcli -e entry -f $PATH_TO_THE_WALLET

Which obviously won't show me an entry.

May I suggest this patch to the man page to disambiguate the meaning of 
folder or respectively to make it's context more clear, and to add a 
simple example:


$ diff -u kwalletcli.1 kwalletcli.1.patched
--- kwalletcli.12018-02-06 23:02:16.784511603 +0100
+++ kwalletcli.1.patched2018-02-06 23:07:14.177657147 +0100
@@ -178,9 +178,9 @@
 to use when accessing the Wallet.
 Mandatory.
 .It Fl f Ar folder
-Set the
+The
 .Ar folder
-to use when accessing the Wallet.
+inside the Wallet in which to search for the entry.
 Mandatory.
 .It Fl h
 Display the usage.
@@ -249,6 +249,8 @@
 .It Ev DISPLAY
 The X11 display to use for communicating with the KDE Wallet.
 .El
+.Sh EXAMPLES
+echo MYPASSWORD | kwalletcli -e Stackoverflow -f Websites -P
 .Sh SEE ALSO
 .Xr kwalletcli_getpin 1
 .Sh AUTHORS


Thanks a lot!
*t



Bug#889773: no clear how to use the programm. Does nothing?

2018-02-06 Thread Tomas Pospisek
Package: kwalletcli
Version: 3.00-1+b1
Severity: normal

$ ls ~/.kde/share/apps/kwallet/
kdewallet.kwl  kdewallet.salt
$ kwalletcli -f ~/.kde/share/apps/kwallet/ -e foo -P
[nothing happens]
I can type some stuff and still nothing happens
^D
$

same if I do
$ kwalletcli -f ~/.kde/share/apps/kwallet/kdewallet.kwl -e foo -P

How is this programm supposed to be used? Can you give an example
in the man page?
*t

-- System Information:
Debian Release: 9.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_CH.utf8, LC_CTYPE=de_CH.utf8 (charmap=UTF-8), LANGUAGE=de_CH:de 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages kwalletcli depends on:
ii  libc6  2.24-11+deb9u1
ii  libgcc11:6.3.0-18
ii  libkf5coreaddons5  5.28.0-2
ii  libkf5i18n55.28.0-2
ii  libkf5wallet-bin   5.28.0-3
ii  libkf5wallet5  5.28.0-3
ii  libqt5core5a   5.7.1+dfsg-3+b1
ii  libqt5widgets5 5.7.1+dfsg-3+b1
ii  libstdc++6 6.3.0-18
ii  mksh   54-2+b4

Versions of packages kwalletcli recommends:
ii  gnupg-agent  2.1.18-8~deb9u1
ii  kwalletmanager   4:16.08.3-1
ii  openssh-client   1:7.4p1-10+deb9u2
ii  pinentry-gnome3  1.0.0-2
ii  pinentry-gtk21.0.0-2

kwalletcli suggests no packages.

-- no debconf information