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@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.

Reply via email to