Bug 63

Summary: SMB print client configuration scripts not good enough
Product: [Retired] Red Hat Linux Reporter: linux
Component: printtoolAssignee: Bill Nottingham <notting>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-17 14:14:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description linux 1998-11-13 15:15:06 UTC
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


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 18:05:59 UTC
will be added in next printtool release

Comment 2 Bill Nottingham 1999-05-17 14:14:59 UTC
I believe this has been fixed in the latest