You are not logged in.

#1 2019-08-14 17:44:47

manouchk
Member
Registered: 2008-07-29
Posts: 313

[solved] problem printing on printer on a windows network

Hi,

printing on a printer shared a windows network stopped working here. I now get the folllowing warning in cups web interface: "No valid Kerberos credential cache found!".
The printer is define including login and password in the smb URI of the printer and was not changed (smb://login:password@UPD1/IMPRESSORAS.CA/IMPRESSORAS_IFES)

Cups was not upgraded. I just found that samba and smbclient were recently upgraded and it has already given me similar problems but they never were related to kerberos:

[2019-08-09 15:34] [ALPM] upgraded smbclient (4.9.5-1 -> 4.10.6-1)
[2019-08-09 15:34] [ALPM] upgraded samba (4.9.5-1 -> 4.10.6-1)

I don't understand kerberos. Can anyone help me on that problem?

Last edited by manouchk (2019-10-03 13:22:20)

Offline

#2 2019-08-14 20:49:15

seth
Member
Registered: 2012-09-03
Posts: 59,643

Re: [solved] problem printing on printer on a windows network

https://wiki.archlinux.org/index.php/Kerberos

Is UPD1 actually the local system, samba/linux or windows?
It would seem a kerberos authetication is required and fails.
If the other end is windows, try accessing it by IP - iirc windows will skip kerberos then.

Do you have access to/control over the system that shares the printer?

Offline

#3 2019-08-15 12:03:29

manouchk
Member
Registered: 2008-07-29
Posts: 313

Re: [solved] problem printing on printer on a windows network

UPD1 is windows based. I don't have control over the system that shares the printer(s) but it used to work few days ago. Last time I had a printing problem it was due to a samba bug (https://bbs.archlinux.org/viewtopic.php?id=237952). Samba 4.8.1 had an issue.

I'd like to try through IP - iirc windows but I don't know want it means or how to do that.

Last edited by manouchk (2019-08-15 12:18:33)

Offline

#4 2019-08-15 13:47:53

seth
Member
Registered: 2012-09-03
Posts: 59,643

Re: [solved] problem printing on printer on a windows network

a) try downgrading samba/sambaclient to see whether that's the cause
b) The IP is sth. like 192.168.0.123 and you pass that instead of the server ("UPD1") - oc. it has to be the actual IP

Offline

#5 2019-08-15 14:13:26

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 648

Re: [solved] problem printing on printer on a windows network

Offline

#6 2019-08-15 14:37:11

seth
Member
Registered: 2012-09-03
Posts: 59,643

Re: [solved] problem printing on printer on a windows network

If cups insists on altering the authentication to "negotiate" (which is kerberos) this seems more like a cups bug, possibly triggered by a change in samba…
=> cups.conf?

Offline

#7 2019-09-22 14:03:10

juphu2Va
Member
Registered: 2019-05-16
Posts: 36

Re: [solved] problem printing on printer on a windows network

I just want to say, that I have the exact same problem as manouchk.

Offline

#8 2019-10-03 13:21:51

manouchk
Member
Registered: 2008-07-29
Posts: 313

Re: [solved] problem printing on printer on a windows network

I just resolved the problem by downgrading samba. Thank you Seth for your recommendation.

I did run:

pacman -U /var/cache/pacman/pkg/smbclient-4.9.5-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/libwbclient-4.9.5-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/samba-4.9.5-1-x86_64.pkg.tar.xz

I already had downloaded thoose old package of samba. juphu2Va if you never did that, have look at this page: https://wiki.archlinux.org/index.php/Do … g_packages

I also included thoose package in the ignorepkg of file /etc/pacman.conf (IgnorePkg   = smbclient libwbclient samba).

Last edited by manouchk (2019-10-03 13:26:27)

Offline

#9 2019-10-03 13:44:36

seth
Member
Registered: 2012-09-03
Posts: 59,643

Re: [solved] problem printing on printer on a windows network

nb. that this  constitutes an unsupported partial update - it would be advisable to focus on the actual issue, ie. have a look at the cups.conf and whether the AuthType is anywhere is "negotiate"
Try enforcing "username,password".

Offline

#10 2020-02-04 15:17:41

manouchk
Member
Registered: 2008-07-29
Posts: 313

Re: [solved] problem printing on printer on a windows network

I'm now updating with update of libwbclient from 4.9.5-1 to 4.10.10-2 blacklisted. I don't know what to do and I don't understand the details of cups.conf. In /usr/share/dbus-1/system.d/cups.conf, I have:

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <!-- Only root can send this message -->
  <policy user="root">
    <allow send_interface="com.redhat.PrinterSpooler"/>
  </policy>

  <!-- Allow any connection to receive the message -->
  <policy context="default">
    <allow receive_interface="com.redhat.PrinterSpooler"/>
  </policy>
</busconfig>

The AuthType variable is defined in /etc/cups/printers.conf, as discussed in https://bbs.archlinux.org/viewtopic.php … 8#p1842838 ?

There, I really do have

 AuthInfoRequired negotiate 

and not

 AuthInfoRequired username,password 

The idea wpould be to update and try this new value of variable AuthInfoRequired and test if it works. If not downgrade again. That's what I understand.

Last edited by manouchk (2020-02-04 15:20:24)

Offline

Board footer

Powered by FluxBB