Your message dated Sat, 23 Jun 2012 23:42:49 +0200
with message-id <[email protected]>
and subject line bug 425555 was fixed in samba 3.0.25b
has caused the Debian Bug report #425555,
regarding smbspool command should handle special URIs
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
425555: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425555
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: smbclient
Version: 3.0.24-6

I think I found a limitation at the command "smbspool", which makes me
unable to configure passwords with non-alphabetic chars at the CUPS
print subsystem.

The problem arose when I changed my password using a string crafted with
the pound sign, and configured it at the file /etc/cups/printers.conf,
just like:

<Printer My_SMB_Printer>
Info My_SMB_Printer
DeviceURI smb://myuser:mypass@my_domain/some_machine/some_printer_share
State Idle
StateTime 1172757484
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>


If one have to change the password using different chars, like $, #, and
so on, sometimes there are problems, mainly to the parser of the CUPS
subsystem. For instance, the pound sign is handled as a "start command"
token, and it gives an error.

But when I read the documentation, I realize I could embed this
character into the configuration using the %hh syntax, which is
documented as a valid URI. So, instead of:

 smb://myuser:pound_pass_#@my_domain/some_machine/some_printer_share

I tried:

 smb://myuser:pound_pass_%23@my_domain/some_machine/some_printer_share

and this had the effect of wrapping around the limitations of the CUPS
configuration. So, CUPS did its job and sent the printings to the SMB
printer, calling smbspool with the URI above.

But there were problems, mainly because smbspool seems to not handle
syntaxes like those starting by "%" as supposed. I checked the source
code and certified this (well, this was three months ago, maybe things
change). I worked around the problem renaming smbspool to smbspool.bin
and writing a simple shell script - named smbspool - which translates
the %23 sequence back to the pound sign, after the CUPS processing, and
calls "smbspool.bin". It worked fine, but unfortunately I lost it when I
upgraded the smbclient package some days ago.

I think it is not the case of implementing the extensive solution of
having all URI syntaxes supported; but instead, having only the %hh
sequence available is sufficient to have any password supported.

As I am not - yet - a registered Debian developer, please cc: myself at
[email protected]

Thanks,

Luiz Ramos
São Paulo - Brazil




--- End Message ---
--- Begin Message ---
forwarded 425555 https://bugzilla.samba.org/show_bug.cgi?id=2319
fixed 425555 3.0.25b-1

thanks

This bug was reported upstream as bug 2319 and  fixed in samba 3.0.25b in
2007, so it can be closed!

http://www.samba.org/samba/history/samba-3.0.25b.html
BUG 2319: Ensure that smbspool correctly decodes %-encoded characters.

git commit 59c450635773210bb8fca79a6cfc74d23a097bd5

Cheers,

Ivo De Decker



--- End Message ---

Reply via email to