Bug 132742 - printconf-gui does not write correct information to cups printer.conf file for smb (samba) printers
Summary: printconf-gui does not write correct information to cups printer.conf file fo...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: redhat-config-printer
Version: 3.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-09-16 16:15 UTC by Doug
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-14 04:24:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
This one works (1.95 KB, text/plain)
2004-10-08 16:48 UTC, Doug
no flags Details
This is the one created by filling in the fields and does not work with forward slash. (1.95 KB, text/plain)
2004-10-08 16:49 UTC, Doug
no flags Details
/usr/share/printconf/util/backend.py (27.81 KB, text/plain)
2004-12-03 16:47 UTC, Tim Waugh
no flags Details
/usr/share/printconf/util/addQueue.py (42.01 KB, text/plain)
2004-12-03 16:48 UTC, Tim Waugh
no flags Details

Description Doug 2004-09-16 16:15:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686) Opera 
7.51  [en]

Description of problem:
The printconf-gui is the process being used (which seems to be a link 
to consolehelper). I am in a NT domain (unfortunately) and trying to 
print to a SMB printer.  If I fill in the fields in the wizard as 
they should be, the trailing slash is not placed between the 
workgroup field and the server name.  My username, which is in the 
form domain\user comes out as domain\\user in the printers.conf file.
Here is an example of the issue:
the line should be:
DeviceURI smb://domain\user:passwd@domain/server/share
And it comes out:
DeviceURI smb://domain\\user:passwd@domainserver/share

The frustrating thing is that I never found a way to obtain verbose 
information on where this information was stored (printers.conf), so 
it took a couple of hours to figure this one out. Arghh!

Version-Release number of selected component (if applicable):
0.6.47.2.13

How reproducible:
Always

Steps to Reproduce:
1.Click the New (or edit an existing) tab (to create a new print 
queue
2.Select SMB as the type
3.Fill in the fields.
    

Actual Results:  DeviceURI smb://domain\\user:
passwd@domainserver/share
in printers.conf file

Expected Results:  DeviceURI smb://domain\user:
passwd@domain/server/share
in printers.conf file

Additional info:

Comment 1 Tim Waugh 2004-10-08 10:37:40 UTC
Please confirm the version of redhat-config-printer that you are
using.  0.6.47.2.13 doesn't sound right.

Also, can you confirm that after changing printers.conf to have
smb://domain\user:passwd@domain/server/share printing to that queue works?

Thanks.

Comment 2 Tim Waugh 2004-10-08 11:23:33 UTC
With 0.6.47.3.13 I can't reproduce this.  Please attach the output of
'printconf-tui --Xexport', after making sure to replace your username
and password with 'username' and 'password'.  Thanks.

Comment 3 Doug 2004-10-08 16:40:40 UTC
Sorry, here is the correct version:
Gnome redhat-config-printer 0.6.47.3.13

And yes, I just double-checked my printers.conf file and
smb://domain\user:passwd@domain/server/share
is the only way I can print - it has been working since I posted the 
bug.

Comment 4 Doug 2004-10-08 16:48:33 UTC
Created attachment 104949 [details]
This one works

Comment 5 Doug 2004-10-08 16:49:40 UTC
Created attachment 104951 [details]
This is the one created by filling in the fields and does not work with forward slash.

Comment 6 Tim Waugh 2004-12-03 16:47:31 UTC
Created attachment 107843 [details]
/usr/share/printconf/util/backend.py

Comment 7 Tim Waugh 2004-12-03 16:48:32 UTC
Created attachment 107844 [details]
/usr/share/printconf/util/addQueue.py

Could you please save these two attachments and copy them to
/usr/share/printconf/util/backend.py and /usr/share/printconf/util/addQueue.py,
and see if they fix the problem?

Thanks.

Comment 8 Doug 2004-12-16 01:03:40 UTC
This latest change works. The user name is domain\username in the user box,
and that works.

Thanks.

Comment 9 Tim Waugh 2004-12-16 09:36:22 UTC
Fixed in CVS.  This fix will be included in any future RHEL3 update for
redhat-config-printer, and will be included in RHEL4 when released.


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