In Ubuntu 19.10, smbclient package doesn’t allow to print in a printer shared via samba from a Windows 10 server

Bug #1853743 reported by Juan Jose Rodriguez Molina
This bug report is a duplicate of:  Bug #1849859: smb printing fails. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Sorry for my bad English.

The smbclient package doesn’t allow print in a windows 10 printer shared via samba from a Windows 10 server. The printer queue windows shows the error message: “Held for authentication”. Even if I write the authentication dates in this window, the printer doesn’t work, and it return the same message.

Writing the authentication dates in the configuration printer window neither works: printer queue shows same message, and the printer doesn’t print.

The Ubuntu previous version, Ubuntu 19.04, did allow do this. As workaround I degraded the smbclient package to the Ubuntu disco version using aptitude program. When I did this I blocked the following packages:

libsmbclient , libwbclient0 , python3-samba , samba-common , samba-common-bin , samba-libs ;
and smbclient to 2:4.10.7+dsfg-0ubuntu2.2 version.

However the Ubuntu 19.4 implementation of smbclient package doesn’t work entirely, but every time ask for the authentication dates, although previously I writed it in the configuration printer window.

Few days ago, I tried Manjaro KDE and Manjaro Gnome and I found same error and same error message, so that’s why I think that this error appears in the newer implementations of smbclient package.

Greetings.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Could you add your 'journalctl -b 0' log after a failed print?

Revision history for this message
Juan Jose Rodriguez Molina (juanjoserodriguez5) wrote : Re: [Bug 1853743] Re: In Ubuntu 19.10, smbclient package doesn’t allow to print in a printer shared via samba from a Windows 10 server

 Thanks for your kind reply.

Now, I think that there isn’t a error in the smbclient package, because I
checked the smbclient installed version and I surprised when I realized
that the version installed is the eoan version.

However, the printer works! I think that one dependence of smbclient was
not installed when I installed the smbclient package and the aptitude
program installed it.

Sorry for my wrong warning about the smbclient package.

However the printer doesn’t work entirely, but every time ask for the
authentication dates, although previously I writed it in the configuration
printer window. I realized that the authentication dates aren’t saved for
the configuration printer and the “verify” button in this window shows
“printer not accessible” message when I click it.

Greetings.

El lun., 25 nov. 2019 a las 10:35, Sebastien Bacher (<email address hidden>)
escribió:

> Thank you for your bug report. Could you add your 'journalctl -b 0' log
> after a failed print?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1853743
>
> Title:
> In Ubuntu 19.10, smbclient package doesn’t allow to print in a printer
> shared via samba from a Windows 10 server
>
> Status in samba package in Ubuntu:
> New
>
> Bug description:
> Sorry for my bad English.
>
> The smbclient package doesn’t allow print in a windows 10 printer
> shared via samba from a Windows 10 server. The printer queue windows
> shows the error message: “Held for authentication”. Even if I write
> the authentication dates in this window, the printer doesn’t work, and
> it return the same message.
>
> Writing the authentication dates in the configuration printer window
> neither works: printer queue shows same message, and the printer
> doesn’t print.
>
> The Ubuntu previous version, Ubuntu 19.04, did allow do this. As
> workaround I degraded the smbclient package to the Ubuntu disco
> version using aptitude program. When I did this I blocked the
> following packages:
>
> libsmbclient , libwbclient0 , python3-samba , samba-common ,
> samba-common-bin , samba-libs ;
> and smbclient to 2:4.10.7+dsfg-0ubuntu2.2 version.
>
> However the Ubuntu 19.4 implementation of smbclient package doesn’t
> work entirely, but every time ask for the authentication dates,
> although previously I writed it in the configuration printer window.
>
> Few days ago, I tried Manjaro KDE and Manjaro Gnome and I found same
> error and same error message, so that’s why I think that this error
> appears in the newer implementations of smbclient package.
>
> Greetings.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1853743/+subscriptions
>

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This sounds like #1849859

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I thought I had reproduced it, but I also couldn't get it to work with bionic, so I must be doing something wrong.

I'm gonna need better reproduction steps I'm afraid. Preferably that only involves linux machines.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Ok, I think I got something. It's working in bionic, and in eoan I got:

root@nsnx:~# /usr/lib/cups/backend/smb smb://10.10.1.6/ds216laser 34 root "Test Page" 1 "job-uuid=urn:uuid:efa8b6df-0724-3252-4657-11e6ac474646 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1574951400 time-at-processing=1574952123" .bashrc
kerberos_ccache_is_valid: Failed to get default principal from ccache: FILE:/tmp/krb5cc_0
DEBUG: This backend requires credentials!
DEBUG: get_exit_code(nt_status=NT_STATUS_ACCESS_DENIED [c0000022])
ATTR: auth-info-required=none
DEBUG: Unable to connect to CIFS host: NT_STATUS_ACCESS_DENIEDroot@nsnx:~#

That's something I can work with.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I'm going to dupe this bug as I think both are the same issue.

Revision history for this message
Juan Jose Rodriguez Molina (juanjoserodriguez5) wrote :

 Hi!

I'm not sure ...

Now I think the problem can be a error in cups version.

I think cups produce a printers.conf file with any error. I think error is
in the line:

AuthInfoRequired username,password

This line must have this form if we want print works.

I hope you will find this information useful.

Greetings

El jue., 28 nov. 2019 a las 20:10, Andreas Hasenack (<email address hidden>)
escribió:

> *** This bug is a duplicate of bug 1849859 ***
> https://bugs.launchpad.net/bugs/1849859
>
> I'm going to dupe this bug as I think both are the same issue.
>
> ** This bug has been marked a duplicate of bug 1849859
> error when connecting to smb server
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1853743
>
> Title:
> In Ubuntu 19.10, smbclient package doesn’t allow to print in a printer
> shared via samba from a Windows 10 server
>
> Status in samba package in Ubuntu:
> New
>
> Bug description:
> Sorry for my bad English.
>
> The smbclient package doesn’t allow print in a windows 10 printer
> shared via samba from a Windows 10 server. The printer queue windows
> shows the error message: “Held for authentication”. Even if I write
> the authentication dates in this window, the printer doesn’t work, and
> it return the same message.
>
> Writing the authentication dates in the configuration printer window
> neither works: printer queue shows same message, and the printer
> doesn’t print.
>
> The Ubuntu previous version, Ubuntu 19.04, did allow do this. As
> workaround I degraded the smbclient package to the Ubuntu disco
> version using aptitude program. When I did this I blocked the
> following packages:
>
> libsmbclient , libwbclient0 , python3-samba , samba-common ,
> samba-common-bin , samba-libs ;
> and smbclient to 2:4.10.7+dsfg-0ubuntu2.2 version.
>
> However the Ubuntu 19.4 implementation of smbclient package doesn’t
> work entirely, but every time ask for the authentication dates,
> although previously I writed it in the configuration printer window.
>
> Few days ago, I tried Manjaro KDE and Manjaro Gnome and I found same
> error and same error message, so that’s why I think that this error
> appears in the newer implementations of smbclient package.
>
> Greetings.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1853743/+subscriptions
>

Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Download full text (5.2 KiB)

Thanks

I'll make sure to test anonymous and authenticated printing.

On Thu, Nov 28, 2019 at 5:20 PM Juan Jose Rodriguez Molina
<email address hidden> wrote:
>
> *** This bug is a duplicate of bug 1849859 ***
> https://bugs.launchpad.net/bugs/1849859
>
> Hi!
>
>
> I'm not sure ...
>
> Now I think the problem can be a error in cups version.
>
> I think cups produce a printers.conf file with any error. I think error is
> in the line:
>
>
> AuthInfoRequired username,password
>
>
> This line must have this form if we want print works.
>
> I hope you will find this information useful.
>
>
> Greetings
>
> El jue., 28 nov. 2019 a las 20:10, Andreas Hasenack (<email address hidden>)
> escribió:
>
> > *** This bug is a duplicate of bug 1849859 ***
> > https://bugs.launchpad.net/bugs/1849859
> >
> > I'm going to dupe this bug as I think both are the same issue.
> >
> > ** This bug has been marked a duplicate of bug 1849859
> > error when connecting to smb server
> >
> > --
> > You received this bug notification because you are subscribed to the bug
> > report.
> > https://bugs.launchpad.net/bugs/1853743
> >
> > Title:
> > In Ubuntu 19.10, smbclient package doesn’t allow to print in a printer
> > shared via samba from a Windows 10 server
> >
> > Status in samba package in Ubuntu:
> > New
> >
> > Bug description:
> > Sorry for my bad English.
> >
> > The smbclient package doesn’t allow print in a windows 10 printer
> > shared via samba from a Windows 10 server. The printer queue windows
> > shows the error message: “Held for authentication”. Even if I write
> > the authentication dates in this window, the printer doesn’t work, and
> > it return the same message.
> >
> > Writing the authentication dates in the configuration printer window
> > neither works: printer queue shows same message, and the printer
> > doesn’t print.
> >
> > The Ubuntu previous version, Ubuntu 19.04, did allow do this. As
> > workaround I degraded the smbclient package to the Ubuntu disco
> > version using aptitude program. When I did this I blocked the
> > following packages:
> >
> > libsmbclient , libwbclient0 , python3-samba , samba-common ,
> > samba-common-bin , samba-libs ;
> > and smbclient to 2:4.10.7+dsfg-0ubuntu2.2 version.
> >
> > However the Ubuntu 19.4 implementation of smbclient package doesn’t
> > work entirely, but every time ask for the authentication dates,
> > although previously I writed it in the configuration printer window.
> >
> > Few days ago, I tried Manjaro KDE and Manjaro Gnome and I found same
> > error and same error message, so that’s why I think that this error
> > appears in the newer implementations of smbclient package.
> >
> > Greetings.
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1853743/+subscriptions
> >
>
> --
> You received this bug notification because you are subscribed to samba
> in Ubuntu.
> https://bugs.launchpad.net/bugs/1853743
>
> Title:
> In Ubuntu 19.10, smbclient package doesn’t allow to print in a printer
> shared via samba from a Windows 10 server
>
> Status in samba package in Ubuntu:
>...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.