[Kde-print-devel] [Bug 141456] Samba Printing Special Characters in password cause breakage on reboot

Kurt Pfeifle pfeifle at kde.org
Fri Feb 9 23:59:03 CET 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=141456         




------- Additional Comments From pfeifle kde org  2007-02-09 23:59 -------
Let me understand this right: you are trying to print from KDE to a Windows- (or Samba-)shared printer?

And this printer is only accessible by using a username/password?

-------------------------

If yes, you are (or rather: CUPS is) using the "smbspool" backend (symlinked as "smb") to get the data off from your Linux host, and to the Windows print server. smbspool ships as part of Samba. Storing of the Windows login credentials can only happen by storing it inside the "device URI" which looks like "smb://username:password workgroup/server/printer" (and which is stored in CUPS' /etc/cups/printers.conf file, just like "socket://... or usb://... device URIs). And this is what you see in the info tab you mention... 

There's not much KDE can do about it... It's entirely a Samba+CUPS affair.

Hmmm... we could try to add a thin layer of additional "security by obscurity" by hiding the "username:password " part in the info tab in case of a smb:// backend...)


As for the fact that the KDEPrint module does not display your password in the device URI any more: can you please check if it is still correct in the printers.conf file of CUPS (in /etc/cups/)? 

If it is changed there, it is very unlikely that KDE changes it. There must be a different problem then...

*If* your password contains any special characters used as separators in the device URI (that is: '/', ' ', ':') you are *bound* to have problems with this. Have you tried to escape the special characters contained in the password, like this:

  @ --> %40
  ' --> %27

etc. ??

See also:
   http://www.cups.org/str.php?L997   # here you can find a hint how to work around your problem
   http://www.cups.org/str.php?L1025
   http://www.cups.org/str.php?L1236
   http://www.cups.org/str.php?L1536
   http://www.cups.org/str.php?L221   # another hint!
   http://www.cups.org/str.php?L1404


More information about the Kde-print-devel mailing list