Bug#942168: system-config-printer: Verifying set authentication on SAMBA printer installation fails due to forced Kerberos use

Antonio Cebrián ancebfer at gmail.com
Fri Oct 11 10:56:35 BST 2019


Package: system-config-printer
Version: 1.5.11-4

Verifying set authentication on SAMBA printer installation fails due to
forced Kerberos use in "newprinter.py" file:

            if auth_set:
                # No prompting.
                def do_auth (svr, shr, wg, un, pw):
                    return (group, user, passwd)
                ctx = pysmb.smbc.Context (debug=debug, auth_fn=do_auth)
                try:
                    ctx.optionUseKerberos = True
                except AttributeError:
                    # requires pysmbc >= 1.0.12
                    pass

                f = ctx.open ("smb://%s/%s" % (host, share),
                              os.O_RDWR, 0o777)
                accessible = True
            else:
                # May need to prompt.

Related console messages:

Kinit for myuser at MYDOMAIN to access MYSERVER failed: Cannot contact any KDC
for requested realm
Caught non-fatal exception.  Traceback:
File "/usr/share/system-config-printer/newprinter.py", line 2861, in on_
btnSMBVerify_clicked
    os.O_RDWR, 0o777)
smbc.PermissionError: (13, 'Permission denied')
Continuing anyway..


Disabling Kerberos use solves the problem and allows installation and
printing on the SAMBA printer:

sudo sed -i -e 's/ctx.optionUseKerberos = True/ctx.optionUseKerberos =
False/' /usr/share/system-config-printer/newprinter.py


Perhaps adding a checkbox to the "New Printer" dialog to allow
enable/disable of Kerberos use will be the best solution.

Best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20191011/9791b0df/attachment-0001.html>


More information about the pkg-gnome-maintainers mailing list