Cups authentication

Michael Sweet mike at easysw.com
Fri May 20 12:09:03 PDT 2005


Henrique wrote:
> Good afternoon
> 
> I have a Windows 2000k PDC + AD network, and we're experimenting adding linux desktops on it.
> So far, I've managed to login with AD users at the linux machine, using samba.
> We have our printers installed on a W2k server, and I pretend to use CUPS as printing client on the linux machine.
> 
> I configured one of the printers as "windows printer via samba" with the following URL - smb://<server>/<shared_printer>.
> But that doesn't seen to work.
> 
> When I send the printing job, I check the logs and the job is scheduled to the logged user, but then it says, right next:
> 
> "[Job 77] Connection failed with error NT_STATUS_LOGON_FAILURE"
> "[Job 77] Unable to connect to SAMBA host, will retry in 60 seconds..."
> 
> If I change the URL to - smb://<user>:<password>@<server>/<printer> - the printings goes fine, without any problems.
> 
> And if I try the URL above, but WITHOUT the password, I receive the same error message of the "job 77" example.
> 
> I guess it's more than obvious that cups is not receiving the password of the logged user, but I don't know how to do it. Does anyone knows how?
> I thank you in advance

This is simply not possible right now, because we have no way of
retrieving or saving the authentication information in the backend
other than via a hardcoded username and password in the URI.

That is why we do not recommend using SMB for printing *to* Windows,
and why all of the documentation says not to do it.

You can use TCP/IP printing services (aka LPD) and IPP (via IIS and
a /printers virtual directory) to print from CUPS to a Windows print
server without requiring authentication; both methods will get the
(unauthenticated) username from the CUPS system...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list