Bug#998004: /usr/sbin/lpinfo: lpinfo: -U does not work despite saying so in the help

2022-08-14 Thread Brian Potkin
forwarded 998004 https://github.com/OpenPrinting/cups/issues/453
thanks


On Thu 28 Oct 2021 at 14:51:42 +0200, Roland Hieber wrote:

> Package: cups-client
> Version: 2.3.3op2-3+deb11u1
> Severity: normal
> File: /usr/sbin/lpinfo
> 
> Dear Maintainer,
> 
> I tried using lpinfo with a hostname and a user name, but it complains:
> 
> $ lpinfo -h gutenberg.mydomain -U myuser -l -v
> lpinfo: Unknown option "U".
> Usage: lpinfo [options] -m
>  lpinfo [options] -v
> Options:
> -E  Encrypt the connection to the server
> -h server[:port]Connect to the named server and port
> -l  Show verbose (long) output
> -m  Show models
> -U username Specify the username to use for authentication
> -v  Show devices
> --device-id device-id   Show models matching the given IEEE 1284 device ID
> --exclude-schemes scheme-list
>   Exclude the specified URI schemes
> --include-schemes scheme-list
>   Include only the specified URI schemes
> --language locale   Show models matching the given locale
> --make-and-model name   Show models matching the given make and model name
> --product name  Show models matching the given PostScript product
> --timeout seconds   Specify the maximum number of seconds to discover 
> devices
> 
> These two lines in the help seem to be conflicting:
> 
>   lpinfo: Unknown option "U".
> [...]
>   -U username Specify the username to use for authentication
> 
> It does not matter where on the command line I put the -U, the outcome is
> always the same, and I haven't figured out yet how to authenticate to
> the server with a different user name.

Thank you for your report, Roland.

The output from your command is correct behaviour; see the manual.
The Usage output is not correct. I have sent a report to upstream.

Regards,

Brian.



Bug#998004: /usr/sbin/lpinfo: lpinfo: -U does not work despite saying so in the help

2021-10-28 Thread Roland Hieber
Package: cups-client
Version: 2.3.3op2-3+deb11u1
Severity: normal
File: /usr/sbin/lpinfo

Dear Maintainer,

I tried using lpinfo with a hostname and a user name, but it complains:

$ lpinfo -h gutenberg.mydomain -U myuser -l -v
lpinfo: Unknown option "U".
Usage: lpinfo [options] -m
   lpinfo [options] -v
Options:
-E  Encrypt the connection to the server
-h server[:port]Connect to the named server and port
-l  Show verbose (long) output
-m  Show models
-U username Specify the username to use for authentication
-v  Show devices
--device-id device-id   Show models matching the given IEEE 1284 device ID
--exclude-schemes scheme-list
Exclude the specified URI schemes
--include-schemes scheme-list
Include only the specified URI schemes
--language locale   Show models matching the given locale
--make-and-model name   Show models matching the given make and model name
--product name  Show models matching the given PostScript product
--timeout seconds   Specify the maximum number of seconds to discover 
devices

These two lines in the help seem to be conflicting:

  lpinfo: Unknown option "U".
[...]
  -U username Specify the username to use for authentication

It does not matter where on the command line I put the -U, the outcome is
always the same, and I haven't figured out yet how to authenticate to
the server with a different user name.

Cheers,

 - Roland


-- System Information:
Debian Release: 11.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable-debug'), (500, 
'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-7-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cups-client depends on:
ii  adduser  3.118
ii  cups-common  2.3.3op2-3+deb11u1
ii  libc62.31-11
ii  libcups2 2.3.3op2-3+deb11u1

cups-client recommends no packages.

Versions of packages cups-client suggests:
ii  cups   2.3.3op2-3+deb11u1
ii  cups-bsd   2.3.3op2-3+deb11u1
ii  smbclient  2:4.13.5+dfsg-2

-- no debconf information