Red Hat Bugzilla – Bug 203539
SMB URIs with authentication details fail
Last modified: 2013-01-13 08:53:52 EST
This is sort of a duplicate of: bug 116759 . Still I'm opening a new bug because:
-bug 116759, is about the old system-config-printer and contains patches for
that, also bug 116759 is more then 2 years old now, so I guess it would be best
to close bug 116759 as a dup of this one, as this bug discusses the new
situation with the new system-config-printer
-bug 116759 talks about authentication before browsing for available smb shares,
so that shares needing auth can be found too. I don't know if the new
system-config-printer does any smb browsing at all (it didn't seem too) and
authentication during browsing is not what this bug is about, this bug
is about allowing authentication to a domain during the "Select Connection"
step of adding / modifying a printer.
I want to print to a network printer attached to my univeristy's ads managed
network. In order to be able todo this I must specify the domain I belong to
(ORG vs STUDENTS).
Currently the GUI lacks a way of inputting a domain, some googleing has tought
me that using ORG/username as username does the trick. This fixes my immediate
problem of being able to print :)
However this "fix" has 2 issues:
1) its obscure and an average user won't find it.
2) It causes unwanted side effects:
a) When you try to modify a printer from the gui which ues an smb username of
ORG/username, then in the smb-URI the username and passwd get shown, BAD!
b) When you try to modify the connection settings you have to re-enter all data
presuambly because the parsing of the smb-URI fails.
Once the unwanted side effects are fixed it should be easy to add a Domain GUI
entry or atleast to add the DOMAIN/ trick to the (missing) help.
I just saw bug 203149, which is clearly related to this one.
The main problem I see here is this:
> I don't know if the new
> system-config-printer does any smb browsing at all (it didn't seem too)
It is meant to browse, just like the older version. That clearly isn't working
for you. When you go to create a new queue using system-config-printer, and
select 'Windows Printer via SAMBA' as the connection type, the right-hand side
of the window should show a tree containing domains->hosts->queues. So:
1. Is that not happening?
2. Did it ever work in system-config-printer 0.6.x (i.e. FC5 or earlier)?
I'm on a LAB / testing network, so most likely browsing isn't working because
there is nothing to browse, or should I still get some kinda indication of
The ads machine I'm connecting to is on a different subnet and doesn't seem to
allow browsing without first authenticating, but that is not what this bug is
about, my problem is not being able to enter a domain when I enter the share
The SMB browsing code needs re-writing I think. :-(
I've just been hit by the original bug again, can you atleast fix the issue I
was actually trying to report?
I don't care much about smb browsing!
But when I currently change properties (say papersize) of an smb printer with a
username:password encoded in the URL/URI, the username password gets replaced
with the single UTF-8 char '...' yes, a special single char containing '...' . I
think this is done when displaying the URL in the GUI to not give away the
username/password, but it gets written back this way to /etc/cups/printers.conf
This should be easy to fix!
(and it would be nice to add a username/password entry field to the dialog for
creating a new printer).
Oh -- I had fixed that for FC-6, but another change in F-7 has broken that
again. I see the problem and will work on a fix.
Should be fixed in system-config-printer-0.7.61-1.fc7.