Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

AuthInfoRequired username,password setup #403

Open
sasharozenson opened this issue Jul 8, 2021 · 2 comments
Open

AuthInfoRequired username,password setup #403

sasharozenson opened this issue Jul 8, 2021 · 2 comments

Comments

@sasharozenson
Copy link

Hello,
We are using a samba printer and authentication is required, unfortunatelly I was unable to find how to set up "AuthInfoRequired username,password" parameter in a printer queue, is there an undocumented option?
Thank you very much

@jamesps-ebi
Copy link

Just stumbled across this and am wondering the same. Don't mean to hijack but here's my report if it helps.

Given: Ubuntu 20.04, Puppet 6.24, cups 2.3.1
When: I apply the below manifest with the given hiera data

class hg_workstation::profile::common
{

  # CUPS printer configuration
  include cups

}
---
cups::default_queue: 'example'
cups::web_interface: true
cups::resources:
  example:
    ensure: 'printer'
    uri: 'smb://example.com/print'
    model: 'example.ppd'
    options:
      - AuthInfoRequired: 'username,password'

In order to: add a new SMB network printer.
Then: I get the below error.

Info: Applying configuration version '1633009613'
Error: /Stage[main]/Cups::Queues::Resources/Cups_queue[example]: Could not evaluate: Managing the option 'AuthInfoRequired' is unsupported.
Notice: /Stage[main]/Cups::Queues::Default/Exec[cups::queues::default]: Dependency Cups_queue[example] has failures: true
Warning: /Stage[main]/Cups::Queues::Default/Exec[cups::queues::default]: Skipping because of failed dependencies
Warning: /Stage[provisioning_finish]/Profile::Provisioning/File[/opt/puppetlabs/facter/facts.d/provisioning.txt]: Skipping because of failed dependencies
Notice: Applied catalog in 59.82 seconds

This option can be specified if we manually add the printer to Ubuntu 20.04 desktops, and is required to submit a print job to our print servers.
Is support for this option planned?

@jamesps-ebi
Copy link

Just stumbled across this and am wondering the same. Don't mean to hijack but here's my report if it helps.

Given: Ubuntu 20.04, Puppet 6.24, cups 2.3.1 When: I apply the below manifest with the given hiera data

class hg_workstation::profile::common
{

  # CUPS printer configuration
  include cups

}
---
cups::default_queue: 'example'
cups::web_interface: true
cups::resources:
  example:
    ensure: 'printer'
    uri: 'smb://example.com/print'
    model: 'example.ppd'
    options:
      - AuthInfoRequired: 'username,password'

In order to: add a new SMB network printer. Then: I get the below error.

Info: Applying configuration version '1633009613'
Error: /Stage[main]/Cups::Queues::Resources/Cups_queue[example]: Could not evaluate: Managing the option 'AuthInfoRequired' is unsupported.
Notice: /Stage[main]/Cups::Queues::Default/Exec[cups::queues::default]: Dependency Cups_queue[example] has failures: true
Warning: /Stage[main]/Cups::Queues::Default/Exec[cups::queues::default]: Skipping because of failed dependencies
Warning: /Stage[provisioning_finish]/Profile::Provisioning/File[/opt/puppetlabs/facter/facts.d/provisioning.txt]: Skipping because of failed dependencies
Notice: Applied catalog in 59.82 seconds

This option can be specified if we manually add the printer to Ubuntu 20.04 desktops, and is required to submit a print job to our print servers. Is support for this option planned?

Okay, I feel a bit silly but I've found the answer to this myself. Apparently the option has to be specified as 'auth-info-required' rather than 'AuthInfoRequired'.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants