Bug 473 - smbclient parameter change breaks printing scripts
Summary: smbclient parameter change breaks printing scripts
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbclient (show other bugs)
Version: 3.0.0preX
Hardware: All All
: P4 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact:
URL:
Keywords:
: 937 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-18 01:06 UTC by George Cameron
Modified: 2005-08-24 10:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Cameron 2003-09-18 01:06:48 UTC
Minor, but it caught me out, so it seems worth fixing before release if possible:

Summary: (a) need to remove -P parameter from existing smb printing scripts
(including the examples distributed with Samba 3)
         (b) add description of new -P smbclient parameter to man page?

Description:
The smbprint example scripts in 'samba-3.0.0rc4/examples/printing' all use the
-P parameter with smbclient. In previous versions of Samba, the meaning of this
parameter was 'connect to service as a printer'. However, in version 3, a
non-backwards-compatible change reassigns the meaning of this parameter to
'machine password' (seems to be undocumented in the man page?). When upgrading
from 2.2.8a, I found my own existing printing scripts no longer worked, issuing
the mysterious message 'ERROR: Unable to fetch machine password'. I was printing
to a Win9X print server which has no machine password!

However, smbclient -h documents the new description of the parameter, and I was
able to find an old version of Samba from which I could query the previous meaning.

Solution:
Removing -P parameter corrects the problem and allows the printing scripts to
work again
Comment 1 Tim Potter 2003-09-18 18:26:46 UTC
Thanks for catching this.  The -P parameter hasn't actually done anything
different to the connection process for years!  It's a bit of an historical oddity. 

I will update the examples though.
Comment 2 Tim Potter 2003-09-18 18:55:11 UTC
Fixed in CVS.  Let's hope all the various packagers pick it up.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2004-03-03 07:07:38 UTC
*** Bug 937 has been marked as a duplicate of this bug. ***
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-02-07 09:05:40 UTC
originally reported against one of the 3.0.0rc[1-4] releases.
Cleaning up non-production versions.
Comment 5 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:15:43 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.