cupsys-client: cupsaddsmb -a : asks for a password but doesn't recognize any

Bug #10975 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
cupsys (Debian)
Fix Released
Unknown
cupsys (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Automatically imported from Debian bug report #284450 http://bugs.debian.org/284450

Revision history for this message
In , Kenshi Muto (kmuto) wrote : Re: Bug#284450: cupsys-client: cupsaddsmb -a : asks for a password but doesn't recognize any

severity 284450 important
thanks

Received.
cupsaddsmb is one of component and not-well tested I think.
I'll try to reproduce and find a solution.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #284450 http://bugs.debian.org/284450

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 06 Dec 2004 14:33:03 +0100
From: "<email address hidden>" <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: cupsys-client: cupsaddsmb -a : asks for a password but doesn't recognize
 any

Package: cupsys-client
Version: 1.1.20final+rc1-10
Severity: grave
Justification: renders package unusable

The command 'cupsaddsmb -a' returns :
    Password for root required to access localhost via SAMBA:
but when I type in the password, it isn't recognize.
I've also tried with other user using -U param but the result is the same.
As I don't know which kind of user it's waiting, I've tried system users
and samba users but It's always the same result.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.18-bf2.4
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages cupsys-client depends on:
ii libc6 2.3.2.ds1-18 GNU C Library: Shared
libraries an
ii libcupsys2-gnutls10 1.1.20final+rc1-10 Common UNIX Printing
System(tm) -
ii zlib1g 1:1.2.2-3 compression library - runtime

-- no debconf information

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Mon, 06 Dec 2004 23:03:00 +0900
From: Kenshi Muto <email address hidden>
To: <email address hidden>
Subject: Re: Bug#284450: cupsys-client: cupsaddsmb -a : asks for a password but doesn't recognize any

severity 284450 important
thanks

Received.
cupsaddsmb is one of component and not-well tested I think.
I'll try to reproduce and find a solution.

Revision history for this message
In , Kenshi Muto (kmuto) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

At Mon, 06 Dec 2004 14:33:03 +0100,
<email address hidden> wrote:
> The command 'cupsaddsmb -a' returns :
> Password for root required to access localhost via SAMBA:
> but when I type in the password, it isn't recognize.
> I've also tried with other user using -U param but the result is the same.
> As I don't know which kind of user it's waiting, I've tried system users
> and samba users but It's always the same result.

New upstream version, 1.1.22 improves around cupsaddsmb.
I uploaded that version to experimental, and my repository.
My repository is:
deb http://kmuto.jp/debian/cups ./

Could you try it?

Thanks,
- --
Kenshi Muto
<email address hidden>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkG0cQsACgkQQKW+7XLQPLHx2wCfWenYgf9TjzpgnLkIsY9AHvje
cvQAoKu0ZKToxt7GBRqoQ1V39U4w+TfC
=qdlz
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Mon, 06 Dec 2004 23:47:48 +0900
From: Kenshi Muto <email address hidden>
To: "<email address hidden>" <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#284450: cupsys-client: cupsaddsmb -a : asks for a password but doesn't recognize any

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

At Mon, 06 Dec 2004 14:33:03 +0100,
<email address hidden> wrote:
> The command 'cupsaddsmb -a' returns :
> Password for root required to access localhost via SAMBA:
> but when I type in the password, it isn't recognize.
> I've also tried with other user using -U param but the result is the same.
> As I don't know which kind of user it's waiting, I've tried system users
> and samba users but It's always the same result.

New upstream version, 1.1.22 improves around cupsaddsmb.
I uploaded that version to experimental, and my repository.
My repository is:
deb http://kmuto.jp/debian/cups ./

Could you try it?

Thanks,
- --
Kenshi Muto
<email address hidden>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkG0cQsACgkQQKW+7XLQPLHx2wCfWenYgf9TjzpgnLkIsY9AHvje
cvQAoKu0ZKToxt7GBRqoQ1V39U4w+TfC
=qdlz
-----END PGP SIGNATURE-----

Revision history for this message
In , Kenshi Muto (kmuto) wrote :

Hi,

At Mon, 06 Dec 2004 14:33:03 +0100,
<email address hidden> wrote:
> The command 'cupsaddsmb -a' returns :
> Password for root required to access localhost via SAMBA:
> but when I type in the password, it isn't recognize.
> I've also tried with other user using -U param but the result is the same.
> As I don't know which kind of user it's waiting, I've tried system users
> and samba users but It's always the same result.

cupsaddsmb is not friendly tool, but you can get more information by
'cupsaddsmb -v', and from your samba server log.
Did you see man page of cupsaddsmb and follow its instruction?

Thanks,
--
Kenshi Muto
<email address hidden>

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 15 Dec 2004 20:16:24 +0900
From: Kenshi Muto <email address hidden>
To: "<email address hidden>" <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#284450: cupsys-client: cupsaddsmb -a : asks for a password but doesn't recognize any

Hi,

At Mon, 06 Dec 2004 14:33:03 +0100,
<email address hidden> wrote:
> The command 'cupsaddsmb -a' returns :
> Password for root required to access localhost via SAMBA:
> but when I type in the password, it isn't recognize.
> I've also tried with other user using -U param but the result is the same.
> As I don't know which kind of user it's waiting, I've tried system users
> and samba users but It's always the same result.

cupsaddsmb is not friendly tool, but you can get more information by
'cupsaddsmb -v', and from your samba server log.
Did you see man page of cupsaddsmb and follow its instruction?

Thanks,
--
Kenshi Muto
<email address hidden>

Revision history for this message
Carthik Sharma (carthik) wrote :

Closing this, as there has been no feedback from reporter upstream since 2004!

Changed in cupsys:
status: Unconfirmed → Rejected
Revision history for this message
In , Luca Capello (luca-pca) wrote :

found 284450 1.2.7-4etch2
tags 284450 + upstream
forwarded 284450 http://www.cups.org/str.php?L2556
fixed 284450 1.3.4-1
tags 284450 + patch
thanks

Hello!

On Wed, 15 Dec 2004 12:16:24 +0100, Kenshi Muto wrote:
> At Mon, 06 Dec 2004 14:33:03 +0100, <email address hidden> wrote:
>> The command 'cupsaddsmb -a' returns :
>> Password for root required to access localhost via SAMBA:
>> but when I type in the password, it isn't recognize.
>> I've also tried with other user using -U param but the result is the same.
>> As I don't know which kind of user it's waiting, I've tried system users
>> and samba users but It's always the same result.
>
> cupsaddsmb is not friendly tool, but you can get more information by
> 'cupsaddsmb -v', and from your samba server log.

On etch (cupsys_1.2.7-4etch2 and samba_3.0.24-6etch9):
=====
root@tinello:/home/luca# cupsaddsmb -a
Password for root required to access /var/run/cups/cups.sock via SAMBA:

root@tinello:/home/luca# cupsaddsmb -a -v
Password for root required to access /var/run/cups/cups.sock via SAMBA:
Running command: smbclient ///var/run/cups/cups.sock/print$ -N \
 -A /var/spool/cups/tmp/4777713434089 -c [...]
WARNING: The "printer admin" option is deprecated
Connection to failed

Unable to copy Windows 2000 printer driver files (1)!

root@tinello:/home/luca#
=====

When called without specifying any server, the default SAMBA server
wasn't set. This was reported upstream in STR #2556 and fixed in SVN
r7033 (included in Debian version 1.3.4-1). Backporting the upstream
patch fixes the bug in cupsys_1.2.7-4etch2:

--8<---------------cut here---------------start------------->8---
--- cupsys-1.2.7/systemv/cupsaddsmb.c.ORG
+++ cupsys-1.2.7/systemv/cupsaddsmb.c
@@ -161,8 +161,13 @@
       }

       if (SAMBAServer == NULL)
+ {
  SAMBAServer = cupsServer();

+ if (SAMBAServer[0] == '/') /* Use localhost instead of domain socket */
+ SAMBAServer = "localhost";
+ }
+
       if ((status = export_dest(http, argv[i])) != 0)
  return (status);
     }
@@ -191,8 +196,13 @@
     */

     if (SAMBAServer == NULL)
+ {
       SAMBAServer = cupsServer();

+ if (SAMBAServer[0] == '/') /* Use localhost instead of domain socket */
+ SAMBAServer = "localhost";
+ }
+
     num_dests = cupsGetDests2(http, &dests);

     for (j = 0, status = 0; j < num_dests; j ++)
--8<---------------cut here---------------end--------------->8---

Thx, bye,
Gismo / Luca

Changed in cupsys:
status: New → Confirmed
Revision history for this message
In , Martin Pitt (pitti) wrote : tagging 284450

# Automatically generated email from bts, devscripts version 2.10.11ubuntu4
tags 284450 fixed-upstream

Changed in cupsys:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.