Bug 63 - SMB print client configuration scripts not good enough
SMB print client configuration scripts not good enough
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: printtool (Show other bugs)
5.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1998-11-13 10:15 EST by linux
Modified: 2014-03-16 22:08 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-05-17 10:14:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description linux 1998-11-13 10:15:06 EST
1) Workgroups sometimes need to be specified for smbclient
to successfully login. The printtool/smbprint script do not
support workgroupsat all (need to add a workgroup field,
and a workgroup variable translating into -W "$workgroup"
option to smbclient).

2) smbclient usernames can have spaces in them.
printtool just saves
  username=user name with spaces
Should be something like this
  username='user name with spaces'
with proper escapes for any quotes, of course.
But the smbprint script would not process this
correctly, as usrcmd="-U $username" would translate
into smbclient ... -U user name with spaces ... .
Need to redo the script with smarter processing.

Something like this:
if [ "$username" != "" ]; then
   usercmd_opt=-U
else
   usercmd_opt=""
fi

...

smbclient ... $usercmd_opt "$username" ...

and don't forget to add the option for workgroup!

works fine otherwise... thanks
Comment 1 Bill Nottingham 1998-11-18 13:05:59 EST
will be added in next printtool release
Comment 2 Bill Nottingham 1999-05-17 10:14:59 EDT
I believe this has been fixed in the latest
rhs-printfilters/printtoool

Note You need to log in before you can comment on or make changes to this bug.