Bugzilla – Bug 1221217
Samba printer allways requires authentication
Last modified: 2024-04-09 07:38:38 UTC
I have a samba printer in the LAN. It have been installed successfully in openSUSE. But printing allways requires authentication even if I provide correct username and password. I try to use the smbclient to test the printer, the smbclient show me a "NT_STATUS_ACCESS_DENIED" error. And in windows, A "Remote Downlevel Document" appears in the print queue. hillwood@localhost:~> smbclient -U administrator //10.113.90.105/CanonLBP3000 Password for [WORKGROUP\administrator]: Try "help" to get a list of possible commands. smb: \> print /home/hillwood/test.txt NT_STATUS_ACCESS_DENIED opening remote file test.txt-8305
BTW, the samba printer works fine in windows clients.
Hi Hillwood, could you provide more details about your environment? Is the print server joined to a domain? Your windows clients might be using Kerberos authentication, have you tried to get a ticket and run smbclient with '--use-kerberos=desired'?
(In reply to Samuel Cabrero from comment #2) > Hi Hillwood, > > could you provide more details about your environment? Is the print server > joined to a domain? Your windows clients might be using Kerberos > authentication, have you tried to get a ticket and run smbclient with > '--use-kerberos=desired'? The samba server allows anonymous access. So the password is not required (in a windows client). And the server doesn't joined to a domain. I use smb://10.113.90.105 to visit it directly.
(In reply to Hillwood Yang from comment #3) > (In reply to Samuel Cabrero from comment #2) > > Hi Hillwood, > > > > could you provide more details about your environment? Is the print server > > joined to a domain? Your windows clients might be using Kerberos > > authentication, have you tried to get a ticket and run smbclient with > > '--use-kerberos=desired'? > > The samba server allows anonymous access. So the password is not required > (in a windows client). And the server doesn't joined to a domain. I use > smb://10.113.90.105 to visit it directly. Could you please try $ smbclient //10.113.90.105/CanonLBP3000 -N -d10 and attach the output, together with a network capture? It is necessary to add -N for anon access.
Created attachment 873761 [details] samba printer log
(In reply to Hillwood Yang from comment #5) > Created attachment 873761 [details] > samba printer log Could you attach the capture? Just run the same command while running in other terminal: $ tcpdump -w bsc1221217.pcap -i br0 'host 10.113.90.105'
I run smbclient on other terminal. But it does not output anything useful: pc@pc-07:~> sudo tcpdump -w bsc1221217.pcap -i br0 'host 10.113.90.105' tcpdump: listening on br0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
(In reply to Hillwood Yang from comment #7) > I run smbclient on other terminal. But it does not output anything useful: > > pc@pc-07:~> sudo tcpdump -w bsc1221217.pcap -i br0 'host 10.113.90.105' > tcpdump: listening on br0, link-type EN10MB (Ethernet), snapshot length > 262144 bytes It should had created a file named "bsc1221217.pcap", please attach it.
Created attachment 874149 [details] bsc1221217.pcap